Function at 0x10004430
Capabilities:
Check if file exists
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101742ec
mov eax, dword fs:[0]
push eax
sub esp, 0x714
mov eax, dword [0x10361e80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call fcn.100043b0
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x114]
push str._s_Client.exe
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x114]
mov dword [ebp - 0x6b0], eax
lea eax, [ebp - 0x6b0]
push eax
push 0
push 0
push 0x101ae41c
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
push 0
push 0
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x6b0]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [ebp - 0x720]
call fcn.10004230
push ecx
lea ecx, [ebp - 0x708]
mov dword [ebp - 4], 0
push ecx
mov ecx, eax
call fcn.100093c0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x6f4]
mov eax, edx
mov ecx, dword [ebp - 0x6f8]
sub eax, ecx
push 9
push str._name.ini
cmp eax, 9
jb 0x10004548
cmp edx, 0xf
lea esi, [ebp - 0x708]
lea eax, [ecx + 9]
cmova esi, dword [ebp - 0x708]
add esi, ecx
mov dword [ebp - 0x6f8], eax
push esi
call fcn.1014a590
add esp, 0xc
mov byte [esi + 9], 0
lea eax, [ebp - 0x708]
jmp 0x10004562
mov byte [ebp - 0x6f0], 0
lea ecx, [ebp - 0x708]
push dword [ebp - 0x6f0]
push 9
call fcn.1000ade0
mov dword [ebp - 0x58c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x59c], xmm0
mov dword [ebp - 0x588], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x59c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x58c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x6f4]
cmp ecx, 0xf
jbe 0x100045e6
mov edx, dword [ebp - 0x708]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100045dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004d4f
push ecx
push edx
call fcn.101465d0
add esp, 8
mov dword [ebp - 0x6f8], 0
mov dword [ebp - 0x6f4], 0xf
mov byte [ebp - 0x708], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x70c]
cmp ecx, 7
jbe 0x10004645
mov edx, dword [ebp - 0x720]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000463b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004d4f
push ecx
push edx
call fcn.101465d0
add esp, 8
xor eax, eax
mov dword [ebp - 0x710], 0
push 0xb8
push eax
mov word [ebp - 0x720], ax
lea eax, [ebp - 0x6a8]
push eax
mov dword [ebp - 0x70c], 7
call fcn.1014ab10
lea eax, [ebp - 0x59c]
push eax
lea ecx, [ebp - 0x6a8]
call fcn.10006b00
mov byte [ebp - 4], 5
cmp dword [ebp - 0x64c], 0
jne 0x100046b5
mov edx, str.Error_opening_file
mov ecx, 0x1036a678
call fcn.100094e0
push eax
call fcn.10009790
add esp, 4
mov esi, 1
jmp 0x10004c86
xorps xmm0, xmm0
mov dword [ebp - 0x570], 0
movups xmmword [ebp - 0x580], xmm0
mov dword [ebp - 0x56c], 0xf
mov byte [ebp - 0x580], 0
lea edx, [ebp - 0x580]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x6a8]
call fcn.10009830
lea ecx, [ebp - 0x698]
call fcn.100080f0
test eax, eax
jne 0x10004727
mov eax, dword [ebp - 0x6a8]
lea ecx, [ebp - 0x6a8]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.100033f0
cmp dword [ebp - 0x56c], 0xf
lea eax, [ebp - 0x580]
cmova eax, dword [ebp - 0x580]
push eax
lea eax, [ebp - 0x114]
push eax
push str._s_sClient.exe
push 0xffffffffffffffff
push 0x104
push eax
call fcn.1000c6a0
add esp, 0x18
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x10004780
push str.QEMU.exe_not_found_in_the_specified_directory._n
call fcn.1000c630
add esp, 4
mov esi, 1
jmp 0x10004c2d
lea eax, [ebp - 0x5f0]
mov dword [ebp - 0x5e0], 0x44
push eax
lea eax, [ebp - 0x5e0]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x114]
movlpd qword [ebp - 0x5dc], xmm0
push eax
push 0
movlpd qword [ebp - 0x5d4], xmm0
movlpd qword [ebp - 0x5cc], xmm0
movlpd qword [ebp - 0x5c4], xmm0
movlpd qword [ebp - 0x5bc], xmm0
movlpd qword [ebp - 0x5b4], xmm0
movlpd qword [ebp - 0x5ac], xmm0
movlpd qword [ebp - 0x5a4], xmm0
movups xmmword [ebp - 0x5f0], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1000481f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcess_failed___d_._n
call fcn.1000c630
add esp, 8
mov esi, 1
jmp 0x10004c2d
lea eax, [ebp - 0x524]
push eax
lea eax, [ebp - 0x218]
push str.__s_
push eax
call edi
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x31c]
push str.::20D04FE0_3AEA_1069_A2D8_08002B30309D_s
push eax
call edi
add esp, 0x18
mov dword [ebp - 0x568], 0xc08afd90
mov dword [ebp - 0x564], 0x11d1f2a1
mov dword [ebp - 0x560], 0xa0005584
mov dword [ebp - 0x55c], 0x80381fc9
push 0
mov dword [ebp - 0x558], 0xd30c1661
mov dword [ebp - 0x554], 0x11d0cdaf
mov dword [ebp - 0x550], 0xc0003e8a
mov dword [ebp - 0x54c], 0x6ee2c94f
mov dword [ebp - 0x6dc], 0
mov dword [ebp - 0x6d8], 0
mov dword [ebp - 0x6d4], 0
mov dword [ebp - 0x6d0], 0
mov dword [ebp - 0x6ac], 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x6ac]
push eax
lea eax, [ebp - 0x558]
push eax
push 4
push 0
lea eax, [ebp - 0x568]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x10004c25
mov eax, dword [ebp - 0x6ac]
mov dword [ebp - 0x6c4], str.Document
mov eax, dword [eax]
mov esi, dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
lea ecx, [ebp - 0x548]
push ecx
push eax
push 1
lea eax, [ebp - 0x6c4]
push eax
push 0x101ae4bc
push dword [ebp - 0x6ac]
call esi
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
test eax, eax
js 0x10004be1
lea eax, [ebp - 0x6c0]
push eax
call esi
mov ecx, dword [ebp - 0x6ac]
lea edx, [ebp - 0x6c0]
push 0
push 0
push edx
mov eax, dword [ecx]
lea edx, [ebp - 0x6dc]
push edx
push 2
push 0x400
push 0x101ae4bc
push dword [ebp - 0x548]
push ecx
call dword [eax + 0x18]
test eax, eax
js 0x10004be1
mov edi, dword [ebp - 0x6b8]
mov dword [ebp - 0x6c8], str.Application
mov eax, dword [edi]
mov esi, dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
lea ecx, [ebp - 0x548]
push ecx
push eax
push 1
lea eax, [ebp - 0x6c8]
push eax
push 0x101ae4bc
push edi
call esi
test eax, eax
js 0x10004bdb
lea eax, [ebp - 0x6c0]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [edi]
lea ecx, [ebp - 0x6c0]
push 0
push 0
push ecx
lea ecx, [ebp - 0x6dc]
push ecx
push 2
push 0x400
push 0x101ae4bc
push dword [ebp - 0x548]
push edi
call dword [eax + 0x18]
test eax, eax
js 0x10004bdb
mov edi, dword [ebp - 0x6b8]
mov dword [ebp - 0x6cc], str.ShellExecute
mov eax, dword [edi]
mov esi, dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
lea ecx, [ebp - 0x548]
push ecx
push eax
push 1
lea eax, [ebp - 0x6cc]
push eax
push 0x101ae4bc
push edi
call esi
test eax, eax
js 0x10004bdb
mov eax, 8
lea ecx, [ebp - 0x218]
mov word [ebp - 0x544], ax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004a51
push 0
push 0
sub ecx, edx
lea eax, [ebp - 0x218]
push ecx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x6f0], eax
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000c9d2
lea ecx, [ebp - 0x218]
add esp, 4
mov esi, eax
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004aa0
push dword [ebp - 0x6f0]
sub ecx, edx
lea eax, [ebp - 0x218]
push esi
push ecx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x6f0]
xor ecx, ecx
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x53c], eax
lea ecx, [ebp - 0x31c]
mov eax, 8
lea edx, [ecx + 1]
mov word [ebp - 0x534], ax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004af0
push 0
push 0
sub ecx, edx
lea eax, [ebp - 0x31c]
push ecx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x6f0], eax
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000c9d2
lea ecx, [ebp - 0x31c]
add esp, 4
mov esi, eax
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004b40
push dword [ebp - 0x6f0]
sub ecx, edx
lea eax, [ebp - 0x31c]
push esi
push ecx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x6f0]
xor ecx, ecx
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push 0
push 0
lea ecx, [ebp - 0x6c0]
mov dword [ebp - 0x52c], eax
push ecx
lea ecx, [ebp - 0x6ec]
mov dword [ebp - 0x6e4], 2
push ecx
push 1
lea eax, [ebp - 0x544]
mov dword [ebp - 0x6e0], 0
push 0x400
mov dword [ebp - 0x6ec], eax
lea eax, [ebp - 0x584]
push 0x101ae4bc
push dword [ebp - 0x548]
mov dword [ebp - 0x6e8], eax
mov eax, dword [edi]
push edi
mov dword [ebp - 0x584], 0xfffffffd
call dword [eax + 0x18]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x6c0]
push eax
call esi
mov ecx, dword [ebp - 0x6ac]
lea edx, [ebp - 0x6c0]
push 0
push 0
push edx
mov eax, dword [ecx]
lea edx, [ebp - 0x6dc]
push edx
push 1
push 0x400
push 0x101ae4bc
push 0x12e
push ecx
call dword [eax + 0x18]
mov eax, dword [ebp - 0x6ac]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor esi, esi
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x56c]
cmp ecx, 0xf
jbe 0x10004c6b
mov edx, dword [ebp - 0x580]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004c61
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004d54
push ecx
push edx
call fcn.101465d0
add esp, 8
mov dword [ebp - 0x570], 0
mov dword [ebp - 0x56c], 0xf
mov byte [ebp - 0x580], 0
mov eax, dword [ebp - 0x6a8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x6a8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x6ac], eax
lea ecx, [ebp - 0x698]
call fcn.100067a0
mov eax, dword [ebp - 0x6a8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x6a8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x6ac], eax
lea eax, [ebp - 0x638]
mov byte [ebp - 4], 7
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.101486ce
mov ecx, dword [ebp - 0x588]
add esp, 4
cmp ecx, 0xf
jbe 0x10004d32
mov edx, dword [ebp - 0x59c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004d28
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004d54
push ecx
push edx
call fcn.101465d0
add esp, 8
mov eax, esi
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.101465c2
mov esp, ebp
pop ebp
ret
call fcn.1014dd79
call fcn.1014dd79
int3