Function at 0x40ccc0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c82b
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 0x40d000
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x40cd15
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.0040b490
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 0x40cd84
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cd7a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d005
push ecx
push edx
call fcn.0040efed
add esp, 8
mov edx, dword [esi + 0x10]
mov eax, edi
mov ebx, dword [0x43a408]
sub eax, edx
cmp eax, ebx
jb 0x40d00a
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x40cda3
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.0040b490
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 0x40d00f
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x40cdf5
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.0040b490
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 0x40ce6c
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ce62
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d014
push ecx
push edx
call fcn.0040efed
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 0x40cec1
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ceb7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d014
push ecx
push edx
call fcn.0040efed
add esp, 8
test ebx, ebx
je 0x40d019
mov edx, dword [esi + 0x10]
mov eax, edi
mov ebx, dword [0x43a420]
sub eax, edx
cmp eax, ebx
jb 0x40d082
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x40cee8
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.0040b490
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 0x40d087
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x40cf38
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.0040b490
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 0x40cfe0
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.004090e0
mov byte [ebp - 4], 5
jmp 0x40d064
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.0040f000
mov esp, ebp
pop ebp
ret 4
call fcn.00405b60
call fcn.00413c4f
call fcn.00405b60
call fcn.00405b60
call fcn.00413c4f
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.004090e0
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.00405e50
push eax
lea ecx, [ebp - 0x68]
call fcn.00403840
push 0x437418
lea eax, [ebp - 0x68]
push eax
call fcn.0041020e
call fcn.00405b60
call fcn.00405b60
int3