Function at 0x408950
Capabilities:
Create process on windows
Print debug messages

Disassembly:
mov eax, 0x110c
call fcn.00420520
mov eax, dword [0x443d3c]
xor eax, esp
mov dword [esp + 0x1108], eax
mov eax, dword [esp + 0x1114]
push esi
push 0x1ff
mov esi, ecx
lea ecx, [esp + 0x79]
push 0
push ecx
mov dword [esp + 0x10], eax
mov byte [esp + 0x80], 0
call fcn.00420550
mov eax, dword [esi + 0x88]
push 0x438897
push eax
call fcn.0042157f
add esp, 0x14
test eax, eax
jne 0x4089d2
mov edx, dword [esi + 0x88]
push edx
call fcn.00401380
mov eax, dword [esi + 0x88]
push 0x438897
push eax
call fcn.0042157f
add esp, 0xc
test eax, eax
jne 0x4089d2
mov ecx, esi
call fcn.00407bf0
push 0x1ff
lea eax, [esp + 0x479]
push 0
push eax
mov byte [esp + 0x480], 0
call fcn.00420550
add esp, 0xc
push 0x200
lea ecx, [esp + 0x478]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408a2b
xor al, al
pop esi
mov ecx, dword [esp + 0x1108]
xor ecx, esp
call fcn.0042050e
add esp, 0x110c
ret 8
push ebx
push ebp
xor eax, eax
push edi
push 0x3e7
push eax
lea edx, [esp + 0xae1]
push edx
mov byte [esp + 0x74], 0
mov dword [esp + 0x75], eax
mov dword [esp + 0x79], eax
mov byte [esp + 0x7d], al
mov byte [esp + 0xae4], al
call fcn.00420550
push 0x1ff
lea eax, [esp + 0x8e9]
push 0
push eax
mov byte [esp + 0x8f0], 0
call fcn.00420550
xor eax, eax
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x8f4]
push edx
mov dword [esp + 0x95], eax
mov dword [esp + 0x99], eax
mov byte [esp + 0x9d], al
lea eax, [esp + 0xaf8]
push eax
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x4a8]
push edx
mov byte [esp + 0xa0], 0
call fcn.004231d8
mov edx, dword [esi + 0x88]
lea eax, [esp + 0xb04]
push eax
lea ecx, [esp + 0x98]
push ecx
push str._s_s
push edx
call fcn.004200a5
add esp, 0x3c
push str.ClientName
call fcn.00412ad0
mov ecx, eax
call fcn.004127c0
mov edi, eax
mov eax, dword [esi + 0x88]
push edi
push eax
lea ecx, [esp + 0x88]
push str._s_s
push ecx
call fcn.004200a5
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0x10
push 0
push 0
push 3
push 0
push 1
push connect
lea edx, [esp + 0x98]
push edx
call ebx
cmp eax, 0xffffffff
jne 0x408c80
mov eax, dword [esi + 0x88]
push edi
push eax
lea ecx, [esp + 0x88]
push str._s_s
push ecx
call fcn.004200a5
add esp, 0x10
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 3
push 0
push 1
push connect
lea edx, [esp + 0x98]
push edx
call ebx
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x408c75
call fcn.00401d90
cmp dword [eax], 1
je 0x408b9c
call fcn.00401d90
cmp dword [eax], 2
jne 0x408bd0
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x684]
push str.Can_not_find_File__n__s
push ecx
call fcn.004200a5
add esp, 0xc
push 0
push str.Error
lea edx, [esp + 0x688]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.00401d90
cmp dword [eax], 1
jne 0x408c75
mov eax, dword [esi + 0x88]
push str.App.exe
push eax
lea ecx, [esp + 0x88]
push str._s_s
push ecx
call fcn.004200a5
add esp, 0x10
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 3
push 0
push 1
push connect
lea edx, [esp + 0x98]
push edx
call ebx
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x408c75
mov eax, dword [esi + 0x88]
push edi
push eax
lea ecx, [esp + 0x88]
push str._s_s
push ecx
call fcn.004200a5
lea edx, [esp + 0x90]
push edx
lea eax, [esp + 0xed4]
push str.Can_not_find_File__n__s
push eax
call fcn.004200a5
add esp, 0x1c
push 0
push str.Error
lea ecx, [esp + 0xec8]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebp
jmp 0x408c86
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push 0x44
push eax
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.00420550
mov eax, dword [esi]
add esp, 0xc
test eax, eax
mov dword [esp + 0x24], 0x44
je 0x408cd3
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x64], ecx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x60], edx
mov eax, dword [eax + 4]
or dword [esp + 0x50], 0x100
mov dword [esp + 0x5c], eax
push 0x1ff
lea ecx, [esp + 0x285]
push 0
push ecx
mov byte [esp + 0x28c], 0
call fcn.00420550
mov edi, dword [esp + 0x1c]
push edi
call fcn.00421a30
add esp, 0x10
test eax, eax
je 0x408d28
push edi
mov edi, dword [esp + 0x1124]
push edi
lea edx, [esp + 0x88]
push edx
lea eax, [esp + 0x28c]
push str.__s___d__s
push eax
call fcn.004200a5
add esp, 0x14
jmp 0x408d4d
mov edi, dword [esp + 0x1120]
push edi
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x288]
push str.__s___d
push edx
call fcn.004200a5
add esp, 0x10
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
lea edx, [esp + 0x2a0]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push str.Open_Casino_Client_n
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp edi, 0x352
jne 0x408d96
mov ecx, dword [esi]
push 0x438897
push 0xb
call fcn.004052d0
test ebx, ebx
je 0x408dac
mov eax, dword [esp + 0x14]
push eax
call ebp
mov ecx, dword [esp + 0x18]
push ecx
call ebp
mov al, 1
jmp 0x408dae
xor al, al
mov ecx, dword [esp + 0x1118]
pop edi
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.0042050e
add esp, 0x110c
ret 8