Function at 0x4094e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5764dc
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x5d61f0]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push edi
mov eax, dword [0x5d61f0]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00409160
call fcn.004290db
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x409543
push 0x80004005
call fcn.00402650
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x270], 0
mov eax, dword [edi + 0x170]
push ecx
sub eax, 0x10
mov esi, esp
push eax
call fcn.00402680
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0041a200
add esp, 4
or ebx, 0xffffffff
test eax, eax
jne 0x409617
push 0x5ad23c
lea eax, [edi + 0x16c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0040de30
add esp, 0xc
push str.umain.zip
push eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x27c], 1
call fcn.0040de30
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x274], 2
call fcn.00402530
mov byte [esp + 0x270], 1
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4095f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x270], 0
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409617
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 0x170]
push ecx
sub eax, 0x10
mov esi, esp
push eax
call fcn.00402680
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0041a200
add esp, 4
test eax, eax
je 0x409720
mov dword [esp + 0x1c], 0
mov dword [esp + 0x254], 0
mov dword [esp + 0x258], 0
call fcn.004290db
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40967b
push 0x80004005
call fcn.00402650
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x254], eax
call fcn.004290db
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4096a8
push 0x80004005
call fcn.00402650
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x258], eax
lea eax, [edi + 0x16c]
push eax
lea eax, [edi + 0x170]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x278], 3
call fcn.0040df60
mov byte [esp + 0x270], 0
mov edx, dword [esp + 0x258]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409700
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x254]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409720
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 0x16c]
push ecx
sub eax, 0x10
mov esi, esp
push eax
call fcn.00402680
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004088a0
mov ecx, dword [edi + 0x150]
push 0x64
call fcn.00411210
push dword [edi + 0x170]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [edi + 0x14c]
push 1
call fcn.004148a0
mov ecx, dword [edi + 0x158]
push 1
call fcn.004148a0
mov ecx, dword [edi + 0x148]
push 1
call fcn.004148a0
mov ecx, dword [edi + 0x15c]
push 0
call fcn.004148a0
mov ecx, dword [edi + 0x150]
push 0
call fcn.004148a0
mov ecx, dword [edi + 0x154]
push 1
call fcn.004148a0
push 1
push 0
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov dword [esp + 0x270], 0xffffffff
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4097d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0054940a
mov esp, ebp
pop ebp
ret