Function at 0x405ba0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x43b553
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x44e888]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x810]
mov edi, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
call fcn.0040fa1d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405c08
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
call fcn.0040fa1d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405c35
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x20]
push edx
mov edx, dword [ebp + 0x80c]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push edx
mov byte [ebp - 4], 2
call fcn.00414410
mov ebx, 3
cmp dword [ebp - 0x2c], ebx
je 0x405c98
mov eax, dword [edi + 0x338]
mov ecx, dword [ebp + 0x80c]
push eax
push 0
push 0
push 1
push 0
push ecx
mov ecx, dword [edi + 0x334]
push 1
call fcn.0041498f
mov esi, eax
mov dword [ebp - 0x14], esi
jmp 0x405cbd
mov edx, dword [edi + 0x338]
mov eax, dword [ebp - 0x20]
mov ecx, dword [edi + 0x334]
push edx
push 0
push 0
push 1
push 0
push eax
push 1
call fcn.0041498f
mov esi, eax
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 0
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.004143c4
lea ecx, [ebp + 0x80c]
push ecx
lea edx, [ebp - 0x14]
push 0x43f28c
push edx
mov dword [ebp - 4], 2
call fcn.004057d0
add esp, 0xc
lea ebx, [edi + 0x310]
push eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.00403430
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405d23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
mov ecx, edi
call fcn.0040a4b6
mov ecx, edi
call fcn.00405030
call fcn.0040fa1d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x405d4d
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 6
test esi, esi
je 0x406143
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0x13
mov ecx, esi
call fcn.00414536
mov edx, dword [ebp - 0x18]
push 0x43f288
push edx
call fcn.004277ec
add esp, 8
test eax, eax
sete al
test al, al
je 0x405e90
push 0x43f27c
lea eax, [ebp + 0x80c]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.004056f0
add esp, 0xc
push eax
mov ecx, ebx
mov byte [ebp - 4], 7
call fcn.00403430
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405ddc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
mov ecx, edi
call fcn.0040a4b6
mov ecx, edi
call fcn.00405030
mov edx, dword [esi]
mov eax, dword [edx + 0x4c]
mov ecx, esi
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405e18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405e3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405e5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x80c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4062e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4062e7
push 0
lea ecx, [ebp - 0x18]
push ecx
push 5
mov ecx, esi
call fcn.00414536
mov edx, dword [ebp - 0x18]
push edx
call fcn.00427b46
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [edi + 0x318]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00405630
add esp, 0x10
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.00403430
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ef2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x44]
call fcn.00415b42
push str..upg
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
mov byte [ebp - 4], 9
call fcn.004056f0
add esp, 0xc
mov eax, dword [eax]
push 0
push 0x9021
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xa
call fcn.00415b5a
test eax, eax
mov eax, dword [ebp - 0x14]
sete bl
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x406087
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push 0x43f26c
push edx
call fcn.004057d0
push 0x43f244
push eax
lea eax, [ebp - 0x14]
mov bl, 0xb
push eax
mov byte [ebp - 4], bl
call fcn.004056f0
add esp, 0x18
mov eax, dword [eax]
push 0
push 0x10
push eax
mov byte [ebp - 4], 0xc
call fcn.0041028e
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405fb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405fd7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x4c]
mov ecx, esi
call eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.00415f73
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40600f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406032
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406055
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x80c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4062e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4062e7
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
push 0x800
lea eax, [ebp]
push eax
mov ecx, esi
mov dword [ebp - 0x1c], 0
call edx
mov ebx, eax
test ebx, ebx
jle 0x40612e
lea ebx, [ebx]
mov eax, dword [ebp - 0x1c]
add eax, ebx
mov dword [ebp - 0x1c], eax
imul eax, eax, 0x64
xor edx, edx
div dword [ebp - 0x28]
lea ecx, [edi + 0x238]
push eax
call fcn.00404730
mov dword [ebp - 0x14], 0
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4060fd
lea ecx, [ebp - 0x64]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x64]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [ebp - 0x14]
inc eax
cmp eax, 0xa
mov dword [ebp - 0x14], eax
jl 0x4060d3
push ebx
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x44]
call fcn.00415d09
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
push 0x800
lea eax, [ebp]
push eax
mov ecx, esi
call edx
mov ebx, eax
test ebx, ebx
jg 0x4060b0
mov eax, dword [esi]
mov edx, dword [eax + 0x4c]
mov ecx, esi
call edx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.00415f73
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x406160
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4061fb
push str..upg
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.004056f0
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax]
push ecx
push eax
call fcn.00427b13
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4061a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x43f238
lea ecx, [ebp + 0x80c]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.004056f0
add esp, 0xc
lea ecx, [edi + 0x310]
push eax
mov byte [ebp - 4], 0xd
call fcn.00403430
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4061eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
mov ecx, edi
call fcn.0040a4b6
mov ecx, edi
call fcn.00405030
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40621e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406241
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406264
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x80c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40628d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4062e9
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.00426da1
add ebp, 0x804
mov esp, ebp
pop ebp
ret 8