Function at 0x40cc30
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c63b
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x439080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, 0x7ffffffe
mov ebx, dword [0x43a408]
mov eax, edi
mov edx, dword [esi + 0x10]
sub eax, edx
cmp eax, ebx
jb 0x40cf70
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x40cc85
mov ecx, dword [esi]
cmp dword [0x43a40c], 7
mov eax, 0x43a3f8
push ebx
cmova eax, dword [0x43a3f8]
push eax
push edx
push ecx
push esi
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x28]
call fcn.0040b430
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x40ccf4
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ccea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cf75
push ecx
push edx
call fcn.0040ef62
add esp, 8
mov edx, dword [esi + 0x10]
mov eax, edi
mov ebx, dword [0x43a408]
sub eax, edx
cmp eax, ebx
jb 0x40cf7a
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x40cd13
mov ecx, dword [esi]
cmp dword [0x43a40c], 7
mov eax, 0x43a3f8
push ebx
cmova eax, dword [0x43a3f8]
push eax
push edx
push ecx
push esi
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x40]
call fcn.0040b430
cmp dword [ebp - 0x2c], 7
lea ebx, [ebp - 0x40]
mov edx, dword [esi + 0x10]
mov eax, edi
cmova ebx, dword [ebp - 0x40]
sub eax, edx
mov dword [ebp - 4], 0
cmp eax, dword [0x43a420]
jb 0x40cf7f
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x40cd65
mov ecx, dword [esi]
push dword [0x43a420]
cmp dword [0x43a424], 7
mov eax, 0x43a410
cmova eax, dword [0x43a410]
push eax
push edx
push ecx
push esi
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x28]
call fcn.0040b430
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push ebx
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [ebp - 0x14]
mov ebx, eax
cmp ecx, 7
jbe 0x40cddc
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cdd2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cf84
push ecx
push edx
call fcn.0040ef62
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x40ce31
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ce27
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cf84
push ecx
push edx
call fcn.0040ef62
add esp, 8
test ebx, ebx
je 0x40cf89
mov edx, dword [esi + 0x10]
mov eax, edi
mov ebx, dword [0x43a420]
sub eax, edx
cmp eax, ebx
jb 0x40cff2
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x40ce58
mov ecx, dword [esi]
cmp dword [0x43a424], 7
mov eax, 0x43a410
push ebx
cmova eax, dword [0x43a410]
push eax
push edx
push ecx
push esi
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x28]
call fcn.0040b430
cmp dword [ebp - 0x14], 7
lea ebx, [ebp - 0x28]
mov edx, dword [esi + 0x10]
cmova ebx, dword [ebp - 0x28]
sub edi, edx
mov dword [ebp - 4], 3
cmp edi, dword [0x43a438]
jb 0x40cff7
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x40cea8
mov ecx, dword [esi]
push dword [0x43a438]
cmp dword [0x43a43c], 7
mov eax, 0x43a428
cmova eax, dword [0x43a428]
push eax
push edx
push ecx
push esi
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x40]
call fcn.0040b430
cmp dword [ebp - 0x2c], 7
lea eax, [ebp - 0x40]
push ebx
cmova eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.00403c80
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00403c80
test esi, esi
jne 0x40cf50
push 1
lea ecx, [ebp - 0x1c8]
call fcn.00403120
lea eax, [ebp - 0x1b8]
mov dword [ebp - 4], 4
push str.executeRename_exeName_to_oldExe
push eax
call fcn.00401250
add esp, 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00403ff0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x1c8]
call fcn.004090c0
mov byte [ebp - 4], 5
jmp 0x40cfd4
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 - 0x10]
xor ecx, ebp
call fcn.0040ef75
mov esp, ebp
pop ebp
ret 4
call fcn.00405ba0
call fcn.00413a5f
call fcn.00405ba0
call fcn.00405ba0
call fcn.00413a5f
push 1
lea ecx, [ebp - 0x118]
call fcn.00403120
lea eax, [ebp - 0x108]
mov dword [ebp - 4], 1
push str.executeRename_exeName_to_oldExe
push eax
call fcn.00401250
add esp, 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00403ff0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x118]
call fcn.004090c0
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.00405e90
push eax
lea ecx, [ebp - 0x68]
call fcn.00403840
push 0x4376d8
lea eax, [ebp - 0x68]
push eax
call fcn.0041001e
call fcn.00405ba0
call fcn.00405ba0
int3