Function at 0x40c650
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4384a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebp
push esi
lea ecx, [esp + 0x24]
call fcn.00413fad
mov dword [esp + 0x44], 0
call fcn.0042aa9b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov byte [esp + 0x44], 1
call fcn.0042aa9b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0xc], ebp
mov eax, dword [0x44b18c]
mov ecx, dword [eax + 0x14]
push str.wnime.
add ecx, 4
push ecx
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x50], 2
call fcn.00404b60
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c], 3
call fcn.00414040
mov esi, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x44], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c6fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
je 0x40c8f8
push ebx
push edi
jmp 0x40c710
lea ecx, [esp + 0x2c]
call fcn.00413d8e
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
call fcn.00414268
mov ecx, dword [eax]
mov esi, dword [esp + 0x10]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
mov byte [esp + 0x4c], 4
je 0x40c786
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jl 0x40c778
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40c778
push eax
call fcn.00401f20
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40c76f
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add ebx, 0x10
mov dword [esp + 0x10], ebx
jmp 0x40c786
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00402330
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x4c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c7a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x2c]
call fcn.00413f74
test eax, eax
jne 0x40c8ea
mov eax, dword [0x44b18c]
mov ecx, dword [eax + 0x14]
push str.wnime_
add ecx, 4
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00404b60
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x58], 5
call fcn.00406370
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
mov byte [esp + 0x4c], 6
je 0x40c845
mov edx, dword [esi + 0xc]
test edx, edx
lea edi, [esi + 0xc]
jl 0x40c833
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40c833
push eax
call fcn.00401f20
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40c82a
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
lea ebp, [ebx + 0x10]
mov dword [esp + 0x14], ebp
jmp 0x40c845
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402330
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x4c], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c868
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x4c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c88b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 2
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402420
mov eax, dword [eax]
push 0x43c5dc
push eax
call fcn.0041cbad
mov ebx, eax
mov eax, dword [esp + 0x2c]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c8d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x40c8ea
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40c8ea
push 5
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40c710
pop edi
pop ebx
lea eax, [ebp - 0x10]
mov byte [esp + 0x44], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
pop ebp
jg 0x40c919
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp]
add eax, 0xfffffff0
mov byte [esp + 0x3c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c93b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00413fd1
mov ecx, dword [esp + 0x34]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x40
ret