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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42c45c
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 + 0x2c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], 0xa
call fcn.004017c8
push str.mupdb
mov eax, edi
mov dword [esp + 0x430], ebx
call fcn.0040186f
call fcn.00401969
mov edi, eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x44], edi
mov dword [esp], str.cache
call fcn.0040186f
call fcn.00401969
mov dword [esp + 0x3c], eax
mov eax, edi
mov dword [esp], str..files
call fcn.00401969
mov dword [esp + 0x34], eax
mov eax, edi
mov dword [esp], str..packages
call fcn.00401969
mov dword [esp + 0x48], eax
mov eax, edi
mov dword [esp], str.filedb
call fcn.00401969
mov edi, eax
mov dword [esp], 0x103
lea eax, [esp + 0x31d]
push ebx
push eax
mov byte [esp + 0x324], bl
call fcn.00425710
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 0x404c65
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
jbe 0x404c53
lea esi, [edi + 1]
push esi
call fcn.0041fa52
pop ecx
push esi
push ebx
push eax
mov dword [esp + 0x20], eax
call fcn.00425710
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.0040d2f6
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 0x4049bc
xor esi, esi
inc esi
inc dword [esp + 0x18]
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 0x4049a5
mov eax, dword [esp + 0x48]
push ebx
push ebx
push 1
lea ecx, [esp + 0x54]
mov dword [esp + 0x1c], ebx
call dword [eax + 0x18]
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x404c2e
mov eax, dword [esp + 0x48]
push 0x42f19f
push str.hash
push dword [esp + 0x28]
lea ecx, [esp + 0x54]
call dword [eax + 0x18]
push 0x103
mov dword [esp + 0x20], eax
lea eax, [esp + 0x8d]
push ebx
push eax
mov byte [esp + 0x94], bl
call fcn.00425710
add esp, 0xc
push dword [esp + 0x20]
lea eax, [esp + 0x2c]
call fcn.0040186f
push eax
lea eax, [esp + 0x90]
push 0x42f2a4
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.00402119
push 0x103
lea eax, [esp + 0x215]
push ebx
push eax
mov byte [esp + 0x21c], bl
call fcn.00425710
add esp, 0xc
push 0x5c
push dword [esp + 0x24]
call fcn.0041fb40
push 0x2e
push dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
call fcn.0041fb40
mov esi, eax
add esp, 0x10
cmp esi, ebx
mov dword [esp + 0x3c], esi
je 0x404ba1
cmp dword [esp + 0xc], ebx
je 0x404ba1
push 0x3f
lea eax, [esp + 0x195]
push ebx
push eax
mov byte [esp + 0x19c], bl
call fcn.00425710
mov eax, dword [esp + 0x28]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x404ac8
sub eax, ecx
lea ecx, [esp + 0x190]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.0040ca8f
pop ecx
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x1c], eax
jbe 0x404b33
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 + 0x1c]
jb 0x404afb
mov esi, dword [esp + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc dword [esp + 0xc]
lea eax, [esi + 1]
push eax
lea eax, [esp + 0x1d4]
push eax
push dword [esp + 0x14]
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 + 0x3c]
lea eax, [esp + 0x90]
push 0x42f2a4
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.00402119
mov esi, dword [esp + 0x20]
push 0x10
push esi
push str.systemcomponents
call fcn.00420170
add esp, 0xc
test eax, eax
jne 0x404bec
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.00402119
push dword [esp + 0x18]
mov eax, dword [ebp + 8]
push dword [esp + 0x14]
mov eax, dword [eax + 0x324]
push 0x404
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
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 0x4049db
jmp 0x404c34
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esp + 0x14]
call fcn.0041fc06
pop ecx
lea esi, [esp + 0x48]
mov byte [esp + 0x42c], bl
call fcn.0040d382
mov esi, dword [ebp + 8]
jmp 0x404c59
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404c6b
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [esp + 0x48]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x404e41
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [esp + 0x24], eax
jbe 0x404e37
lea esi, [eax + 1]
push esi
call fcn.0041fa52
pop ecx
push esi
push ebx
push eax
mov dword [esp + 0x20], eax
call fcn.00425710
add esp, 0xc
push ebx
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x2c]
mov dword [esp + 0x48], ebx
push dword [esp + 0x20]
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esp + 0x24]
lea eax, [esp + 0x4c]
push dword [esp + 0x18]
push eax
call fcn.00401a60
lea ecx, [esp + 0x48]
mov byte [esp + 0x42c], 2
call fcn.0040dd95
jmp 0x404d17
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404cff
sub eax, edx
je 0x404d1b
inc dword [esp + 0x18]
lea ecx, [esp + 0x48]
call fcn.0040ddad
cmp eax, ebx
jne 0x404cfc
lea ecx, [esp + 0x48]
call fcn.0040dd95
jmp 0x404e0e
mov eax, dword [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404d30
sub eax, edx
je 0x404e1a
push 0x103
lea eax, [esp + 0x8d]
push ebx
push eax
mov byte [esp + 0x94], bl
call fcn.00425710
add esp, 0xc
push dword [esp + 0xc]
lea eax, [esp + 0x8c]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0x42f2a4
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.00402119
mov esi, dword [esp + 0xc]
push 0x10
push esi
push str.systemcomponents
call fcn.00420170
add esp, 0xc
test eax, eax
jne 0x404de4
add esi, 0x10
push esi
push dword [esp + 0x30]
lea eax, [esp + 0x90]
push dword [esp + 0x30]
push 0x42f2a4
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.00402119
push dword [esp + 0x18]
inc dword [esp + 0x14]
push dword [esp + 0x14]
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.0040ddad
cmp eax, ebx
mov dword [esp + 0xc], eax
jne 0x404d29
push dword [esp + 0x14]
call fcn.0041fc06
pop ecx
lea esi, [esp + 0x48]
mov byte [esp + 0x42c], bl
call fcn.0040d84d
mov esi, dword [ebp + 8]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x318]
push eax
call edi
push dword [esp + 0x30]
call edi
push dword [esp + 0x44]
call edi
push dword [esp + 0x40]
call fcn.00402138
pop ecx
push dword [esp + 0x38]
call fcn.00402138
pop ecx
push dword [esp + 0x44]
call fcn.0042039d
pop ecx
push dword [esp + 0x30]
call fcn.0042039d
pop ecx
push dword [esp + 0x40]
call fcn.0042039d
pop ecx
push dword [esp + 0x38]
call fcn.0042039d
lea eax, [esp + 0x2c]
mov dword [esp], str.systemcomponents
call fcn.0040186f
call fcn.00401969
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ecx
mov ebx, eax
push ebx
call edi
lea eax, [esp + 0x28]
call fcn.0040186f
push eax
call edi
push ebx
call fcn.0042039d
pop ecx
push dword [esp + 0x18]
push dword [esp + 0x14]
push 0x405
push dword [esi + 0x324]
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [esp + 0x28]
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