Function at 0x40643d
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 0x459680
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.00401b48
push str.mupdb
mov eax, edi
mov dword [esp + 0x668], ebx
call fcn.00401bef
call fcn.00401d25
mov edi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x34], edi
mov dword [esp], str.cache
call fcn.00401bef
call fcn.00401d25
mov dword [esp + 0x48], eax
mov eax, edi
mov dword [esp], str..files
call fcn.00401d25
mov dword [esp + 0x44], eax
mov eax, edi
mov dword [esp], str..packages
call fcn.00401d25
mov dword [esp + 0x78], eax
mov eax, edi
mov dword [esp], str.filedb
call fcn.00401d25
mov dword [esp + 0x30], eax
mov dword [esp], 0x103
lea eax, [esp + 0x44d]
push ebx
push eax
mov byte [esp + 0x454], bl
call fcn.0044ded0
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.0044ded0
add esp, 0xc
push 0x103
lea eax, [esp + 0x345]
push ebx
push eax
mov byte [esp + 0x34c], bl
call fcn.0044ded0
add esp, 0xc
push esi
push 0x45d86c
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 0x4066ad
lea eax, [esp + 0x22c]
push eax
mov eax, dword [esp + 0x34]
call fcn.00401d25
pop ecx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
mov dword [esp + 0x44], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x40667f
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jbe 0x40667f
lea eax, [esi + 1]
push eax
call fcn.00443ca8
pop ecx
mov dword [esp + 0x10], eax
lea eax, [esi + 1]
push eax
push ebx
push dword [esp + 0x18]
call fcn.0044ded0
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.00412bef
push ebx
push ebx
mov byte [esp + 0x66c], 1
mov dword [esp + 0x14], ebx
push 1
jmp 0x406660
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 0x406650
lea esi, [esp + 0x48]
mov byte [esp + 0x664], bl
call fcn.00412c75
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x28]
call fcn.00444794
pop ecx
lea eax, [esp + 0x200]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4065af
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
je 0x40677e
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jbe 0x406774
lea eax, [esi + 1]
push eax
call fcn.00443ca8
pop ecx
mov dword [esp + 0x10], eax
lea eax, [esi + 1]
push eax
push ebx
push dword [esp + 0x18]
call fcn.0044ded0
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.00412bef
push ebx
push ebx
mov byte [esp + 0x66c], 2
mov dword [esp + 0x14], ebx
push 1
jmp 0x406755
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 0x406745
lea esi, [esp + 0x48]
mov byte [esp + 0x664], bl
call fcn.00412c75
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 0x40696d
lea eax, [esp + 0x22c]
push eax
mov eax, dword [esp + 0x34]
call fcn.00401d25
pop ecx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x406932
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jbe 0x406932
lea eax, [esi + 1]
push eax
call fcn.00443ca8
pop ecx
mov dword [esp + 0x10], eax
lea eax, [esi + 1]
push eax
push ebx
push dword [esp + 0x18]
call fcn.0044ded0
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.00412bef
push ebx
push ebx
mov byte [esp + 0x66c], 3
mov dword [esp + 0x14], ebx
push 1
jmp 0x406905
mov eax, dword [esp + 0x48]
push 1
push str.shared
push esi
lea ecx, [esp + 0x54]
call dword [eax + 0x14]
test eax, eax
jne 0x4068f9
push 0x103
lea eax, [esp + 0x7d]
push ebx
push eax
mov byte [esp + 0x84], bl
call fcn.0044ded0
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.00444510
pop ecx
pop ecx
test eax, eax
je 0x4068ac
push 0x5c
push esi
call fcn.00444170
pop ecx
inc eax
pop ecx
mov esi, eax
push esi
push 0x45d86c
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.0040f43b
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.00405ff5
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 0x406845
mov eax, dword [esp + 0xc]
add dword [esp + 0x24], eax
lea esi, [esp + 0x48]
mov byte [esp + 0x664], bl
call fcn.00412c75
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.0040f43b
push esi
call fcn.00444794
pop ecx
lea eax, [esp + 0x200]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4067a1
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
je 0x406c80
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jbe 0x406c76
lea eax, [esi + 1]
push eax
call fcn.00443ca8
pop ecx
mov dword [esp + 0x10], eax
lea eax, [esi + 1]
push eax
push ebx
push dword [esp + 0x18]
call fcn.0044ded0
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.00412bef
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 0x406c5c
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 0x45cbc7
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.0044ded0
add esp, 0xc
push dword [esp + 0x20]
lea eax, [esp + 0x38]
call fcn.00401bef
push eax
lea eax, [esp + 0x80]
push 0x45d450
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.0040f43b
mov eax, dword [ebp + 8]
push dword [eax + 0x324]
push ebx
push dword [esp + 0x24]
push dword [esp + 0x30]
call fcn.00405ff5
push 0x103
lea eax, [esp + 0x555]
push ebx
push eax
mov byte [esp + 0x55c], bl
call fcn.0044ded0
add esp, 0xc
push 0x5c
push dword [esp + 0x24]
call fcn.00444170
push 0x2e
push dword [esp + 0x2c]
mov dword [esp + 0x24], eax
call fcn.00444170
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x406bbd
cmp dword [esp + 0x14], ebx
je 0x406bbd
push 0x3f
lea eax, [esp + 0x185]
push ebx
push eax
mov byte [esp + 0x18c], bl
call fcn.0044ded0
mov eax, dword [esp + 0x38]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x406b1d
sub eax, ecx
lea ecx, [esp + 0x180]
push 0x40
push ecx
mov ecx, dword [esp + 0x34]
call fcn.0040db93
push eax
lea eax, [esp + 0x18c]
push eax
lea edx, [esp + 0x1d0]
call fcn.0040f73f
inc dword [esp + 0x24]
lea eax, [esi + 1]
push eax
mov eax, edx
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0x56c]
push str._s._s._s
push eax
mov byte [esi], bl
call edi
add esp, 0x24
lea eax, [esp + 0x550]
push eax
push dword [esp + 0x48]
lea eax, [esp + 0x80]
push 0x45d450
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.0040f43b
mov eax, dword [ebp + 8]
push dword [eax + 0x324]
push ebx
push dword [esp + 0x24]
push dword [esp + 0x30]
call fcn.00405ff5
mov esi, dword [esp + 0x20]
push 0x10
push esi
push str.systemcomponents
call fcn.00444396
add esp, 0xc
test eax, eax
jne 0x406c19
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.0040f43b
mov eax, dword [ebp + 8]
push dword [eax + 0x324]
push ebx
push dword [esp + 0x24]
push dword [esp + 0x30]
call fcn.00405ff5
mov eax, dword [ebp + 8]
push dword [eax + 0x324]
push ebx
push dword [esp + 0x24]
push dword [esp + 0x30]
call fcn.00405ff5
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 0x406a2c
push dword [esp + 0x10]
call fcn.00444160
pop ecx
lea esi, [esp + 0x48]
mov byte [esp + 0x664], bl
call fcn.00412c75
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [esp + 0x58]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
je 0x406e39
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jbe 0x406e2f
lea eax, [esi + 1]
push eax
call fcn.00443ca8
pop ecx
mov dword [esp + 0x14], eax
lea eax, [esi + 1]
push eax
push ebx
push dword [esp + 0x1c]
call fcn.0044ded0
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.00401e15
lea ecx, [esp + 0x48]
mov byte [esp + 0x664], 5
call fcn.00413635
jmp 0x406d2a
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406d12
sub eax, edx
je 0x406d2e
inc dword [esp + 0x1c]
lea ecx, [esp + 0x48]
call fcn.0041364d
cmp eax, ebx
jne 0x406d0f
lea ecx, [esp + 0x48]
call fcn.00413635
jmp 0x406e09
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406d43
sub eax, edx
je 0x406e15
push 0x103
lea eax, [esp + 0x7d]
push ebx
push eax
mov byte [esp + 0x84], bl
call fcn.0044ded0
add esp, 0xc
push dword [esp + 0x10]
lea eax, [esp + 0x7c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0x45d450
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.0040f43b
mov esi, dword [esp + 0x10]
push 0x10
push esi
push str.systemcomponents
call fcn.00444396
add esp, 0xc
test eax, eax
jne 0x406de5
add esi, 0x10
push esi
push dword [esp + 0x3c]
lea eax, [esp + 0x80]
push dword [esp + 0x3c]
push 0x45d450
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.0040f43b
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.00405ff5
lea ecx, [esp + 0x48]
call fcn.0041364d
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x406d3c
push dword [esp + 0x14]
call fcn.00444160
pop ecx
lea esi, [esp + 0x48]
mov byte [esp + 0x664], bl
call fcn.004130ed
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.0040f45a
push ebx
push dword [esp + 0x50]
call fcn.0040f45a
push dword [esp + 0x84]
call fcn.00444794
add esp, 0x14
push dword [esp + 0x40]
call fcn.00444794
pop ecx
push dword [esp + 0x30]
call fcn.00444794
pop ecx
push dword [esp + 0x44]
call fcn.00444794
pop ecx
call fcn.00405a27
mov edi, eax
cmp edi, ebx
je 0x406eb2
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406ea4
sub eax, edx
je 0x406eb2
push edi
call esi
push edi
call fcn.00444794
lea eax, [esp + 0x38]
mov dword [esp], str.systemcomponents
call fcn.00401bef
call fcn.00401d25
mov esi, eax
pop ecx
lea eax, [esp + 0x34]
call fcn.00401c09
xor ebx, ebx
inc ebx
push ebx
push esi
mov edi, eax
call fcn.0040f45a
push ebx
push edi
call fcn.0040f45a
push edi
call fcn.00444794
add esp, 0x14
push esi
call fcn.00444794
mov eax, dword [ebp + 8]
pop ecx
push dword [eax + 0x324]
push ebx
push dword [esp + 0x24]
push dword [esp + 0x18]
call fcn.00405ff5
lea eax, [esp + 0x34]
call fcn.00401b98
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