Function at 0x413cb0
Capabilities:
Check if file exists
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x44afbc
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x463fcc]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebx]
lea eax, [esp + 0x38]
mov dword [esp + 0x34], eax
call dword [0x463fa8]
push eax
push esi
lea ecx, [esp + 0x3c]
call fcn.0040fe30
mov ecx, dword [ebx + 0x14]
mov esi, dword [ecx + 0xbc]
mov edi, dword [esp + 0x34]
mov dword [esp + 0xc0], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push edi
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
push eax
call fcn.00422cd0
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x44]
add esp, 0xc
cmp eax, edx
mov dword [esp + 0xc0], 0xffffffff
je 0x413d4a
push eax
call fcn.0042efe6
add esp, 4
mov edi, dword [ebx + 0x14]
mov eax, dword [edi + 0x8c]
mov ebp, dword [eax]
add edi, 0x88
mov esi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], eax
lea ecx, [ecx]
test esi, esi
je 0x413d78
cmp esi, edi
je 0x413d7d
call fcn.0042f8d2
cmp ebp, dword [esp + 0x30]
je 0x413f13
test esi, esi
jne 0x413d90
call fcn.0042f8d2
cmp ebp, dword [esi + 4]
jne 0x413d9a
call fcn.0042f8d2
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x18]
call fcn.00404ce0
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esp + 0xc4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x413e06
add eax, 0xfffffff0
mov dword [esp + 0xc0], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413efd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
call fcn.004063d0
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
jmp 0x413d70
add eax, 0xfffffff0
push eax
call fcn.00401ef0
add eax, 0x10
add esp, 4
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc0], 2
call fcn.004101a0
mov eax, dword [ebx]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404ce0
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc4], 3
call fcn.004120e0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 0x14]
mov esi, dword [edx + 0xc8]
push eax
push ecx
mov edi, eax
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push eax
call fcn.00422cd0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x14
mov byte [esp + 0xc0], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413ea6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0xc0], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413ece
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0xc0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413ef9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x24]
call fcn.004063d0
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
jmp 0x413d70
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret