Function at 0x41cfd0
Capabilities:
Check if file exists
Copy file
Create a process with modified i/o handles and window
Create directory
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0536
mov eax, dword fs:[0]
push eax
sub esp, 0x6b4
mov eax, dword [0x5035d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004a4df0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x664]
mov ecx, esi
push eax
call fcn.0041deb0
cmp dword [ebp - 0x650], 8
lea eax, [ebp - 0x664]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmovae eax, dword [ebp - 0x664]
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
call edi
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.004a4df0
add esp, 0xc
lea eax, [ebp - 0x428]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x63c], 0
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x638], 7
mov word [ebp - 0x64c], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d0d0
sub ecx, edx
lea eax, [ebp - 0x428]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x64c]
call fcn.00408140
push 0xffffffffffffffff
push 0x4f61d0
lea ecx, [ebp - 0x64c]
mov byte [ebp - 4], 1
call fcn.00420260
mov edx, dword [ebp - 0x63c]
mov dword [ebp - 0x6b0], 0
mov dword [ebp - 0x6ac], 7
lea ecx, [eax + 1]
xor eax, eax
mov word [ebp - 0x6c0], ax
cmp edx, ecx
jb 0x41d3fa
mov eax, edx
sub eax, ecx
cmp eax, edx
cmovb edx, eax
cmp dword [ebp - 0x638], 8
lea eax, [ebp - 0x64c]
cmovae eax, dword [ebp - 0x64c]
push edx
lea eax, [eax + ecx*2]
push eax
lea ecx, [ebp - 0x6c0]
call fcn.00408140
lea ecx, [ebp - 0x64c]
call fcn.00407ef0
movups xmm1, xmmword [ebp - 0x6c0]
cmp dword [ebp - 0x6ac], 8
lea ecx, [ebp - 0x64c]
movq xmm0, qword [ebp - 0x6b0]
movd eax, xmm1
movups xmmword [ebp - 0x64c], xmm1
cmovae ecx, eax
movq qword [ebp - 0x63c], xmm0
push ecx
lea eax, [ebp - 0x21c]
push eax
call edi
push 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x41d327
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41d327
mov eax, dword [esi + 0x24c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41d1fa
push eax
call edi
mov dword [esi + 0x24c], 0
push 0x20a
lea eax, [ebp - 0x634]
push 0
push eax
call fcn.004a4df0
lea eax, [esi + 0x27c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x41d21e
mov eax, dword [eax]
cmp dword [esi + 0x2a8], 8
lea ecx, [esi + 0x294]
jb 0x41d22f
mov ecx, dword [ecx]
push eax
push 0x4d3df0
push dword [esi + 0x260]
lea eax, [ebp - 0x21c]
push 0x4d3db8
push dword [esi + 0x25c]
push 0x4d3d9c
push ecx
push 0x4d3db0
push 0x3039
push 0x4d3de8
push eax
push str.__s____s_d___s_s___s_d___s_d___s__s_
push 0xffffffffffffffff
lea eax, [ebp - 0x634]
push 0x104
push eax
call fcn.00407510
add esp, 0x3c
mov dword [ebp - 0x6a8], 0x44
xor eax, eax
mov dword [ebp - 0x67c], 0x101
mov word [ebp - 0x666], ax
xorps xmm0, xmm0
mov eax, 1
movlpd qword [ebp - 0x6a4], xmm0
mov word [ebp - 0x678], ax
lea eax, [ebp - 0x6b8]
push eax
lea eax, [ebp - 0x6a8]
movlpd qword [ebp - 0x69c], xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x634]
movlpd qword [ebp - 0x694], xmm0
push eax
push 0
movlpd qword [ebp - 0x68c], xmm0
movlpd qword [ebp - 0x684], xmm0
movlpd qword [ebp - 0x676], xmm0
movlpd qword [ebp - 0x66e], xmm0
movups xmmword [ebp - 0x6b8], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41d344
push dword [ebp - 0x6b4]
call edi
push dword [ebp - 0x6b8]
call edi
jmp 0x41d344
cmp dword [esi + 0x25c], 0
jne 0x41d344
push 0
push 0x4f5018
push 0x4d3e9c
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 0x638]
cmp edx, 8
jb 0x41d384
mov ecx, dword [ebp - 0x64c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d37a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d3ff
push edx
push ecx
call fcn.004a1326
add esp, 8
mov edx, dword [ebp - 0x650]
xor eax, eax
mov dword [ebp - 0x63c], 0
mov dword [ebp - 0x638], 7
mov word [ebp - 0x64c], ax
cmp edx, 8
jb 0x41d3dd
mov ecx, dword [ebp - 0x664]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41d3d3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41d404
push edx
push ecx
call fcn.004a1326
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1365
mov esp, ebp
pop ebp
ret 4
call fcn.004058e0
call fcn.004a8d39
call fcn.004a8d39
int3