Function at 0x40c6a0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68c35e
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x737100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x148], 0
mov byte [ebp - 0x141], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.004093d0
add esp, 8
mov dword [ebp - 4], 0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0xc8]
push eax
call fcn.0040cb40
add esp, 8
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x154]
mov dword [ebp - 0x158], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x158]
push edx
lea eax, [ebp - 0x68]
push eax
call fcn.0040cae0
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc8]
call fcn.00403030
lea ecx, [ebp - 0x68]
call fcn.00404000
cmp eax, 3
jbe 0x40c791
push 3
push 0
lea ecx, [ebp - 0x140]
push ecx
lea ecx, [ebp - 0x68]
call fcn.00402f70
mov dword [ebp - 0x194], eax
mov edx, dword [ebp - 0x194]
mov dword [ebp - 0x190], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x148]
or eax, 1
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x190]
mov dword [ebp - 0x150], ecx
jmp 0x40c7c1
lea edx, [ebp - 0x68]
push edx
lea ecx, [ebp - 0xb0]
call fcn.004030e0
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp - 0x148]
or eax, 2
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x18c]
mov dword [ebp - 0x150], ecx
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0x188], edx
mov eax, dword [ebp - 0x188]
push eax
lea ecx, [ebp - 0x98]
call fcn.0040cf70
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x148]
and ecx, 2
je 0x40c803
and dword [ebp - 0x148], 0xfffffffd
lea ecx, [ebp - 0xb0]
call fcn.00403030
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x148]
and edx, 1
je 0x40c824
and dword [ebp - 0x148], 0xfffffffe
lea ecx, [ebp - 0x140]
call fcn.00403030
mov dword [ebp - 0x14c], 0
jmp 0x40c83f
mov eax, dword [ebp - 0x14c]
add eax, 1
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0xa
jae 0x40c993
call fcn.004ead73
xor edx, edx
mov ecx, 0x10000
div ecx
mov dword [ebp - 0x184], edx
mov edx, dword [ebp - 0x184]
push edx
push 0x71ce14
push 0x20
lea eax, [ebp - 0x50]
push eax
call fcn.00408120
add esp, 0x10
lea ecx, [ebp - 0x98]
push ecx
lea edx, [ebp - 0x80]
push edx
lea eax, [ebp - 0xe0]
push eax
call fcn.0040dc30
add esp, 0xc
mov dword [ebp - 0x180], eax
mov ecx, dword [ebp - 0x180]
mov dword [ebp - 0x17c], ecx
mov byte [ebp - 4], 7
lea edx, [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x17c]
push eax
lea ecx, [ebp - 0xf8]
push ecx
call fcn.0040db20
add esp, 0xc
mov dword [ebp - 0x178], eax
mov edx, dword [ebp - 0x178]
mov dword [ebp - 0x174], edx
mov byte [ebp - 4], 8
push 0x71ce20
mov eax, dword [ebp - 0x174]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.0040db20
add esp, 0xc
mov dword [ebp - 0x170], eax
mov edx, dword [ebp - 0x170]
mov dword [ebp - 0x198], edx
mov byte [ebp - 4], 9
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x198]
push ecx
lea edx, [ebp - 0x128]
push edx
call fcn.0040dcc0
add esp, 0xc
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x15c]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00406030
lea ecx, [ebp - 0x128]
call fcn.00403030
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x110]
call fcn.00403030
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xf8]
call fcn.00403030
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xe0]
call fcn.00403030
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004098d0
add esp, 4
movzx edx, al
test edx, edx
jne 0x40c98e
mov byte [ebp - 0x141], 1
jmp 0x40c993
jmp 0x40c830
movzx eax, byte [ebp - 0x141]
test eax, eax
jne 0x40c9dd
mov dword [ebp - 0x160], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x98]
call fcn.00403030
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00403030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00403030
mov eax, dword [ebp - 0x160]
jmp 0x40cac5
mov ecx, dword [ebp + 0x10]
call fcn.00403020
push eax
mov ecx, dword [ebp + 8]
call fcn.00403020
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40ca38
mov dword [ebp - 0x164], 2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x98]
call fcn.00403030
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00403030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00403030
mov eax, dword [ebp - 0x164]
jmp 0x40cac5
push 4
push 0
mov ecx, dword [ebp + 0x10]
call fcn.00403020
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40ca8b
mov dword [ebp - 0x168], 3
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x98]
call fcn.00403030
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00403030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00403030
mov eax, dword [ebp - 0x168]
jmp 0x40cac5
mov dword [ebp - 0x16c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x98]
call fcn.00403030
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00403030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00403030
mov eax, dword [ebp - 0x16c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004815ec
mov esp, ebp
pop ebp
ret