Function at 0x405bf2
Capabilities:
Delete file
Enumerate files on windows
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x450f7e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x650
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push esi
lea edi, [esp + 0x38]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], 0xa
mov dword [esp + 0x28], ebx
call fcn.00401ade
push str.mupdb
mov eax, edi
mov dword [esp + 0x668], ebx
call fcn.00401b85
call fcn.00401cbb
mov edi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x34], edi
mov dword [esp], str.cache
call fcn.00401b85
call fcn.00401cbb
mov dword [esp + 0x48], eax
mov eax, edi
mov dword [esp], str..files
call fcn.00401cbb
mov dword [esp + 0x44], eax
mov eax, edi
mov dword [esp], str..packages
call fcn.00401cbb
mov dword [esp + 0x78], eax
mov eax, edi
mov dword [esp], str.filedb
call fcn.00401cbb
mov dword [esp + 0x30], eax
mov dword [esp], 0x103
lea eax, [esp + 0x44d]
push ebx
push eax
mov byte [esp + 0x454], bl
call fcn.004454d0
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [eax + 0x30c]
push ecx
add esi, 0x208
push esi
push eax
lea eax, [esp + 0x454]
push str._Smupdb_s__S
push eax
call edi
add esp, 0x14
push 0x13c
lea eax, [esp + 0x208]
push ebx
push eax
mov dword [esp + 0x20c], ebx
call fcn.004454d0
add esp, 0xc
push 0x103
lea eax, [esp + 0x345]
push ebx
push eax
mov byte [esp + 0x34c], bl
call fcn.004454d0
add esp, 0xc
push esi
push 0x4556b4
push dword [esp + 0x38]
lea eax, [esp + 0x34c]
push str._s_s_s_
push eax
call edi
add esp, 0x14
lea eax, [esp + 0x200]
push eax
lea eax, [esp + 0x344]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x405e62
lea eax, [esp + 0x22c]
push eax
mov eax, dword [esp + 0x34]
call fcn.00401cbb
pop ecx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
mov dword [esp + 0x44], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x405e34
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jbe 0x405e34
lea eax, [esi + 1]
push eax
call fcn.0043b2c8
pop ecx
mov dword [esp + 0x10], eax
lea eax, [esi + 1]
push eax
push ebx
push dword [esp + 0x18]
call fcn.004454d0
add esp, 0xc
push ebx
lea eax, [esp + 0x18]
push eax
push esi
push dword [esp + 0x1c]
mov dword [esp + 0x24], ebx
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push dword [esp + 0x14]
lea eax, [esp + 0x50]
push eax
call fcn.00411947
push ebx
push ebx
mov byte [esp + 0x66c], 1
mov dword [esp + 0x14], ebx
push 1
jmp 0x405e15
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
inc dword [esp + 0x1c]
push ebx
push ebx
inc eax
push eax
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x54]
call dword [eax + 0x18]
test eax, eax
jne 0x405e05
lea esi, [esp + 0x48]
mov byte [esp + 0x664], bl
call fcn.004119cd
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x28]
call fcn.0043bdb4
pop ecx
lea eax, [esp + 0x200]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405d64
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
je 0x405f33
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jbe 0x405f29
lea eax, [esi + 1]
push eax
call fcn.0043b2c8
pop ecx
mov dword [esp + 0x10], eax
lea eax, [esi + 1]
push eax
push ebx
push dword [esp + 0x18]
call fcn.004454d0
add esp, 0xc
push ebx
lea eax, [esp + 0x1c]
push eax
push esi
push dword [esp + 0x1c]
mov dword [esp + 0x28], ebx
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push dword [esp + 0x14]
lea eax, [esp + 0x50]
push eax
call fcn.00411947
push ebx
push ebx
mov byte [esp + 0x66c], 2
mov dword [esp + 0x14], ebx
push 1
jmp 0x405f0a
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
inc dword [esp + 0x1c]
push ebx
push ebx
inc eax
push eax
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x54]
call dword [eax + 0x18]
test eax, eax
jne 0x405efa
lea esi, [esp + 0x48]
mov byte [esp + 0x664], bl
call fcn.004119cd
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x200]
push eax
lea eax, [esp + 0x344]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x406122
lea eax, [esp + 0x22c]
push eax
mov eax, dword [esp + 0x34]
call fcn.00401cbb
pop ecx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x4060e7
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jbe 0x4060e7
lea eax, [esi + 1]
push eax
call fcn.0043b2c8
pop ecx
mov dword [esp + 0x10], eax
lea eax, [esi + 1]
push eax
push ebx
push dword [esp + 0x18]
call fcn.004454d0
add esp, 0xc
push ebx
lea eax, [esp + 0x2c]
push eax
push esi
push dword [esp + 0x1c]
mov dword [esp + 0x38], ebx
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push dword [esp + 0x14]
lea eax, [esp + 0x50]
push eax
call fcn.00411947
push ebx
push ebx
mov byte [esp + 0x66c], 3
mov dword [esp + 0x14], ebx
push 1
jmp 0x4060ba
mov eax, dword [esp + 0x48]
push 1
push str.shared
push esi
lea ecx, [esp + 0x54]
call dword [eax + 0x14]
test eax, eax
jne 0x4060ae
push 0x103
lea eax, [esp + 0x7d]
push ebx
push eax
mov byte [esp + 0x84], bl
call fcn.004454d0
mov eax, dword [esp + 0x54]
add esp, 0xc
push ebx
push str.location
push esi
lea ecx, [esp + 0x54]
call dword [eax + 0x18]
mov esi, eax
push str.systemcomponents
push esi
call fcn.0043bb30
pop ecx
pop ecx
test eax, eax
je 0x406061
push 0x5c
push esi
call fcn.0043b790
pop ecx
inc eax
pop ecx
mov esi, eax
push esi
push 0x4556b4
push dword [ebp + 8]
lea eax, [esp + 0x84]
push str._S_s_s
push eax
call edi
add esp, 0x14
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea esi, [esp + 0x78]
call fcn.0040e276
mov eax, dword [ebp + 8]
push dword [eax + 0x324]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
push ebx
push dword [esp + 0x24]
add eax, ecx
push eax
call fcn.004057aa
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
push ebx
push ebx
inc eax
push eax
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x54]
call dword [eax + 0x18]
mov esi, eax
cmp esi, ebx
jne 0x405ffa
mov eax, dword [esp + 0xc]
add dword [esp + 0x24], eax
lea esi, [esp + 0x48]
mov byte [esp + 0x664], bl
call fcn.004119cd
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.0040e276
push esi
call fcn.0043bdb4
pop ecx
lea eax, [esp + 0x200]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405f56
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
je 0x406434
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jbe 0x40642a
lea eax, [esi + 1]
push eax
call fcn.0043b2c8
pop ecx
mov dword [esp + 0x10], eax
lea eax, [esi + 1]
push eax
push ebx
push dword [esp + 0x18]
call fcn.004454d0
add esp, 0xc
push ebx
lea eax, [esp + 0x40]
push eax
push esi
push dword [esp + 0x1c]
mov dword [esp + 0x4c], ebx
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push dword [esp + 0x14]
lea eax, [esp + 0x50]
push eax
call fcn.00411947
push ebx
xor esi, esi
push ebx
mov byte [esp + 0x66c], 4
mov eax, dword [esp + 0x50]
inc esi
push esi
lea ecx, [esp + 0x54]
mov dword [esp + 0x18], ebx
call dword [eax + 0x18]
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x406410
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], esi
sub dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x48]
push 0x454bc7
push str.hash
push dword [esp + 0x28]
lea ecx, [esp + 0x54]
call dword [eax + 0x18]
push 0x103
mov dword [esp + 0x30], eax
lea eax, [esp + 0x7d]
push ebx
push eax
mov byte [esp + 0x84], bl
call fcn.004454d0
add esp, 0xc
push dword [esp + 0x20]
lea eax, [esp + 0x38]
call fcn.00401b85
push eax
lea eax, [esp + 0x80]
push 0x4556fc
push eax
call edi
add esp, 0x10
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea esi, [esp + 0x78]
call fcn.0040e276
mov eax, dword [ebp + 8]
push dword [eax + 0x324]
push ebx
push dword [esp + 0x24]
push dword [esp + 0x30]
call fcn.004057aa
push 0x103
lea eax, [esp + 0x555]
push ebx
push eax
mov byte [esp + 0x55c], bl
call fcn.004454d0
add esp, 0xc
push 0x5c
push dword [esp + 0x24]
call fcn.0043b790
push 0x2e
push dword [esp + 0x2c]
mov dword [esp + 0x24], eax
call fcn.0043b790
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x406371
cmp dword [esp + 0x14], ebx
je 0x406371
push 0x3f
lea eax, [esp + 0x185]
push ebx
push eax
mov byte [esp + 0x18c], bl
call fcn.004454d0
mov eax, dword [esp + 0x38]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4062d2
sub eax, ecx
lea ecx, [esp + 0x180]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.0041115b
pop ecx
push eax
lea eax, [esp + 0x184]
push eax
lea edx, [esp + 0x1c8]
call fcn.0040e57a
inc dword [esp + 0x1c]
lea eax, [esi + 1]
push eax
mov eax, edx
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x564]
push str._s._s._s
push eax
mov byte [esi], bl
call edi
add esp, 0x1c
lea eax, [esp + 0x550]
push eax
push dword [esp + 0x48]
lea eax, [esp + 0x80]
push 0x4556fc
push eax
mov byte [esi], 0x2e
call edi
add esp, 0x10
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea esi, [esp + 0x78]
call fcn.0040e276
mov eax, dword [ebp + 8]
push dword [eax + 0x324]
push ebx
push dword [esp + 0x24]
push dword [esp + 0x30]
call fcn.004057aa
mov esi, dword [esp + 0x20]
push 0x10
push esi
push str.systemcomponents
call fcn.0043b9b6
add esp, 0xc
test eax, eax
jne 0x4063cd
add esi, 0x11
push esi
push dword [ebp + 8]
lea eax, [esp + 0x80]
push str._S_s
push eax
call edi
add esp, 0x10
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea esi, [esp + 0x78]
call fcn.0040e276
mov eax, dword [ebp + 8]
push dword [eax + 0x324]
push ebx
push dword [esp + 0x24]
push dword [esp + 0x30]
call fcn.004057aa
mov eax, dword [ebp + 8]
push dword [eax + 0x324]
push ebx
push dword [esp + 0x24]
push dword [esp + 0x30]
call fcn.004057aa
inc dword [esp + 0xc]
inc dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
push ebx
add eax, ecx
push ebx
push eax
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x54]
call dword [eax + 0x18]
mov dword [esp + 0x20], eax
cmp eax, ebx
jne 0x4061e1
push dword [esp + 0x10]
call fcn.0043b780
pop ecx
lea esi, [esp + 0x48]
mov byte [esp + 0x664], bl
call fcn.004119cd
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push dword [esp + 0x58]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
je 0x4065ed
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jbe 0x4065e3
lea eax, [esi + 1]
push eax
call fcn.0043b2c8
pop ecx
mov dword [esp + 0x14], eax
lea eax, [esi + 1]
push eax
push ebx
push dword [esp + 0x1c]
call fcn.004454d0
add esp, 0xc
push ebx
lea eax, [esp + 0x40]
push eax
push esi
push dword [esp + 0x20]
mov dword [esp + 0x4c], ebx
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push dword [esp + 0x18]
lea eax, [esp + 0x50]
push eax
call fcn.00401db2
lea ecx, [esp + 0x48]
mov byte [esp + 0x664], 5
call fcn.004123be
jmp 0x4064de
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4064c6
sub eax, edx
je 0x4064e2
inc dword [esp + 0x1c]
lea ecx, [esp + 0x48]
call fcn.004123d6
cmp eax, ebx
jne 0x4064c3
lea ecx, [esp + 0x48]
call fcn.004123be
jmp 0x4065bd
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4064f7
sub eax, edx
je 0x4065c9
push 0x103
lea eax, [esp + 0x7d]
push ebx
push eax
mov byte [esp + 0x84], bl
call fcn.004454d0
add esp, 0xc
push dword [esp + 0x10]
lea eax, [esp + 0x7c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0x4556fc
push eax
call edi
add esp, 0x14
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea esi, [esp + 0x78]
call fcn.0040e276
mov esi, dword [esp + 0x10]
push 0x10
push esi
push str.systemcomponents
call fcn.0043b9b6
add esp, 0xc
test eax, eax
jne 0x406599
add esi, 0x10
push esi
push dword [esp + 0x3c]
lea eax, [esp + 0x80]
push dword [esp + 0x3c]
push 0x4556fc
push eax
call edi
add esp, 0x14
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea esi, [esp + 0x78]
call fcn.0040e276
mov eax, dword [ebp + 8]
push dword [eax + 0x324]
inc dword [esp + 0x10]
push ebx
push dword [esp + 0x24]
push dword [esp + 0x18]
call fcn.004057aa
lea ecx, [esp + 0x48]
call fcn.004123d6
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x4064f0
push dword [esp + 0x14]
call fcn.0043b780
pop ecx
lea esi, [esp + 0x48]
mov byte [esp + 0x664], bl
call fcn.00411e76
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x448]
push eax
call esi
push dword [esp + 0x40]
call esi
push dword [esp + 0x74]
call esi
push ebx
push dword [esp + 0x34]
call fcn.0040e295
push ebx
push dword [esp + 0x50]
call fcn.0040e295
push dword [esp + 0x84]
call fcn.0043bdb4
add esp, 0x14
push dword [esp + 0x40]
call fcn.0043bdb4
pop ecx
push dword [esp + 0x30]
call fcn.0043bdb4
pop ecx
push dword [esp + 0x44]
call fcn.0043bdb4
pop ecx
call fcn.004051eb
mov edi, eax
cmp edi, ebx
je 0x406666
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406658
sub eax, edx
je 0x406666
push edi
call esi
push edi
call fcn.0043bdb4
lea eax, [esp + 0x38]
mov dword [esp], str.systemcomponents
call fcn.00401b85
call fcn.00401cbb
mov esi, eax
pop ecx
lea eax, [esp + 0x34]
call fcn.00401b9f
xor ebx, ebx
inc ebx
push ebx
push esi
mov edi, eax
call fcn.0040e295
push ebx
push edi
call fcn.0040e295
push edi
call fcn.0043bdb4
add esp, 0x14
push esi
call fcn.0043bdb4
mov eax, dword [ebp + 8]
pop ecx
push dword [eax + 0x324]
push ebx
push dword [esp + 0x24]
push dword [esp + 0x18]
call fcn.004057aa
lea eax, [esp + 0x34]
call fcn.00401b2e
mov ecx, dword [esp + 0x65c]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret