Function at 0x41bf40
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
sub esp, 0x76c
push ebx
push ebp
push esi
push edi
call fcn.0044bde0
test eax, eax
je 0x41bfe4
push 0
lea eax, [esp + 0x6c]
push str.CSetupApp::SpawnApp_n
push eax
call fcn.00471c30
mov edi, str.ENTRY:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x26c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x26c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x68]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0044bd70
mov ecx, eax
call fcn.0044be10
lea eax, [esp + 0x26c]
push eax
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
call fcn.0044bde0
mov ebx, dword [esp + 0x780]
test eax, eax
je 0x41c020
mov ecx, dword [esp + 0x784]
lea edx, [esp + 0x68]
push ecx
push ebx
push str.pszExeName___s__pszCmdArg___s_n
push edx
call fcn.00471c30
add esp, 0x10
lea eax, [esp + 0x68]
push eax
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
mov dword [esp + 0x10], 0
call fcn.0046c5f0
mov ebp, eax
mov eax, dword [esp + 0x790]
test eax, eax
je 0x41c0a6
lea ecx, [esp + 0x36c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, str.JK.EXE
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x36c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x370]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edi, [esp + 0x36c]
lea edx, [esp + 0x168]
jmp 0x41c0af
lea edx, [esp + 0x168]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, dword [esp + 0x78c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp ebp, 0xb
rep movsb byte es:[edi], byte [esi]
je 0x41c0e1
cmp ebp, 0xc
jne 0x41c25f
call fcn.0044bde0
test eax, eax
je 0x41c0fb
push str.Trying_to_Spawn_with_ShellExecuteEx_n
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
test ebx, ebx
jne 0x41c122
lea ecx, [esp + 0x168]
push 0x22
push ecx
push 0x22
lea edx, [esp + 0x47c]
push str._c_s_c
push edx
call fcn.00471c30
add esp, 0x14
jmp 0x41c14d
lea edi, [esp + 0x168]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x470]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
call fcn.0044bde0
test eax, eax
je 0x41c18e
lea ecx, [esp + 0x470]
lea edx, [esp + 0x68]
push ecx
push str.szExeName___s_n
push edx
call fcn.00471c30
add esp, 0xc
lea eax, [esp + 0x68]
push eax
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
call fcn.0044bde0
mov esi, dword [esp + 0x784]
test eax, eax
je 0x41c1c2
push esi
lea ecx, [esp + 0x6c]
push str.pszCmdArg___s_n
push ecx
call fcn.00471c30
add esp, 0xc
lea edx, [esp + 0x68]
push edx
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
lea ecx, [esp + 0x24]
lea eax, [esp + 0x470]
push ecx
mov dword [esp + 0x28], 0x3c
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0x540
mov dword [esp + 0x34], str.runas
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x44], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x41c22a
mov eax, dword [esp + 0x788]
test eax, eax
je 0x41c220
mov edx, dword [esp + 0x5c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, 1
jmp 0x41c3cd
call fcn.0044bde0
test eax, eax
je 0x41c266
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x6c]
push str.Failed_ShellExecuteEx_:_GetLastError_____d_n
push eax
call fcn.00471c30
add esp, 0xc
lea ecx, [esp + 0x68]
push ecx
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
jmp 0x41c266
mov esi, dword [esp + 0x784]
call fcn.0044bde0
test eax, eax
je 0x41c280
push str.Trying_to_Spawn_with_CreateProcess_n
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
test ebx, ebx
jne 0x41c2cf
test esi, esi
jne 0x41c2ab
lea edx, [esp + 0x168]
push 0x22
push edx
push 0x22
lea eax, [esp + 0x47c]
push str._c_s_c
push eax
call fcn.00471c30
add esp, 0x14
jmp 0x41c310
push esi
lea ecx, [esp + 0x16c]
push 0x22
push ecx
push 0x22
lea edx, [esp + 0x480]
push str._c_s_c__s
push edx
call fcn.00471c30
add esp, 0x18
jmp 0x41c310
test esi, esi
jne 0x41c2f2
lea eax, [esp + 0x168]
lea ecx, [esp + 0x470]
push eax
push 0x4ac498
push ecx
call fcn.00471c30
add esp, 0xc
jmp 0x41c310
lea edx, [esp + 0x168]
push esi
push edx
lea eax, [esp + 0x478]
push str._s__s
push eax
call fcn.00471c30
add esp, 0x10
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
call fcn.0044bde0
test eax, eax
je 0x41c36b
lea edx, [esp + 0x470]
lea eax, [esp + 0x68]
push edx
push str.szCmdLine___s_n
push eax
call fcn.00471c30
add esp, 0xc
lea ecx, [esp + 0x68]
push ecx
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
lea edx, [esp + 0x14]
lea eax, [esp + 0x24]
push edx
push eax
push 0
push 0
push 0x10
push 0
push 0
lea ecx, [esp + 0x48c]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x41c3c9
mov eax, dword [esp + 0x788]
test eax, eax
je 0x41c3ad
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov dword [esp + 0x10], 1
mov ebx, dword [esp + 0x10]
call fcn.0044bde0
test eax, eax
je 0x41c466
push ebx
lea edx, [esp + 0x6c]
push str.CSetupApp::SpawnApp_:_bRetVal___d_n
push edx
call fcn.00471c30
mov edi, str.EXIT:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x26c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x26c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x68]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x26c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
call fcn.0044bd70
mov ecx, eax
call fcn.0044be20
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x76c
ret 0x14