Function at 0x4608a7
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 0x467e0f
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.004017a0
push str.mupdb
mov eax, edi
mov dword [esp + 0x670], ebx
call fcn.0040184f
call fcn.00401969
mov edi, eax
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], edi
mov dword [esp], str.cache
call fcn.0040184f
call fcn.00401969
mov dword [esp + 0x50], eax
mov eax, edi
mov dword [esp], str..files
call fcn.00401969
mov dword [esp + 0x4c], eax
mov eax, edi
mov dword [esp], str..packages
call fcn.00401969
mov dword [esp + 0x80], eax
mov eax, edi
mov dword [esp], str.filedb
call fcn.00401969
mov dword [esp + 0x38], eax
mov dword [esp], 0x103
lea eax, [esp + 0x455]
push ebx
push eax
mov byte [esp + 0x45c], bl
call fcn.0043b2b0
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.0043b2b0
add esp, 0xc
push 0x103
lea eax, [esp + 0x34d]
push ebx
push eax
mov byte [esp + 0x354], bl
call fcn.0043b2b0
add esp, 0xc
push esi
push 0x46f88c
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 0x460b28
lea eax, [esp + 0x234]
push eax
mov eax, dword [esp + 0x3c]
call fcn.00401969
pop ecx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
je 0x460afa
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
cmp eax, ebx
jbe 0x460afa
inc eax
push eax
call fcn.0043742a
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
pop ecx
inc eax
push eax
push ebx
push dword [esp + 0x20]
call fcn.0043b2b0
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 ebx
push ebx
push 5
push dword [esp + 0x1c]
lea ecx, [esp + 0x60]
push dword [esp + 0x28]
call fcn.00466947
push ebx
push ebx
mov byte [esp + 0x674], 1
mov dword [esp + 0x1c], ebx
push 1
jmp 0x460ada
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 0x460aca
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x670], bl
call fcn.004661dd
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x1c]
call fcn.0043759e
pop ecx
lea eax, [esp + 0x208]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x460a1e
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x460c05
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
cmp eax, ebx
jbe 0x460bfb
inc eax
push eax
call fcn.0043742a
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
pop ecx
inc eax
push eax
push ebx
push dword [esp + 0x20]
call fcn.0043b2b0
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 ebx
push ebx
push 5
push dword [esp + 0x1c]
lea ecx, [esp + 0x60]
push dword [esp + 0x28]
call fcn.00466947
push ebx
push ebx
mov byte [esp + 0x674], 2
mov dword [esp + 0x1c], ebx
push 1
jmp 0x460bdb
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 0x460bcb
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x670], bl
call fcn.004661dd
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 0x460e22
lea eax, [esp + 0x234]
push eax
mov eax, dword [esp + 0x3c]
call fcn.00401969
pop ecx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
je 0x460de4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
cmp eax, ebx
jbe 0x460de4
inc eax
push eax
call fcn.0043742a
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
pop ecx
inc eax
push eax
push ebx
push dword [esp + 0x20]
call fcn.0043b2b0
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 ebx
push ebx
push 5
push dword [esp + 0x1c]
lea ecx, [esp + 0x60]
push dword [esp + 0x28]
call fcn.00466947
push ebx
push ebx
mov byte [esp + 0x674], 3
mov dword [esp + 0x1c], ebx
push 1
jmp 0x460db4
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 0x460da8
push 0x103
lea eax, [esp + 0x85]
push ebx
push eax
mov byte [esp + 0x8c], bl
call fcn.0043b2b0
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.00437440
pop ecx
pop ecx
test eax, eax
je 0x460d50
push 0x5c
push dword [esp + 0x14]
call fcn.00436920
pop ecx
inc eax
pop ecx
mov dword [esp + 0x10], eax
push dword [esp + 0x10]
lea eax, [esp + 0x84]
push 0x46f88c
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.00455e41
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 0x460cd9
mov eax, dword [esp + 0x14]
add dword [esp + 0x2c], eax
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x670], bl
call fcn.004661dd
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x1c]
call esi
push dword [esp + 0x1c]
call fcn.00455e41
pop ecx
push dword [esp + 0x1c]
call fcn.0043759e
pop ecx
lea eax, [esp + 0x208]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x460c2a
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x461174
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x18], eax
cmp eax, ebx
jbe 0x46116a
inc eax
push eax
call fcn.0043742a
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
pop ecx
inc eax
push eax
push ebx
push dword [esp + 0x18]
call fcn.0043b2b0
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 ebx
push ebx
push 5
push dword [esp + 0x24]
lea ecx, [esp + 0x60]
push dword [esp + 0x20]
call fcn.00466947
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 0x46114f
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 0x46daf8
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.0043b2b0
add esp, 0xc
push dword [esp + 0x24]
lea eax, [esp + 0x40]
call fcn.0040184f
push eax
lea eax, [esp + 0x88]
push 0x46f428
push eax
call edi
add esp, 0x10
lea eax, [esp + 0x80]
push eax
call esi
lea eax, [esp + 0x80]
push eax
call fcn.00455e41
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.0043b2b0
add esp, 0xc
push 0x5c
push dword [esp + 0x28]
call fcn.00436920
push 0x2e
push dword [esp + 0x30]
mov dword [esp + 0x28], eax
call fcn.00436920
add esp, 0x10
mov dword [esp + 0x30], eax
cmp eax, ebx
je 0x46109f
cmp dword [esp + 0x18], ebx
je 0x46109f
push 0x3f
lea eax, [esp + 0x18d]
push ebx
push eax
mov byte [esp + 0x194], bl
call fcn.0043b2b0
mov eax, dword [esp + 0x40]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x460fee
sub eax, ecx
push 0x40
lea ecx, [esp + 0x18c]
push ecx
push eax
push dword [esp + 0x40]
call fcn.004575f0
push eax
lea eax, [esp + 0x19c]
push eax
lea edx, [esp + 0x1e0]
call fcn.004557e8
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 0x46f428
push eax
call edi
add esp, 0x10
lea eax, [esp + 0x80]
push eax
call esi
lea eax, [esp + 0x80]
push eax
call fcn.00455e41
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.004373d7
add esp, 0xc
test eax, eax
jne 0x461108
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.00455e41
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 0x460eee
push dword [esp + 0x10]
call fcn.00436909
pop ecx
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x670], bl
call fcn.004661dd
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [esp + 0x60]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x30], eax
cmp eax, 0xffffffff
je 0x461355
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x28], eax
cmp eax, ebx
jbe 0x46134b
inc eax
push eax
call fcn.0043742a
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
pop ecx
inc eax
push eax
push ebx
push dword [esp + 0x18]
call fcn.0043b2b0
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.004664f5
mov dword [esp + 0x50], vtable.IniDataEnum.0
lea ecx, [esp + 0x50]
mov byte [esp + 0x66c], 5
call fcn.00465d5a
jmp 0x46122e
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x461216
sub eax, edx
je 0x461232
inc dword [esp + 0x20]
lea ecx, [esp + 0x50]
call fcn.00465d23
cmp eax, ebx
jne 0x461213
lea ecx, [esp + 0x50]
call fcn.00465d5a
jmp 0x461324
mov eax, dword [esp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x461247
sub eax, edx
je 0x461330
push 0x103
lea eax, [esp + 0x85]
push ebx
push eax
mov byte [esp + 0x8c], bl
call fcn.0043b2b0
add esp, 0xc
push dword [esp + 0x1c]
lea eax, [esp + 0x84]
push dword [esp + 0x44]
push dword [esp + 0x44]
push 0x46f428
push eax
call edi
add esp, 0x14
lea eax, [esp + 0x80]
push eax
call esi
lea eax, [esp + 0x80]
push eax
call fcn.00455e41
pop ecx
push 0x10
push dword [esp + 0x20]
push str.systemcomponents
call fcn.004373d7
add esp, 0xc
test eax, eax
jne 0x4612fa
mov eax, dword [esp + 0x1c]
add eax, 0x10
push eax
push dword [esp + 0x44]
lea eax, [esp + 0x88]
push dword [esp + 0x44]
push 0x46f428
push eax
call edi
add esp, 0x14
lea eax, [esp + 0x80]
push eax
call esi
lea eax, [esp + 0x80]
push eax
call fcn.00455e41
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.00465d23
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x461240
push dword [esp + 0x10]
call fcn.00436909
pop ecx
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x670], bl
call fcn.00465e45
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.004559dc
push ebx
push dword [esp + 0x58]
call fcn.004559dc
push dword [esp + 0x8c]
call fcn.0043759e
add esp, 0x14
push dword [esp + 0x48]
call fcn.0043759e
pop ecx
push dword [esp + 0x38]
call fcn.0043759e
pop ecx
push dword [esp + 0x4c]
call fcn.0043759e
pop ecx
call fcn.0045e8d4
mov edi, eax
cmp edi, ebx
je 0x4613c8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4613ba
sub eax, edx
je 0x4613c8
push edi
call esi
push edi
call fcn.0043759e
lea eax, [esp + 0x40]
mov dword [esp], str.systemcomponents
call fcn.0040184f
call fcn.00401969
mov esi, eax
pop ecx
lea eax, [esp + 0x3c]
call fcn.00401869
push 1
push esi
mov edi, eax
call fcn.004559dc
push 1
push edi
call fcn.004559dc
push edi
call fcn.0043759e
add esp, 0x14
push esi
call fcn.0043759e
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.004017f4
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