Function at 0x404f25
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42d3b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push esi
lea edi, [esp + 0x30]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], 0xa
call fcn.004017c8
push str.mupdb
mov eax, edi
mov dword [esp + 0x430], ebx
call fcn.0040186f
call fcn.004019a5
mov edi, eax
lea eax, [esp + 0x30]
mov dword [esp + 0x44], edi
mov dword [esp], str.cache
call fcn.0040186f
call fcn.004019a5
mov dword [esp + 0x40], eax
mov eax, edi
mov dword [esp], str..files
call fcn.004019a5
mov dword [esp + 0x3c], eax
mov eax, edi
mov dword [esp], str..packages
call fcn.004019a5
mov dword [esp + 0x48], eax
mov eax, edi
mov dword [esp], str.filedb
call fcn.004019a5
mov edi, eax
mov dword [esp], 0x103
lea eax, [esp + 0x31d]
push ebx
push eax
mov byte [esp + 0x324], bl
call fcn.00426af0
add esp, 0xc
lea eax, [esi + 0x30c]
push eax
lea eax, [esi + 0x208]
push eax
push esi
lea eax, [esp + 0x324]
push str._Smupdb_s__S
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
je 0x405367
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
jbe 0x405355
lea esi, [edi + 1]
push esi
call fcn.00420778
pop ecx
push esi
push ebx
push eax
mov dword [esp + 0x20], eax
call fcn.00426af0
add esp, 0xc
push ebx
lea eax, [esp + 0x38]
push eax
push edi
push dword [esp + 0x20]
mov dword [esp + 0x44], ebx
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push 5
push edi
push dword [esp + 0x20]
lea eax, [esp + 0x58]
push eax
call fcn.0040e000
push ebx
push ebx
mov byte [esp + 0x434], 1
mov eax, dword [esp + 0x50]
push 1
lea ecx, [esp + 0x54]
call dword [eax + 0x18]
test eax, eax
je 0x4050be
xor esi, esi
inc esi
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
push ebx
push ebx
inc esi
push esi
lea ecx, [esp + 0x54]
call dword [eax + 0x18]
test eax, eax
jne 0x4050a7
mov eax, dword [esp + 0x48]
push ebx
push ebx
push 1
lea ecx, [esp + 0x54]
mov dword [esp + 0x18], ebx
call dword [eax + 0x18]
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x405330
mov eax, dword [esp + 0x48]
push 0x4301bf
push str.hash
push dword [esp + 0x28]
lea ecx, [esp + 0x54]
call dword [eax + 0x18]
push 0x103
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x8d]
push ebx
push eax
mov byte [esp + 0x94], bl
call fcn.00426af0
add esp, 0xc
push dword [esp + 0x20]
lea eax, [esp + 0x30]
call fcn.0040186f
push eax
lea eax, [esp + 0x90]
push 0x4302c4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x10
lea eax, [esp + 0x88]
push eax
call edi
lea esi, [esp + 0x88]
call fcn.0040215d
push 0x103
lea eax, [esp + 0x215]
push ebx
push eax
mov byte [esp + 0x21c], bl
call fcn.00426af0
add esp, 0xc
push 0x5c
push dword [esp + 0x24]
call fcn.00420860
push 0x2e
push dword [esp + 0x2c]
mov dword [esp + 0x20], eax
call fcn.00420860
mov esi, eax
add esp, 0x10
cmp esi, ebx
mov dword [esp + 0x28], esi
je 0x4052a3
cmp dword [esp + 0x10], ebx
je 0x4052a3
push 0x3f
lea eax, [esp + 0x195]
push ebx
push eax
mov byte [esp + 0x19c], bl
call fcn.00426af0
mov eax, dword [esp + 0x24]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4051ca
sub eax, ecx
lea ecx, [esp + 0x190]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0040d7d2
pop ecx
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x18], eax
jbe 0x405235
mov esi, str.0123456789abcdef
lea edi, [esp + 0x74]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
movzx edx, byte [esp + ecx + 0x190]
movzx eax, dl
shr eax, 4
mov al, byte [esp + eax + 0x74]
and edx, 0xf
mov byte [esp + ecx*2 + 0x1d0], al
mov al, byte [esp + edx + 0x74]
mov byte [esp + ecx*2 + 0x1d1], al
inc ecx
cmp ecx, dword [esp + 0x18]
jb 0x4051fd
mov esi, dword [esp + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc dword [esp + 0x10]
lea eax, [esi + 1]
push eax
lea eax, [esp + 0x1d4]
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x21c]
push str._s._s._s
push eax
mov byte [esp + ecx*2 + 0x1e4], bl
mov byte [esi], bl
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [esp + 0x210]
push eax
push dword [esp + 0x40]
lea eax, [esp + 0x90]
push 0x4302c4
push eax
mov byte [esi], 0x2e
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x88]
push eax
call edi
lea esi, [esp + 0x88]
call fcn.0040215d
mov esi, dword [esp + 0x20]
push 0x10
push esi
push str.systemcomponents
call fcn.00420f65
add esp, 0xc
test eax, eax
jne 0x4052ee
add esi, 0x11
push esi
push dword [ebp + 8]
lea eax, [esp + 0x90]
push str._S_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x88]
push eax
call edi
lea esi, [esp + 0x88]
call fcn.0040215d
push dword [esp + 0x1c]
mov eax, dword [ebp + 8]
push dword [esp + 0x10]
mov eax, dword [eax + 0x324]
push 0x404
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
push ebx
inc eax
push ebx
push eax
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x54]
call dword [eax + 0x18]
cmp eax, ebx
mov dword [esp + 0x20], eax
jne 0x4050dd
jmp 0x405336
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esp + 0x14]
call fcn.00420926
pop ecx
lea esi, [esp + 0x48]
mov byte [esp + 0x42c], bl
call fcn.0040e08c
mov esi, dword [ebp + 8]
jmp 0x40535b
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40536d
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.004044cb
mov ecx, eax
cmp ecx, ebx
mov dword [esp + 0x28], ecx
je 0x405390
lea eax, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x40537f
sub ecx, eax
je 0x405390
push dword [esp + 0x28]
call edi
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x405566
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [esp + 0x24], eax
jbe 0x40555c
lea esi, [eax + 1]
push esi
call fcn.00420778
pop ecx
push esi
push ebx
push eax
mov dword [esp + 0x20], eax
call fcn.00426af0
add esp, 0xc
push ebx
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x2c]
mov dword [esp + 0x34], ebx
push dword [esp + 0x20]
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esp + 0x24]
lea eax, [esp + 0x4c]
push dword [esp + 0x18]
push eax
call fcn.00401a9c
lea ecx, [esp + 0x48]
mov byte [esp + 0x42c], 2
call fcn.0040ead0
jmp 0x40543c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405424
sub eax, edx
je 0x405440
inc dword [esp + 0x1c]
lea ecx, [esp + 0x48]
call fcn.0040eae8
cmp eax, ebx
jne 0x405421
lea ecx, [esp + 0x48]
call fcn.0040ead0
jmp 0x405533
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405455
sub eax, edx
je 0x40553f
push 0x103
lea eax, [esp + 0x8d]
push ebx
push eax
mov byte [esp + 0x94], bl
call fcn.00426af0
add esp, 0xc
push dword [esp + 0x10]
lea eax, [esp + 0x8c]
push dword [esp + 0x34]
push dword [esp + 0x34]
push 0x4302c4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [esp + 0x88]
push eax
call edi
lea esi, [esp + 0x88]
call fcn.0040215d
mov esi, dword [esp + 0x10]
push 0x10
push esi
push str.systemcomponents
call fcn.00420f65
add esp, 0xc
test eax, eax
jne 0x405509
add esi, 0x10
push esi
push dword [esp + 0x34]
lea eax, [esp + 0x90]
push dword [esp + 0x34]
push 0x4302c4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [esp + 0x88]
push eax
call edi
lea esi, [esp + 0x88]
call fcn.0040215d
push dword [esp + 0x1c]
inc dword [esp + 0x10]
push dword [esp + 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x324]
push 0x404
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x48]
call fcn.0040eae8
cmp eax, ebx
mov dword [esp + 0x10], eax
jne 0x40544e
push dword [esp + 0x14]
call fcn.00420926
pop ecx
lea esi, [esp + 0x48]
mov byte [esp + 0x42c], bl
call fcn.0040e588
mov esi, dword [ebp + 8]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x318]
push eax
call edi
push dword [esp + 0x38]
call edi
push dword [esp + 0x44]
call edi
push ebx
push dword [esp + 0x44]
call fcn.0040217c
push ebx
push dword [esp + 0x48]
call fcn.0040217c
push dword [esp + 0x54]
call fcn.00421456
add esp, 0x14
push dword [esp + 0x38]
call fcn.00421456
pop ecx
push dword [esp + 0x40]
call fcn.00421456
pop ecx
push dword [esp + 0x3c]
call fcn.00421456
lea eax, [esp + 0x30]
mov dword [esp], str.systemcomponents
call fcn.0040186f
call fcn.004019a5
mov edi, eax
pop ecx
lea eax, [esp + 0x2c]
call fcn.00401889
push 1
push edi
mov ebx, eax
call fcn.0040217c
push 1
push ebx
call fcn.0040217c
push ebx
call fcn.00421456
add esp, 0x14
push edi
call fcn.00421456
pop ecx
push dword [esp + 0x1c]
push dword [esp + 0x10]
push 0x405
push dword [esi + 0x324]
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [esp + 0x2c]
call fcn.00401818
mov ecx, dword [esp + 0x424]
pop edi
xor eax, eax
pop esi
inc eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret