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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58c4d8
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x602c90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x5c232c
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x42c], eax
mov byte [ebp - 0x421], 0
call fcn.00401d80
mov dword [ebp - 4], 0
mov eax, dword [esi]
push 0x2e
push eax
call fcn.00560aaf
add esp, 8
test eax, eax
je 0x4300dc
mov ecx, dword [esi]
sub eax, ecx
sar eax, 1
mov edx, eax
cmp edx, 0xffffffff
je 0x4300dc
mov eax, dword [ecx - 0xc]
sub eax, edx
dec eax
push eax
lea ecx, [ebp - 0x428]
push ecx
mov ecx, esi
call fcn.00420c60
push eax
lea ecx, [ebp - 0x430]
mov byte [ebp - 4], 1
call fcn.00405100
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4300dc
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 0x43033d
test eax, eax
je 0x43033d
lea edx, [ebp - 0x420]
push edx
push 0
push 0x5c78f0
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.00401d80
push 0x5c5bf4
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 2
call fcn.00401d80
push eax
lea edx, [ebp - 0x428]
push edx
lea eax, [ebp - 0x434]
push eax
mov byte [ebp - 4], 3
call fcn.00420d00
lea ecx, [ebp - 0x430]
push ecx
push eax
lea edx, [ebp - 0x43c]
push edx
mov byte [ebp - 4], 4
call fcn.00420d00
add esp, 0x18
push eax
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 5
call fcn.00405100
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x43c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4301ad
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 - 0x434]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4301d3
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 - 0x438]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4301f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x5c232c
push 0x5c6bb8
lea ecx, [ebp - 0x428]
call fcn.00404af0
mov eax, dword [ebp - 0x42c]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
je 0x430269
push eax
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x42c]
push eax
call fcn.00420ea0
add esp, 0xc
push eax
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 6
call fcn.00405100
mov byte [ebp - 4], 2
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 0x430269
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x430317
mov edi, dword [ebp - 0x428]
cmp dword [edi - 4], 1
jle 0x430292
mov ecx, dword [edi - 0xc]
push ecx
lea ecx, [ebp - 0x428]
call fcn.004022c0
mov edi, dword [ebp - 0x428]
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x4302a5
mov edx, dword [eax - 0xc]
push edx
mov ecx, esi
call fcn.004022c0
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 0x430317
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.00405370
lea edi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x42c], edi
lea eax, [ebp - 0x42c]
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.00405100
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 0x430310
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 0x43033d
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 - 0x430]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430366
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.0055f89e
mov esp, ebp
pop ebp
ret 4