Function at 0x40c960
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x46f7c8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x48b914]
xor eax, esp
mov dword [esp + 0x2c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b914]
xor eax, esp
push eax
lea eax, [esp + 0x2dc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2ec]
xor ebx, ebx
mov esi, 0xf
mov edi, ecx
mov dword [esp + 0xc0], esi
mov dword [esp + 0xbc], ebx
mov byte [esp + 0xac], bl
call fcn.0041b2f0
mov dword [esp + 0xa4], eax
mov dword [esp + 0x2e4], ebx
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
push 0x103
lea eax, [esp + 0x1d1]
push ebx
mov byte [esp + 0x2ec], 3
push eax
mov byte [esp + 0x1d8], bl
call fcn.004592c0
push 0x103
lea ecx, [esp + 0xd5]
push ebx
push ecx
mov byte [esp + 0xdc], bl
call fcn.004592c0
lea edx, [edi + 4]
push edx
lea esi, [esp + 0x34]
call fcn.00409120
add esp, 0x1c
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x2f0], 4
call fcn.00402730
mov byte [esp + 0x2e4], 3
cmp dword [esp + 0x30], 0x10
jb 0x40ca7a
mov eax, dword [esp + 0x1c]
push eax
call fcn.00436c58
add esp, 4
cmp dword [esp + 0x80], ebx
je 0x40ccc9
add edi, 8
push edi
lea esi, [esp + 0x8c]
call fcn.00409120
add esp, 4
mov byte [esp + 0x2e4], 5
mov eax, dword [esp + 0x8c]
mov edi, 0x10
cmp dword [esp + 0xa0], edi
jae 0x40cabe
lea eax, [esp + 0x8c]
push 1
push eax
lea esi, [esp + 0x20]
call fcn.0040c850
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x2f0], 6
call fcn.00402730
mov byte [esp + 0x2e4], 5
cmp dword [esp + 0x30], edi
jb 0x40cafd
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00436c58
add esp, 4
mov eax, dword [esp + 0x8c]
cmp dword [esp + 0xa0], edi
jae 0x40cb14
lea eax, [esp + 0x8c]
push 2
push eax
lea esi, [esp + 0x20]
call fcn.0040c850
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x2f0], 7
call fcn.00402730
mov byte [esp + 0x2e4], 5
cmp dword [esp + 0x30], edi
jb 0x40cb53
mov edx, dword [esp + 0x1c]
push edx
call fcn.00436c58
add esp, 4
lea edx, [esp + 0x34]
call fcn.0040e700
test eax, eax
jne 0x40cb73
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x1e4]
push eax
lea ecx, [esp + 0x40]
call fcn.00402730
lea edx, [esp + 0x50]
call fcn.0040e700
test eax, eax
jne 0x40cb93
push 0xffffffffffffffff
push ebx
lea ecx, [ebp + 0x1e4]
push ecx
lea ecx, [esp + 0x5c]
call fcn.00402730
lea edx, [esp + 0x1cc]
test edx, edx
je 0x40cbce
push 0x104
mov eax, edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
dec eax
cmp eax, 0x102
ja 0x40cbce
lea ecx, [esp + 0x1cc]
push 0x5c
push ecx
call fcn.00456f10
add esp, 8
cmp eax, ebx
je 0x40cbce
mov byte [eax + 1], bl
lea edx, [esp + 0x1cc]
push edx
lea esi, [esp + 0xc8]
call fcn.0040f9d0
mov esi, 1
add esp, 4
lea ecx, [ebp + 0x78]
cmp dword [ebp + 0x168], esi
je 0x40cbfb
lea ecx, [ebp + 0xf0]
lea eax, [esp + 0xc4]
push eax
call fcn.00408170
test al, al
jne 0x40cc5e
lea esp, [esp]
push 0x7d0
call fcn.0040e0f0
add esp, 4
lea ecx, [esp + 0xc4]
push ecx
mov eax, ebp
call fcn.0040b930
mov ecx, eax
call fcn.00408170
test al, al
jne 0x40cc4b
inc esi
cmp esi, 7
jle 0x40cc10
lea ecx, [esp + 0x88]
call fcn.004022c0
jmp 0x40ccc9
cmp esi, 7
jle 0x40cc5e
lea ecx, [esp + 0x88]
call fcn.004022c0
jmp 0x40ccc9
mov edx, dword [esp + 0x54]
cmp dword [esp + 0x68], edi
jae 0x40cc6c
lea edx, [esp + 0x54]
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x4c], edi
jae 0x40cc7a
lea ecx, [esp + 0x38]
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x84], edi
jae 0x40cc8b
lea eax, [esp + 0x70]
push edx
push ecx
lea edx, [esp + 0xcc]
push edx
push eax
lea eax, [esp + 0xb4]
call fcn.00404420
test al, al
jne 0x40cd6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0xa0], edi
jb 0x40ccc9
mov eax, dword [esp + 0x8c]
push eax
call fcn.00436c58
add esp, 4
cmp byte [esp + 0xc4], bl
je 0x40cce0
lea ecx, [esp + 0xc4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x68], 0x10
jb 0x40ccf4
mov edx, dword [esp + 0x54]
push edx
call fcn.00436c58
add esp, 4
mov edi, 0x10
mov esi, 0xf
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
cmp dword [esp + 0x4c], edi
jb 0x40cd1d
mov eax, dword [esp + 0x38]
push eax
call fcn.00436c58
add esp, 4
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
cmp dword [esp + 0x84], edi
jb 0x40cd3f
mov ecx, dword [esp + 0x70]
push ecx
call fcn.00436c58
add esp, 4
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
cmp eax, ebx
je 0x40cd65
push eax
call fcn.0041b550
add esp, 4
xor al, al
jmp 0x40ce21
lea edx, [esp + 0xc4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0xa0], edi
jb 0x40cd93
mov eax, dword [esp + 0x8c]
push eax
call fcn.00436c58
add esp, 4
mov esi, 0xf
mov dword [esp + 0xa0], esi
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
cmp dword [esp + 0x68], edi
jb 0x40cdc0
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00436c58
add esp, 4
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
cmp dword [esp + 0x4c], edi
jb 0x40cddf
mov edx, dword [esp + 0x38]
push edx
call fcn.00436c58
add esp, 4
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
cmp dword [esp + 0x84], edi
jb 0x40ce01
mov eax, dword [esp + 0x70]
push eax
call fcn.00436c58
add esp, 4
mov dword [esp + 0x84], esi
lea esi, [esp + 0xa4]
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
call fcn.004042b0
mov al, 1
mov ecx, dword [esp + 0x2dc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c0]
xor ecx, esp
call fcn.00454d22
add esp, 0x2d4
ret 4