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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f167a
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x68da90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x220], 0
call fcn.0040d3c0
mov byte [ebp - 4], 1
push dword [ebp - 0x220]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
or edi, 0xffffffff
test eax, eax
je 0x40dc4f
push dword [ebp - 0x220]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40dc4f
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005c1b40
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push 0x658e70
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
call esi
push 0x65960c
lea edx, [ebp - 0x220]
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x228]
call fcn.00408bd0
add esp, 4
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x21c]
call fcn.00408cb0
add esp, 4
mov byte [ebp - 4], 4
mov eax, edi
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40db2f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x21c]
call ebx
test eax, eax
je 0x40dc0f
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x224]
call fcn.00404020
lea edx, [ebp - 0x224]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x230]
call fcn.004a49b0
mov esi, eax
lea edx, [ebp - 0x21c]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x22c]
call fcn.004a49b0
mov byte [ebp - 4], 7
mov ecx, dword [esi]
test ecx, ecx
jne 0x40db91
push 0x80004005
call fcn.00404200
push ecx
push dword [eax]
call fcn.005cb64b
add esp, 8
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x22c]
test eax, eax
mov eax, edi
setne bl
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40dbc2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, edi
mov edx, dword [ebp - 0x230]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40dbe3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, edi
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40dc04
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x40dc0f
mov esi, 1
jmp 0x40dc2c
push 0
push dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40dc51
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40dc51
xor esi, esi
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40dc72
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x40dc91
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret 8