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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57bacd
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x5e9db0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x5afbc8
lea ecx, [ebp - 0x42c]
mov byte [ebp - 0x421], 0
call fcn.00401d50
mov dword [ebp - 4], 0
mov eax, dword [esi]
push 0x2e
push eax
call fcn.005506bc
add esp, 8
test eax, eax
je 0x427703
mov ecx, dword [esi]
sub eax, ecx
sar eax, 1
mov edx, eax
cmp edx, 0xffffffff
je 0x427703
mov eax, dword [ecx - 0xc]
sub eax, edx
dec eax
push eax
lea eax, [ebp - 0x428]
push eax
mov ecx, esi
call fcn.0041b970
push eax
lea ecx, [ebp - 0x42c]
mov byte [ebp - 4], 1
call fcn.00405080
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 0x427703
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 0x427909
test eax, eax
je 0x427909
lea edx, [ebp - 0x420]
push edx
push 0
push 0x5b3638
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.00401d50
push 0x5b250c
lea ecx, [ebp - 0x430]
mov byte [ebp - 4], 2
call fcn.00401d50
push eax
lea edx, [ebp - 0x428]
push edx
lea eax, [ebp - 0x438]
push eax
mov byte [ebp - 4], 3
call fcn.0041ba90
lea ecx, [ebp - 0x42c]
push ecx
push eax
lea edx, [ebp - 0x434]
push edx
mov byte [ebp - 4], 4
call fcn.0041ba90
add esp, 0x18
push eax
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 5
call fcn.00405080
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 0x4277d4
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 0x4277fa
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 0x427820
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x5afbc8
push 0x5b2f18
lea ecx, [ebp - 0x428]
call fcn.00404a70
test edi, edi
je 0x4278e3
mov edi, dword [ebp - 0x428]
cmp dword [edi - 4], 1
jle 0x42785e
mov ecx, dword [edi - 0xc]
push ecx
lea ecx, [ebp - 0x428]
call fcn.004022a0
mov edi, dword [ebp - 0x428]
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x427871
mov edx, dword [eax - 0xc]
push edx
mov ecx, esi
call fcn.004022a0
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 0x4278e3
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.004052f0
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.00405080
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 0x4278dc
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 0x427909
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 0x427932
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.0054f72c
mov esp, ebp
pop ebp
ret