Function at 0x427cb0
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ce6d
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x5ebdb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x5b0bc8
lea ecx, [ebp - 0x42c]
mov byte [ebp - 0x421], 0
call fcn.00401d90
mov dword [ebp - 4], 0
mov eax, dword [esi]
push 0x2e
push eax
call fcn.00551821
add esp, 8
test eax, eax
je 0x427d63
mov ecx, dword [esi]
sub eax, ecx
sar eax, 1
mov edx, eax
cmp edx, 0xffffffff
je 0x427d63
mov eax, dword [ecx - 0xc]
sub eax, edx
dec eax
push eax
lea eax, [ebp - 0x428]
push eax
mov ecx, esi
call fcn.0041b9a0
push eax
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 1
call fcn.004050b0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427d63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x104
ja 0x427f69
test eax, eax
je 0x427f69
lea edx, [ebp - 0x420]
push edx
push 0
push 0x5b4670
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x428]
mov edi, eax
call fcn.00401d90
push 0x5b350c
lea ecx, [ebp - 0x430]
mov byte [ebp - 4], 2
call fcn.00401d90
push eax
lea edx, [ebp - 0x428]
push edx
lea eax, [ebp - 0x438]
push eax
mov byte [ebp - 4], 3
call fcn.0041bac0
lea ecx, [ebp - 0x42c]
push ecx
push eax
lea edx, [ebp - 0x434]
push edx
mov byte [ebp - 4], 4
call fcn.0041bac0
add esp, 0x18
push eax
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 5
call fcn.004050b0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x434]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427e34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x438]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427e5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x430]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427e80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x5b0bc8
push 0x5b3f50
lea ecx, [ebp - 0x428]
call fcn.00404aa0
test edi, edi
je 0x427f43
mov edi, dword [ebp - 0x428]
cmp dword [edi - 4], 1
jle 0x427ebe
mov ecx, dword [edi - 0xc]
push ecx
lea ecx, [ebp - 0x428]
call fcn.004022d0
mov edi, dword [ebp - 0x428]
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x427ed1
mov edx, dword [eax - 0xc]
push edx
mov ecx, esi
call fcn.004022d0
mov eax, dword [esi]
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne al
test al, al
je 0x427f43
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
push eax
call fcn.00405320
lea edi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x430], edi
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.004050b0
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427f3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 0x421], 1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427f69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x42c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427f92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0x421]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550891
mov esp, ebp
pop ebp
ret