Function at 0x401ee0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x454
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0xd4c]
cmp eax, ebx
je 0x401f76
lea ecx, [eax + 0x11]
lea edx, [eax + 1]
push ecx
lea ecx, [eax + 0x39]
push edx
add eax, 0xc44
push ecx
push eax
lea edx, [esp + 0x70]
push str.__P___s____s____s____s_
push edx
call fcn.00409fde
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x3c]
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x38], ebx
add esp, 0x18
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0xd4c]
mov dword [esp + 0x14], eax
push edx
push ebx
mov dword [esp + 0x20], eax
push ebx
push ebx
mov dword [esp + 0x2c], eax
push ebx
push ebx
lea eax, [esp + 0x7c]
push ebx
add ecx, 0xc44
push eax
push ecx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402003
jmp 0x401ff5
cmp byte [esi + 0x511], bl
je 0x402003
cmp byte [esi + 0x512], bl
je 0x402003
lea edx, [esi + 0x513]
lea eax, [esp + 0x60]
push edx
push str._sMir3.exe
push eax
call fcn.00409fde
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0x20], ebx
rep stosd dword es:[edi], eax
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
xor ecx, ecx
push edx
push eax
mov dword [esp + 0x18], ecx
push ebx
push ebx
mov dword [esp + 0x24], ecx
push ebx
push ebx
mov dword [esp + 0x30], ecx
push ebx
push ebx
lea ecx, [esp + 0x80]
push 0x4171d0
push ecx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402003
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004011e0
mov eax, dword [esi + 0x50c]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp eax, ebx
mov byte [esi + 0x510], 6
je 0x402023
push eax
call edi
mov dword [esi + 0x50c], ebx
mov eax, dword [esi + 0x508]
cmp eax, ebx
je 0x402036
push eax
call edi
mov dword [esi + 0x508], ebx
mov eax, dword [esi + 0xd58]
cmp eax, ebx
je 0x402047
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0xd50]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x40206f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0xd50]
push edx
call edi
mov dword [esi + 0xd50], ebx
mov eax, dword [esi + 0xd58]
cmp eax, ebx
je 0x402082
push eax
call edi
mov dword [esi + 0xd58], ebx
mov eax, dword [esi + 0xd54]
cmp eax, ebx
je 0x402095
push eax
call edi
mov dword [esi + 0xd54], ebx
mov edi, dword [esi + 0xd18]
cmp edi, ebx
je 0x4020b7
mov eax, dword [edi + 4]
add eax, 0xc44
push eax
call fcn.0040a3d2
mov edi, dword [edi + 0xc]
add esp, 4
cmp edi, ebx
jne 0x40209f
lea ecx, [esi + 0x913]
push ecx
call fcn.0040a3d2
mov eax, dword [esi + 0xd18]
add esp, 4
cmp eax, ebx
je 0x402106
mov edx, dword [eax + 4]
push edx
call fcn.004098a0
mov ecx, dword [esi + 0xd18]
add esp, 4
mov eax, dword [ecx + 0xc]
cmp eax, ebx
mov dword [esi + 0xd18], eax
je 0x4020f2
mov dword [eax + 8], ebx
cmp ecx, ebx
je 0x4020fc
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0xd18]
cmp eax, ebx
jne 0x4020d0
mov dword [esi + 0xd18], ebx
mov dword [esi + 0xd1c], ebx
mov dword [esi + 0xd28], ebx
mov ecx, dword [esi]
push ebx
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
pop edi
pop esi
pop ebx
add esp, 0x454
ret