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

Disassembly:
mov eax, 0x40cec0
call fcn.0040b3d0
sub esp, 0x1bc
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [ebp - 0x18]
push dword [ebx + 0xc]
call fcn.00404c1b
and dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.004055d1
cmp dword [ebx + 0x14], 0
mov byte [ebp - 4], 1
jne 0x405f3c
push 0x80004003
call fcn.0040b64a
lea edx, [ebp - 0xe]
lea esi, [ebp - 0x2c]
push edx
mov eax, dword [ebx + 0x14]
sub esp, 0x10
mov dword [ebp - 0x14], eax
mov edi, esp
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0xe8]
xor esi, esi
cmp eax, esi
jge 0x405f6f
push 0x411310
push dword [ebp - 0x14]
push eax
call fcn.0040b658
and byte [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, esi
jge 0x405f87
push eax
call fcn.0040b64a
mov ecx, dword [ebp - 0x18]
or edi, 0xffffffff
cmp ecx, esi
mov dword [ebp - 4], edi
je 0x405f99
call fcn.004048f9
cmp word [ebp - 0xe], di
je 0x405fb4
push str.creating_package__read_xml_fail_r_n
push dword [ebx]
call fcn.004082aa
pop ecx
pop ecx
xor eax, eax
jmp 0x406206
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str._Glsetup2_PackageInfo
call fcn.00404c1b
lea eax, [ebp - 0x1c]
lea ecx, [ebx + 0x14]
push eax
mov dword [ebp - 4], edi
call fcn.0040623f
mov ecx, eax
call fcn.00405bae
push str.GLSetup2Size
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov dword [ebp - 4], 3
call fcn.00406217
call fcn.004069b7
pop ecx
mov dword [ebp - 0x18], eax
pop ecx
push dword [ebp + 8]
mov ecx, ebx
call fcn.00404828
test eax, eax
jne 0x40602d
push str.create_package_fail
push dword [ebx]
call fcn.004082aa
mov eax, dword [ebp - 0x1c]
pop ecx
cmp eax, esi
pop ecx
mov dword [ebp - 4], edi
je 0x405fad
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x405fad
mov ecx, ebx
call fcn.0040489a
mov ecx, ebx
call fcn.00404a4c
cmp dword [ebp - 0x18], esi
jle 0x4060ee
push 0x44
lea eax, [ebp - 0x80]
pop edi
push edi
push esi
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x2c]
push esi
push eax
mov dword [ebp - 0x80], edi
call sub.MSVCRT.dll_memset
add esp, 0x18
lea ecx, [ebp - 0x14]
push 0x4117b8
call fcn.0040b2aa
cmp dword [ebp + 0xc], esi
mov byte [ebp - 4], 4
je 0x406087
push str.__Silent
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
add ebx, 8
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x4060c6
push ebx
lea eax, [ebp + 0xc]
push str.__Xml:
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.0040b3a6
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
jmp 0x4061ee
mov edi, 0x104
lea eax, [ebp - 0x1c8]
push edi
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp + eax - 0x1c8]
push 0x41137c
push eax
call sub.MSVCRT.dll_strcpy
push 0x44
lea eax, [ebp - 0xc4]
pop edi
push edi
push esi
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x3c]
push esi
push eax
mov dword [ebp - 0xc4], edi
call sub.MSVCRT.dll_memset
add esp, 0x20
lea ecx, [ebp - 0x10]
push 0x4117b8
call fcn.0040b2aa
cmp dword [ebp + 0xc], esi
mov byte [ebp - 4], 6
je 0x40616d
push str.__Silent
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator
push str.__Package:
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
add ebx, 8
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x4061c4
push ebx
lea eax, [ebp + 8]
push str.__Xml:
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.0040b3a6
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc4]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x1c8]
push dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
cmp eax, esi
je 0x406204
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8