Function at 0x40e050
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4596f0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x471080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x5c]
cmp dword [eax - 0xc], 0
je 0x40e229
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e229
push dword [esi + 0x34]
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dword [esi + 0x48], 0
jne 0x40e0b2
cmp dword [esi + 0x4c], 0
je 0x40e221
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x463f78
call fcn.00409310
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x34]
lea edi, [eax - 0x10]
mov dword [ebp - 0x14], eax
push ecx
mov ecx, dword [edi]
mov dword [ebp - 0x18], esp
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
mov ecx, eax
lea eax, [edi + 0xc]
jl 0x40e0f1
cmp ecx, dword [edi]
jne 0x40e0f1
lock inc dword [eax]
jmp 0x40e123
mov eax, dword [ecx]
lea edx, [edi + 4]
push 2
push dword [edx]
mov dword [ebp - 0x10], edx
call dword [eax]
mov edi, eax
test edi, edi
je 0x40e297
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
mov dword [edi + 4], eax
mov edx, dword [ecx]
lea ecx, [edi + 0x10]
inc edx
push edx
push dword [ebp - 0x14]
call fcn.00409570
add esp, 8
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 0x10]
mov dword [ecx], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00421240
add esp, 8
test eax, eax
je 0x40e221
mov eax, dword [esi + 0x54]
push ecx
mov ecx, dword [eax - 0x10]
lea edi, [eax - 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], esp
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
mov ecx, eax
lea eax, [edi + 0xc]
jl 0x40e16e
cmp ecx, dword [edi]
jne 0x40e16e
lock inc dword [eax]
jmp 0x40e1a0
mov eax, dword [ecx]
lea edx, [edi + 4]
push 2
push dword [edx]
mov dword [ebp - 0x18], edx
call dword [eax]
mov edi, eax
test edi, edi
je 0x40e29c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
mov dword [edi + 4], eax
mov edx, dword [ecx]
lea ecx, [edi + 0x10]
inc edx
push edx
push dword [ebp - 0x14]
call fcn.00409570
add esp, 8
mov ecx, dword [ebp - 0x10]
lea eax, [edi + 0x10]
mov dword [ecx], eax
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x34]
lea edi, [eax - 0x10]
mov dword [ebp - 0x14], eax
push ecx
mov ecx, dword [edi]
mov dword [ebp - 0x10], esp
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
mov edx, eax
lea eax, [edi + 0xc]
jl 0x40e1d7
cmp edx, dword [edi]
jne 0x40e1d7
lock inc dword [eax]
jmp 0x40e20b
mov eax, dword [edx]
lea ecx, [edi + 4]
push 2
push dword [ecx]
mov dword [ebp - 0x18], ecx
mov ecx, edx
call dword [eax]
mov edi, eax
test edi, edi
je 0x40e2a1
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
mov dword [edi + 4], eax
mov edx, dword [ecx]
lea ecx, [edi + 0x10]
inc edx
push edx
push dword [ebp - 0x14]
call fcn.00409570
add esp, 8
mov ecx, dword [ebp - 0x10]
lea eax, [edi + 0x10]
mov dword [ecx], eax
mov ecx, esi
mov eax, dword [esi]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x54]
lea ecx, [esi + 0x5c]
call fcn.004093e0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x40e283
cmp dword [esi + 0x48], 0
jne 0x40e240
cmp dword [esi + 0x4c], 0
je 0x40e262
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x5c]
test eax, eax
je 0x40e262
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push dword [esi + 0x3c]
mov ecx, esi
push dword [esi + 0x34]
call fcn.0040e320
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004096f0
call fcn.004096f0
call fcn.004096f0
int3