Function at 0x402660
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov dword [ebp - 0x478], ecx
push 0x429550
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041e701
add esp, 8
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jne 0x402696
xor eax, eax
jmp 0x402abf
push 0
push 0x64000
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.0041e65c
add esp, 0xc
test eax, eax
je 0x4026c6
mov edx, dword [ebp - 0x22c]
push edx
call fcn.0041e57c
add esp, 4
xor eax, eax
jmp 0x402abf
mov eax, dword [ebp - 0x22c]
push eax
push 0x10
push 1
lea ecx, [ebp - 0x358]
push ecx
call fcn.0041e4e4
add esp, 0x10
cmp dword [ebp - 0x358], 0x64000
jle 0x402702
mov edx, dword [ebp - 0x22c]
push edx
call fcn.0041e57c
add esp, 4
xor eax, eax
jmp 0x402abf
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.0041e1b0
add esp, 8
push 0x2e
lea edx, [ebp - 0x110]
push edx
call fcn.0041e720
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402748
lea eax, [ebp - 0x110]
push eax
call fcn.0041e990
add esp, 4
lea ecx, [ebp + eax - 0x110]
mov dword [ebp - 4], ecx
push 0x429554
mov edx, dword [ebp - 4]
push edx
call fcn.0041e1b0
add esp, 8
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x220]
push ecx
call fcn.0041e1b0
add esp, 8
lea edx, [ebp - 0x348]
push edx
lea eax, [ebp - 0x220]
push eax
call fcn.0041e7d1
add esp, 8
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jle 0x402860
lea ecx, [ebp - 0x334]
push ecx
call fcn.0041e990
add esp, 4
mov dword [ebp - 0x35c], eax
cmp dword [ebp - 0x35c], 4
jle 0x4027d7
push 0x429558
mov edx, dword [ebp - 0x35c]
lea eax, [ebp + edx - 0x338]
push eax
call fcn.0042828e
add esp, 8
test eax, eax
jne 0x4027d7
jmp 0x402833
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x468]
push edx
call fcn.0041e1b0
add esp, 8
push 0x5c
lea eax, [ebp - 0x468]
push eax
call fcn.0041e720
add esp, 8
mov dword [ebp - 0x46c], eax
cmp dword [ebp - 0x46c], 0
je 0x402826
lea ecx, [ebp - 0x334]
push ecx
mov edx, dword [ebp - 0x46c]
add edx, 1
push edx
call fcn.0041e1b0
add esp, 8
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x348]
push ecx
mov edx, dword [ebp - 0x224]
push edx
call fcn.0041e8ae
add esp, 8
test eax, eax
je 0x402798
mov eax, dword [ebp - 0x224]
push eax
call fcn.0041e74d
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x110]
push edx
call fcn.0041e1b0
add esp, 8
lea eax, [ebp - 0x110]
push eax
call fcn.00404030
add esp, 4
push 0x429560
lea ecx, [ebp - 0x110]
push ecx
call fcn.0041e701
add esp, 8
mov dword [ebp - 0x114], eax
push 0
push 0
mov edx, dword [ebp - 0x22c]
push edx
call fcn.0041e65c
add esp, 0xc
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x34c], 0
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax + 0xc]
and ecx, 0x10
jne 0x402a22
mov edx, dword [ebp - 0x228]
cmp edx, dword [ebp + 0x10]
jl 0x4029d5
mov eax, dword [ebp - 0x114]
push eax
call fcn.0041e57c
add esp, 4
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x228], 0
mov ecx, dword [ebp - 0x34c]
add ecx, 1
mov dword [ebp - 0x34c], ecx
push 0x5c
lea edx, [ebp - 0x110]
push edx
call fcn.0041e720
add esp, 8
mov dword [ebp - 0x470], eax
cmp dword [ebp - 0x470], 0
je 0x402964
push 0x2e
mov eax, dword [ebp - 0x470]
push eax
call fcn.0041e720
add esp, 8
mov dword [ebp - 0x474], eax
cmp dword [ebp - 0x474], 0
je 0x402962
mov ecx, dword [ebp - 0x474]
mov dword [ebp - 0x470], ecx
jmp 0x402980
lea edx, [ebp - 0x110]
push edx
call fcn.0041e990
add esp, 4
lea eax, [ebp + eax - 0x110]
mov dword [ebp - 0x470], eax
mov ecx, dword [ebp - 0x34c]
push ecx
push str.._03d
mov edx, dword [ebp - 0x470]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x42956c
lea eax, [ebp - 0x110]
push eax
call fcn.0041e701
add esp, 8
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x4029d5
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.0041e57c
add esp, 4
xor eax, eax
jmp 0x402abf
mov edx, dword [ebp - 0x22c]
push edx
push 1
push 1
lea eax, [ebp - 0x22d]
push eax
call fcn.0041e4e4
add esp, 0x10
cmp eax, 1
jne 0x402a1d
mov ecx, dword [ebp - 0x114]
push ecx
push 1
push 1
lea edx, [ebp - 0x22d]
push edx
call fcn.0041e3af
add esp, 0x10
mov eax, dword [ebp - 0x228]
add eax, 1
mov dword [ebp - 0x228], eax
jmp 0x4028c3
cmp dword [ebp - 0x114], 0
je 0x402a3a
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.0041e57c
add esp, 4
cmp dword [ebp - 0x34c], 0
jle 0x402aab
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x350], edx
push 0x429570
mov eax, dword [ebp + 8]
push eax
call fcn.0041e701
add esp, 8
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x402aab
push 0
push 0x64000
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.0041e65c
add esp, 0xc
mov edx, dword [ebp - 0x114]
push edx
push 0x10
push 1
lea eax, [ebp - 0x358]
push eax
call fcn.0041e3af
add esp, 0x10
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.0041e57c
add esp, 4
mov edx, dword [ebp - 0x22c]
push edx
call fcn.0041e57c
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc