Function at 0x405670
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444afa
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x45e098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x98], 0
lea ecx, [ebp - 0x28]
call fcn.00408ea0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00408ea0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x8c]
add eax, 0x24
push eax
lea ecx, [ebp - 0x28]
call fcn.00408c10
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x58]
call fcn.004036b0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x8c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x8c]
mov eax, dword [edx + 0x4c]
call eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00403e80
lea ecx, [ebp - 0x28]
call fcn.004086a0
movzx ecx, al
test ecx, ecx
jne 0x405740
lea ecx, [ebp - 0x28]
call fcn.00408720
sub eax, 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00408850
movsx edx, byte [eax]
cmp edx, 0x5c
je 0x405740
push 0x5c
lea ecx, [ebp - 0x28]
call fcn.00408b90
mov eax, dword [ebp - 0x8c]
add eax, 0xc
push eax
lea ecx, [ebp - 0x28]
call fcn.00408bd0
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00408c10
lea edx, [ebp - 0x70]
push edx
call fcn.00403ac0
add esp, 4
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xa0]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00408bd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.00408c50
mov ecx, dword [ebp - 0x8c]
add ecx, 0x3c
call fcn.004086a0
movzx edx, al
test edx, edx
jne 0x4057c2
mov eax, dword [ebp - 0x8c]
add eax, 0x3c
push eax
lea ecx, [ebp - 0x28]
call fcn.00408bd0
push 0x4549b4
lea ecx, [ebp - 0x28]
call fcn.00408bb0
push str..log
mov ecx, dword [ebp - 0x8c]
add ecx, 0xc
push ecx
lea edx, [ebp - 0x88]
push edx
call fcn.0040add0
add esp, 0xc
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00408cb0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call fcn.00408c50
mov edx, dword [ebp - 0x8c]
cmp dword [edx + 0x58], 0xffffffff
je 0x4058d0
lea ecx, [ebp - 0x94]
call fcn.00408530
mov byte [ebp - 4], 6
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x8c]
add edx, 0x24
push edx
call fcn.00403390
add esp, 0xc
lea ecx, [ebp - 0x94]
call fcn.00401a10
mov ecx, dword [ebp - 0x8c]
cmp eax, dword [ecx + 0x58]
jbe 0x4058c1
lea ecx, [ebp - 0x94]
call fcn.00408490
mov ecx, eax
call fcn.00408740
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0xb0]
push edx
lea ecx, [ebp - 0x94]
call fcn.004084b0
mov eax, dword [eax]
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
push ecx
lea edx, [ebp - 0xb4]
push edx
lea ecx, [ebp - 0x94]
call fcn.00408440
jmp 0x40585d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x94]
call fcn.004084e0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.00408cf0
mov ecx, dword [ebp - 0x98]
or ecx, 1
mov dword [ebp - 0x98], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00408c50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00408c50
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004261af
mov esp, ebp
pop ebp
ret 4