Function at 0x460651
Capabilities:
Delete file
Enumerate files on windows
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4664c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x658
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push esi
lea edi, [esp + 0x40]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], 0xa
mov dword [esp + 0x30], ebx
call fcn.004011df
push str.mupdb
mov eax, edi
mov dword [esp + 0x670], ebx
call fcn.0040128e
call fcn.004013ae
mov edi, eax
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], edi
mov dword [esp], str.cache
call fcn.0040128e
call fcn.004013ae
mov dword [esp + 0x50], eax
mov eax, edi
mov dword [esp], str..files
call fcn.004013ae
mov dword [esp + 0x4c], eax
mov eax, edi
mov dword [esp], str..packages
call fcn.004013ae
mov dword [esp + 0x80], eax
mov eax, edi
mov dword [esp], str.filedb
call fcn.004013ae
mov dword [esp + 0x38], eax
mov dword [esp], 0x103
lea eax, [esp + 0x455]
push ebx
push eax
mov byte [esp + 0x45c], bl
call fcn.004384e0
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 + 0x45c]
push str._Smupdb_s__S
push eax
call edi
add esp, 0x14
push 0x13c
lea eax, [esp + 0x210]
push ebx
push eax
mov dword [esp + 0x214], ebx
call fcn.004384e0
add esp, 0xc
push 0x103
lea eax, [esp + 0x34d]
push ebx
push eax
mov byte [esp + 0x354], bl
call fcn.004384e0
add esp, 0xc
push esi
push 0x46d3dc
push dword [esp + 0x40]
lea eax, [esp + 0x354]
push str._s_s_s_
push eax
call edi
add esp, 0x14
lea eax, [esp + 0x208]
push eax
lea eax, [esp + 0x34c]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
call esi
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
je 0x4608cf
lea eax, [esp + 0x234]
push eax
mov eax, dword [esp + 0x3c]
call fcn.004013ae
pop ecx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
je 0x4608a1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
cmp eax, ebx
jbe 0x4608a1
inc eax
push eax
call fcn.00434229
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
pop ecx
inc eax
push eax
push ebx
push dword [esp + 0x20]
call fcn.004384e0
add esp, 0xc
push ebx
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x18]
mov dword [esp + 0x3c], ebx
push dword [esp + 0x24]
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esp + 0x10]
lea eax, [esp + 0x54]
push dword [esp + 0x1c]
push eax
call fcn.004525e1
push ebx
push ebx
mov byte [esp + 0x674], 1
mov dword [esp + 0x1c], ebx
push 1
jmp 0x460881
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
inc dword [esp + 0x20]
push ebx
push ebx
inc eax
push eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x5c]
call dword [eax + 0x18]
test eax, eax
jne 0x460871
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x670], bl
call fcn.00451e7b
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x1c]
call fcn.00434554
pop ecx
lea eax, [esp + 0x208]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4607c8
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x4609a9
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
cmp eax, ebx
jbe 0x46099f
inc eax
push eax
call fcn.00434229
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
pop ecx
inc eax
push eax
push ebx
push dword [esp + 0x20]
call fcn.004384e0
add esp, 0xc
push ebx
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x18]
mov dword [esp + 0x3c], ebx
push dword [esp + 0x24]
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esp + 0x10]
lea eax, [esp + 0x54]
push dword [esp + 0x1c]
push eax
call fcn.004525e1
push ebx
push ebx
mov byte [esp + 0x674], 2
mov dword [esp + 0x1c], ebx
push 1
jmp 0x46097f
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
inc dword [esp + 0x20]
push ebx
push ebx
inc eax
push eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x5c]
call dword [eax + 0x18]
test eax, eax
jne 0x46096f
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x670], bl
call fcn.00451e7b
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x208]
push eax
lea eax, [esp + 0x34c]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
je 0x460bc3
lea eax, [esp + 0x234]
push eax
mov eax, dword [esp + 0x3c]
call fcn.004013ae
pop ecx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
je 0x460b85
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
cmp eax, ebx
jbe 0x460b85
inc eax
push eax
call fcn.00434229
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
pop ecx
inc eax
push eax
push ebx
push dword [esp + 0x20]
call fcn.004384e0
add esp, 0xc
push ebx
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x18]
mov dword [esp + 0x3c], ebx
push dword [esp + 0x24]
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esp + 0x10]
lea eax, [esp + 0x54]
push dword [esp + 0x1c]
push eax
call fcn.004525e1
push ebx
push ebx
mov byte [esp + 0x674], 3
mov dword [esp + 0x1c], ebx
push 1
jmp 0x460b55
mov eax, dword [esp + 0x50]
push 1
push str.shared
push dword [esp + 0x18]
lea ecx, [esp + 0x5c]
call dword [eax + 0x14]
test eax, eax
jne 0x460b49
push 0x103
lea eax, [esp + 0x85]
push ebx
push eax
mov byte [esp + 0x8c], bl
call fcn.004384e0
mov eax, dword [esp + 0x5c]
add esp, 0xc
push ebx
push str.location
push dword [esp + 0x18]
lea ecx, [esp + 0x5c]
call dword [eax + 0x18]
push str.systemcomponents
push eax
mov dword [esp + 0x18], eax
call fcn.004342d0
pop ecx
pop ecx
test eax, eax
je 0x460af1
push 0x5c
push dword [esp + 0x14]
call fcn.00434040
pop ecx
inc eax
pop ecx
mov dword [esp + 0x10], eax
push dword [esp + 0x10]
lea eax, [esp + 0x84]
push 0x46d3dc
push dword [ebp + 8]
push str._S_s_s
push eax
call edi
add esp, 0x14
lea eax, [esp + 0x80]
push eax
call esi
lea eax, [esp + 0x80]
push eax
call fcn.00455ed5
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x324]
pop ecx
push dword [esp + 0x20]
push edx
push 0x404
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
push ebx
push ebx
inc eax
push eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x5c]
call dword [eax + 0x18]
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x460a7a
mov eax, dword [esp + 0x14]
add dword [esp + 0x2c], eax
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x670], bl
call fcn.00451e7b
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x1c]
call esi
push dword [esp + 0x1c]
call fcn.00455ed5
pop ecx
push dword [esp + 0x1c]
call fcn.00434554
pop ecx
lea eax, [esp + 0x208]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4609ce
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x460f12
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x18], eax
cmp eax, ebx
jbe 0x460f08
inc eax
push eax
call fcn.00434229
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
pop ecx
inc eax
push eax
push ebx
push dword [esp + 0x18]
call fcn.004384e0
add esp, 0xc
push ebx
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x20]
mov dword [esp + 0x50], ebx
push dword [esp + 0x1c]
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esp + 0x18]
lea eax, [esp + 0x54]
push dword [esp + 0x14]
push eax
call fcn.004525e1
push ebx
push ebx
mov byte [esp + 0x674], 4
mov eax, dword [esp + 0x58]
push 1
lea ecx, [esp + 0x5c]
mov dword [esp + 0x20], ebx
call dword [eax + 0x18]
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x460eed
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], 1
sub dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x50]
push 0x46c62f
push str.hash
push dword [esp + 0x2c]
lea ecx, [esp + 0x5c]
call dword [eax + 0x18]
push 0x103
mov dword [esp + 0x38], eax
lea eax, [esp + 0x85]
push ebx
push eax
mov byte [esp + 0x8c], bl
call fcn.004384e0
add esp, 0xc
push dword [esp + 0x24]
lea eax, [esp + 0x40]
call fcn.0040128e
push eax
lea eax, [esp + 0x88]
push 0x46cfb4
push eax
call edi
add esp, 0x10
lea eax, [esp + 0x80]
push eax
call esi
lea eax, [esp + 0x80]
push eax
call fcn.00455ed5
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x324]
pop ecx
push dword [esp + 0x20]
push dword [esp + 0x30]
push 0x404
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 0x103
lea eax, [esp + 0x55d]
push ebx
push eax
mov byte [esp + 0x564], bl
call fcn.004384e0
add esp, 0xc
push 0x5c
push dword [esp + 0x28]
call fcn.00434040
push 0x2e
push dword [esp + 0x30]
mov dword [esp + 0x28], eax
call fcn.00434040
add esp, 0x10
mov dword [esp + 0x30], eax
cmp eax, ebx
je 0x460e3d
cmp dword [esp + 0x18], ebx
je 0x460e3d
push 0x3f
lea eax, [esp + 0x18d]
push ebx
push eax
mov byte [esp + 0x194], bl
call fcn.004384e0
mov eax, dword [esp + 0x40]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x460d8c
sub eax, ecx
push 0x40
lea ecx, [esp + 0x18c]
push ecx
push eax
push dword [esp + 0x40]
call fcn.00457671
push eax
lea eax, [esp + 0x19c]
push eax
lea edx, [esp + 0x1e0]
call fcn.00455889
mov eax, dword [esp + 0x48]
inc dword [esp + 0x30]
mov byte [eax], bl
inc eax
push eax
mov eax, edx
push eax
push dword [esp + 0x38]
lea eax, [esp + 0x57c]
push str._s._s._s
push eax
call edi
mov eax, dword [esp + 0x5c]
add esp, 0x2c
mov byte [eax], 0x2e
lea eax, [esp + 0x558]
push eax
push dword [esp + 0x50]
lea eax, [esp + 0x88]
push 0x46cfb4
push eax
call edi
add esp, 0x10
lea eax, [esp + 0x80]
push eax
call esi
lea eax, [esp + 0x80]
push eax
call fcn.00455ed5
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x324]
pop ecx
push dword [esp + 0x20]
push dword [esp + 0x30]
push 0x404
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 0x10
push dword [esp + 0x28]
push str.systemcomponents
call fcn.004341d6
add esp, 0xc
test eax, eax
jne 0x460ea6
mov eax, dword [esp + 0x24]
add eax, 0x11
push eax
push dword [ebp + 8]
lea eax, [esp + 0x88]
push str._S_s
push eax
call edi
add esp, 0x10
lea eax, [esp + 0x80]
push eax
call esi
lea eax, [esp + 0x80]
push eax
call fcn.00455ed5
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x324]
pop ecx
push dword [esp + 0x20]
push dword [esp + 0x30]
push 0x404
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push dword [esp + 0x20]
mov eax, dword [ebp + 8]
push dword [esp + 0x30]
mov eax, dword [eax + 0x324]
push 0x404
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
inc dword [esp + 0x14]
inc dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x2c]
push ebx
push ebx
push eax
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x5c]
call dword [eax + 0x18]
mov dword [esp + 0x24], eax
cmp eax, ebx
jne 0x460c8c
push dword [esp + 0x10]
call fcn.00433b53
pop ecx
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x670], bl
call fcn.00451e7b
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push dword [esp + 0x60]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x30], eax
cmp eax, 0xffffffff
je 0x4610f3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x28], eax
cmp eax, ebx
jbe 0x4610e9
inc eax
push eax
call fcn.00434229
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
pop ecx
inc eax
push eax
push ebx
push dword [esp + 0x18]
call fcn.004384e0
add esp, 0xc
push ebx
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x30]
mov dword [esp + 0x50], ebx
push dword [esp + 0x1c]
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esp + 0x28]
lea eax, [esp + 0x54]
push dword [esp + 0x14]
push eax
call fcn.0045218d
mov dword [esp + 0x50], vtable.IniDataEnum.0
lea ecx, [esp + 0x50]
mov byte [esp + 0x66c], 5
call fcn.004519fd
jmp 0x460fcc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x460fb4
sub eax, edx
je 0x460fd0
inc dword [esp + 0x20]
lea ecx, [esp + 0x50]
call fcn.004519c6
cmp eax, ebx
jne 0x460fb1
lea ecx, [esp + 0x50]
call fcn.004519fd
jmp 0x4610c2
mov eax, dword [esp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x460fe5
sub eax, edx
je 0x4610ce
push 0x103
lea eax, [esp + 0x85]
push ebx
push eax
mov byte [esp + 0x8c], bl
call fcn.004384e0
add esp, 0xc
push dword [esp + 0x1c]
lea eax, [esp + 0x84]
push dword [esp + 0x44]
push dword [esp + 0x44]
push 0x46cfb4
push eax
call edi
add esp, 0x14
lea eax, [esp + 0x80]
push eax
call esi
lea eax, [esp + 0x80]
push eax
call fcn.00455ed5
pop ecx
push 0x10
push dword [esp + 0x20]
push str.systemcomponents
call fcn.004341d6
add esp, 0xc
test eax, eax
jne 0x461098
mov eax, dword [esp + 0x1c]
add eax, 0x10
push eax
push dword [esp + 0x44]
lea eax, [esp + 0x88]
push dword [esp + 0x44]
push 0x46cfb4
push eax
call edi
add esp, 0x14
lea eax, [esp + 0x80]
push eax
call esi
lea eax, [esp + 0x80]
push eax
call fcn.00455ed5
pop ecx
push dword [esp + 0x20]
inc dword [esp + 0x18]
push dword [esp + 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x324]
push 0x404
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x50]
call fcn.004519c6
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x460fde
push dword [esp + 0x10]
call fcn.00433b53
pop ecx
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x670], bl
call fcn.00451ae8
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x450]
push eax
call esi
push dword [esp + 0x48]
call esi
push dword [esp + 0x7c]
call esi
push ebx
push dword [esp + 0x3c]
call fcn.00455a70
push ebx
push dword [esp + 0x58]
call fcn.00455a70
push dword [esp + 0x8c]
call fcn.00434554
add esp, 0x14
push dword [esp + 0x48]
call fcn.00434554
pop ecx
push dword [esp + 0x38]
call fcn.00434554
pop ecx
push dword [esp + 0x4c]
call fcn.00434554
pop ecx
call fcn.0045e79a
mov edi, eax
cmp edi, ebx
je 0x461166
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x461158
sub eax, edx
je 0x461166
push edi
call esi
push edi
call fcn.00434554
lea eax, [esp + 0x40]
mov dword [esp], str.systemcomponents
call fcn.0040128e
call fcn.004013ae
mov esi, eax
pop ecx
lea eax, [esp + 0x3c]
call fcn.004012a8
push 1
push esi
mov edi, eax
call fcn.00455a70
push 1
push edi
call fcn.00455a70
push edi
call fcn.00434554
add esp, 0x14
push esi
call fcn.00434554
mov eax, dword [ebp + 8]
pop ecx
push dword [esp + 0x20]
push dword [esp + 0x18]
push 0x405
push dword [eax + 0x324]
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [esp + 0x3c]
call fcn.00401233
mov ecx, dword [esp + 0x664]
pop edi
xor eax, eax
pop esi
inc eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret