Function at 0x460c5a
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 0x466a61
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.00438870
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.00438870
add esp, 0xc
push 0x103
lea eax, [esp + 0x34d]
push ebx
push eax
mov byte [esp + 0x354], bl
call fcn.00438870
add esp, 0xc
push esi
push 0x46d3d4
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 0x460ed8
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 0x460eaa
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
cmp eax, ebx
jbe 0x460eaa
inc eax
push eax
call fcn.004346f1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
pop ecx
inc eax
push eax
push ebx
push dword [esp + 0x20]
call fcn.00438870
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.00452971
push ebx
push ebx
mov byte [esp + 0x674], 1
mov dword [esp + 0x1c], ebx
push 1
jmp 0x460e8a
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 0x460e7a
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x670], bl
call fcn.0045220b
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x1c]
call fcn.00434a14
pop ecx
lea eax, [esp + 0x208]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x460dd1
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 0x460fb2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
cmp eax, ebx
jbe 0x460fa8
inc eax
push eax
call fcn.004346f1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
pop ecx
inc eax
push eax
push ebx
push dword [esp + 0x20]
call fcn.00438870
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.00452971
push ebx
push ebx
mov byte [esp + 0x674], 2
mov dword [esp + 0x1c], ebx
push 1
jmp 0x460f88
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 0x460f78
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x670], bl
call fcn.0045220b
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 0x4611cc
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 0x46118e
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
cmp eax, ebx
jbe 0x46118e
inc eax
push eax
call fcn.004346f1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
pop ecx
inc eax
push eax
push ebx
push dword [esp + 0x20]
call fcn.00438870
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.00452971
push ebx
push ebx
mov byte [esp + 0x674], 3
mov dword [esp + 0x1c], ebx
push 1
jmp 0x46115e
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 0x461152
push 0x103
lea eax, [esp + 0x85]
push ebx
push eax
mov byte [esp + 0x8c], bl
call fcn.00438870
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.00434790
pop ecx
pop ecx
test eax, eax
je 0x4610fa
push 0x5c
push dword [esp + 0x14]
call fcn.004343d0
pop ecx
inc eax
pop ecx
mov dword [esp + 0x10], eax
push dword [esp + 0x10]
lea eax, [esp + 0x84]
push 0x46d3d4
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.00456265
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 0x461083
mov eax, dword [esp + 0x14]
add dword [esp + 0x2c], eax
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x670], bl
call fcn.0045220b
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x1c]
call esi
push dword [esp + 0x1c]
call fcn.00456265
pop ecx
push dword [esp + 0x1c]
call fcn.00434a14
pop ecx
lea eax, [esp + 0x208]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x460fd7
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 0x46151b
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x18], eax
cmp eax, ebx
jbe 0x461511
inc eax
push eax
call fcn.004346f1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
pop ecx
inc eax
push eax
push ebx
push dword [esp + 0x18]
call fcn.00438870
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.00452971
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 0x4614f6
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 0x46c667
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.00438870
add esp, 0xc
push dword [esp + 0x24]
lea eax, [esp + 0x40]
call fcn.0040128e
push eax
lea eax, [esp + 0x88]
push 0x46cfdc
push eax
call edi
add esp, 0x10
lea eax, [esp + 0x80]
push eax
call esi
lea eax, [esp + 0x80]
push eax
call fcn.00456265
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.00438870
add esp, 0xc
push 0x5c
push dword [esp + 0x28]
call fcn.004343d0
push 0x2e
push dword [esp + 0x30]
mov dword [esp + 0x28], eax
call fcn.004343d0
add esp, 0x10
mov dword [esp + 0x30], eax
cmp eax, ebx
je 0x461446
cmp dword [esp + 0x18], ebx
je 0x461446
push 0x3f
lea eax, [esp + 0x18d]
push ebx
push eax
mov byte [esp + 0x194], bl
call fcn.00438870
mov eax, dword [esp + 0x40]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x461395
sub eax, ecx
push 0x40
lea ecx, [esp + 0x18c]
push ecx
push eax
push dword [esp + 0x40]
call fcn.00457a01
push eax
lea eax, [esp + 0x19c]
push eax
lea edx, [esp + 0x1e0]
call fcn.00455c19
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 0x46cfdc
push eax
call edi
add esp, 0x10
lea eax, [esp + 0x80]
push eax
call esi
lea eax, [esp + 0x80]
push eax
call fcn.00456265
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.0043469e
add esp, 0xc
test eax, eax
jne 0x4614af
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.00456265
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 0x461295
push dword [esp + 0x10]
call fcn.00433eea
pop ecx
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x670], bl
call fcn.0045220b
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 0x4616fc
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x28], eax
cmp eax, ebx
jbe 0x4616f2
inc eax
push eax
call fcn.004346f1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
pop ecx
inc eax
push eax
push ebx
push dword [esp + 0x18]
call fcn.00438870
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.0045251d
mov dword [esp + 0x50], vtable.IniDataEnum.0
lea ecx, [esp + 0x50]
mov byte [esp + 0x66c], 5
call fcn.00451d8d
jmp 0x4615d5
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4615bd
sub eax, edx
je 0x4615d9
inc dword [esp + 0x20]
lea ecx, [esp + 0x50]
call fcn.00451d56
cmp eax, ebx
jne 0x4615ba
lea ecx, [esp + 0x50]
call fcn.00451d8d
jmp 0x4616cb
mov eax, dword [esp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4615ee
sub eax, edx
je 0x4616d7
push 0x103
lea eax, [esp + 0x85]
push ebx
push eax
mov byte [esp + 0x8c], bl
call fcn.00438870
add esp, 0xc
push dword [esp + 0x1c]
lea eax, [esp + 0x84]
push dword [esp + 0x44]
push dword [esp + 0x44]
push 0x46cfdc
push eax
call edi
add esp, 0x14
lea eax, [esp + 0x80]
push eax
call esi
lea eax, [esp + 0x80]
push eax
call fcn.00456265
pop ecx
push 0x10
push dword [esp + 0x20]
push str.systemcomponents
call fcn.0043469e
add esp, 0xc
test eax, eax
jne 0x4616a1
mov eax, dword [esp + 0x1c]
add eax, 0x10
push eax
push dword [esp + 0x44]
lea eax, [esp + 0x88]
push dword [esp + 0x44]
push 0x46cfdc
push eax
call edi
add esp, 0x14
lea eax, [esp + 0x80]
push eax
call esi
lea eax, [esp + 0x80]
push eax
call fcn.00456265
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.00451d56
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x4615e7
push dword [esp + 0x10]
call fcn.00433eea
pop ecx
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x670], bl
call fcn.00451e78
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.00455e00
push ebx
push dword [esp + 0x58]
call fcn.00455e00
push dword [esp + 0x8c]
call fcn.00434a14
add esp, 0x14
push dword [esp + 0x48]
call fcn.00434a14
pop ecx
push dword [esp + 0x38]
call fcn.00434a14
pop ecx
push dword [esp + 0x4c]
call fcn.00434a14
pop ecx
call fcn.0045ed4e
mov edi, eax
cmp edi, ebx
je 0x46176f
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x461761
sub eax, edx
je 0x46176f
push edi
call esi
push edi
call fcn.00434a14
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.00455e00
push 1
push edi
call fcn.00455e00
push edi
call fcn.00434a14
add esp, 0x14
push esi
call fcn.00434a14
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