Function at 0x409740
Capabilities:
Check if file exists
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ae4d
mov eax, dword fs:[0]
push eax
sub esp, 0x768
mov eax, dword [0x448050]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0x104
lea eax, [ebp - 0x324]
push eax
push 0
call edi
lea ecx, [ebp - 0x324]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea esi, [ebp - 0x734]
call fcn.00408e10
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4097a1
sub eax, edx
lea edx, [ebp - 0x734]
sar eax, 1
push edx
push 0x44c380
mov ebx, eax
call fcn.00405be0
mov esi, dword [0x44c380]
lea ecx, [ebp - 0x324]
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4097f7
test dx, dx
je 0x4097f3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4097f7
add eax, 4
add ecx, 4
test dx, dx
jne 0x4097d1
xor eax, eax
jmp 0x4097fc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x409afe
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409825
mov eax, dword [0x44c380]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
jne 0x409afb
push 0x104
lea ecx, [ebp - 0x324]
push ecx
push 0
call edi
mov edx, dword [0x44c380]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edx
lea eax, [ebp - 0x52c]
push eax
call esi
mov ecx, dword [0x44c37c]
push ecx
lea edx, [ebp - 0x52c]
push edx
call esi
push 0x103
lea eax, [ebp - 0x11b]
push 0
push eax
mov byte [ebp - 0x11c], 0
call fcn.00427020
add esp, 0xc
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x324]
push edx
call fcn.004063c0
add esp, 8
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x4098aa
xor edi, edi
jmp 0x4098c6
lea eax, [esi + esi]
call fcn.00433400
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x11c]
push ecx
push eax
call fcn.0040c6e0
mov edi, eax
mov eax, dword [0x44c37c]
push 0
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x748], esp
mov esi, esp
call fcn.004054c0
add eax, 0x10
mov dword [esi], eax
push ecx
mov dword [ebp - 4], 0
mov edx, esp
mov dword [ebp - 0x74c], esp
push edx
mov ecx, edi
call fcn.00405cd0
mov byte [ebp - 4], 1
mov eax, dword [0x44c384]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x750], esp
mov esi, esp
call fcn.004054c0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
mov eax, dword [0x44c390]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x744], esp
mov esi, esp
call fcn.004054c0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
mov eax, dword [0x44c38c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x73c], esp
mov esi, esp
call fcn.004054c0
add eax, 0x10
mov dword [esi], eax
lea esi, [ebp - 0x774]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ddd0
mov ecx, esi
mov dword [ebp - 4], 4
call fcn.0040eae0
mov edi, esi
mov ebx, eax
call fcn.0040e9d0
mov esi, eax
push 0
lea eax, [ebp - 0x52c]
push eax
lea ecx, [ebp - 0x324]
push ecx
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
je 0x409af0
test esi, esi
jne 0x4099ba
test ebx, ebx
je 0x4099ba
push ecx
mov edx, esp
mov dword [ebp - 0x73c], esp
push edx
mov ecx, 0x43f914
jmp 0x4099c9
push ecx
mov eax, esp
mov dword [ebp - 0x73c], esp
push eax
mov ecx, 0x43f91c
call fcn.00405cd0
call fcn.00408bc0
add esp, 4
lea ecx, [ebp - 0x774]
call fcn.00410160
push ecx
mov ecx, esp
mov dword [ebp - 0x73c], esp
push ecx
lea ecx, [ebp - 0x52c]
call fcn.00405cd0
lea edx, [ebp - 0x738]
push edx
call fcn.0040a080
add esp, 8
push 4
push 0x43f924
lea ebx, [ebp - 0x738]
mov byte [ebp - 4], 5
call fcn.00405390
lea eax, [ebp - 0x324]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409a24
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x324]
push eax
lea ebx, [ebp - 0x738]
call fcn.00405390
push 5
push str.__IB
call fcn.00405390
lea esi, [ebp - 0x740]
call fcn.0040a050
mov byte [ebp - 4], 6
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call fcn.00405390
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x740]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409a93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp + 8], 0
je 0x409ab8
mov ecx, dword [ebp - 0x738]
push 1
push 0
push ecx
lea edx, [ebp - 0x52c]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x738]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409ade
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x774]
call fcn.0040e190
mov eax, 1
jmp 0x409afe
lea esi, [ebp - 0x774]
call fcn.0040e190
or eax, 0xffffffff
lea esp, [ebp - 0x784]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00424761
mov esp, ebp
pop ebp
ret