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

Disassembly:
mov eax, 0x110c
call fcn.004213e0
mov eax, dword [0x444e3c]
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.00421410
mov eax, dword [esi + 0x88]
push 0x43985e
push eax
call fcn.00422b07
add esp, 0x14
test eax, eax
jne 0x4096b2
mov edx, dword [esi + 0x88]
push edx
call fcn.004013a0
mov eax, dword [esi + 0x88]
push 0x43985e
push eax
call fcn.00422b07
add esp, 0xc
test eax, eax
jne 0x4096b2
mov ecx, esi
call fcn.004089c0
push 0x1ff
lea eax, [esp + 0x479]
push 0
push eax
mov byte [esp + 0x480], 0
call fcn.00421410
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 0x40970b
xor al, al
pop esi
mov ecx, dword [esp + 0x1108]
xor ecx, esp
call fcn.004213c3
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.00421410
push 0x1ff
lea eax, [esp + 0x8e9]
push 0
push eax
mov byte [esp + 0x8f0], 0
call fcn.00421410
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.004246c8
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.00420f5a
add esp, 0x3c
push str.ClientName
call fcn.004139e0
mov ecx, eax
call fcn.004136d0
mov edi, eax
mov eax, dword [esi + 0x88]
push edi
push eax
lea ecx, [esp + 0x88]
push str._s_s
push ecx
call fcn.00420f5a
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0x10
push 0
push 0
push 3
push 0
push 1
push closesocket
lea edx, [esp + 0x98]
push edx
call ebx
cmp eax, 0xffffffff
jne 0x409960
mov eax, dword [esi + 0x88]
push edi
push eax
lea ecx, [esp + 0x88]
push str._s_s
push ecx
call fcn.00420f5a
add esp, 0x10
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 3
push 0
push 1
push closesocket
lea edx, [esp + 0x98]
push edx
call ebx
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x409955
call fcn.00401d20
cmp dword [eax], 1
je 0x40987c
call fcn.00401d20
cmp dword [eax], 2
jne 0x4098b0
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x684]
push str.Can_not_find_File__n__s
push ecx
call fcn.00420f5a
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.00401d20
cmp dword [eax], 1
jne 0x409955
mov eax, dword [esi + 0x88]
push str.App.exe
push eax
lea ecx, [esp + 0x88]
push str._s_s
push ecx
call fcn.00420f5a
add esp, 0x10
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 3
push 0
push 1
push closesocket
lea edx, [esp + 0x98]
push edx
call ebx
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x409955
mov eax, dword [esi + 0x88]
push edi
push eax
lea ecx, [esp + 0x88]
push str._s_s
push ecx
call fcn.00420f5a
lea edx, [esp + 0x90]
push edx
lea eax, [esp + 0xed4]
push str.Can_not_find_File__n__s
push eax
call fcn.00420f5a
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 0x409966
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.00421410
mov eax, dword [esi]
add esp, 0xc
test eax, eax
mov dword [esp + 0x24], 0x44
je 0x4099b3
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.00421410
mov edi, dword [esp + 0x1c]
push edi
call fcn.00422f43
add esp, 0x10
test eax, eax
je 0x409a08
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.00420f5a
add esp, 0x14
jmp 0x409a2d
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.00420f5a
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 0x409a76
mov ecx, dword [esi]
push 0x43985e
push 0xb
call fcn.00406100
test ebx, ebx
je 0x409a8c
mov eax, dword [esp + 0x14]
push eax
call ebp
mov ecx, dword [esp + 0x18]
push ecx
call ebp
mov al, 1
jmp 0x409a8e
xor al, al
mov ecx, dword [esp + 0x1118]
pop edi
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.004213c3
add esp, 0x110c
ret 8