Function at 0x40ccd0
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 0x40d010
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x40cd25
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.0040b4a0
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 0x40cd94
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cd8a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d015
push ecx
push edx
call fcn.0040effd
add esp, 8
mov edx, dword [esi + 0x10]
mov eax, edi
mov ebx, dword [0x43a408]
sub eax, edx
cmp eax, ebx
jb 0x40d01a
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x40cdb3
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.0040b4a0
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 0x40d01f
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x40ce05
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.0040b4a0
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 0x40ce7c
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ce72
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d024
push ecx
push edx
call fcn.0040effd
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 0x40ced1
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cec7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d024
push ecx
push edx
call fcn.0040effd
add esp, 8
test ebx, ebx
je 0x40d029
mov edx, dword [esi + 0x10]
mov eax, edi
mov ebx, dword [0x43a420]
sub eax, edx
cmp eax, ebx
jb 0x40d092
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x40cef8
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.0040b4a0
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 0x40d097
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x40cf48
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.0040b4a0
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 0x40cff0
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 0x40d074
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.0040f010
mov esp, ebp
pop ebp
ret 4
call fcn.00405b60
call fcn.00413c5f
call fcn.00405b60
call fcn.00405b60
call fcn.00413c5f
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.0041021e
call fcn.00405b60
call fcn.00405b60
int3