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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x461665
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x47c824]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x47c824]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x128]
xor ebx, ebx
cmp eax, ebx
je 0x40e1d0
mov ecx, dword [edi + 0x12c]
cmp ecx, ebx
je 0x40e1d0
push ecx
push eax
push edi
call fcn.0040df20
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.try_login
call esi
cmp dword [edi + 0x118], 3
je 0x40e205
push str.not_new_version
call esi
cmp dword [edi + 0x118], 1
jne 0x40e1fb
call fcn.00412850
mov eax, 3
jmp 0x40e644
push edi
call fcn.0040da50
cmp eax, 1
jne 0x40e63b
push 0xd
mov esi, 0xf
push str.StartGame360
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
call fcn.004017f0
mov dword [esp + 0xb0], ebx
push 3
push 0x46b0d0
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.004017f0
lea eax, [esp + 0x30]
add edi, 0x11c
push eax
mov ecx, edi
mov byte [esp + 0xb4], 1
call fcn.0040e7c0
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x54]
call fcn.00402800
mov byte [esp + 0xb0], bl
cmp dword [esp + 0x48], 0x10
jb 0x40e29b
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00420ede
add esp, 4
push 1
push 0x46b140
lea eax, [esp + 0x54]
call fcn.00402710
push 9
push str.server_id
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.004017f0
lea edx, [esp + 0x30]
push edx
mov ecx, edi
mov byte [esp + 0xb4], 2
call fcn.0040e7c0
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x54]
call fcn.00402800
mov byte [esp + 0xb0], bl
cmp dword [esp + 0x48], 0x10
jb 0x40e308
mov eax, dword [esp + 0x34]
push eax
call fcn.00420ede
add esp, 4
push 1
push 0x46b140
lea eax, [esp + 0x54]
call fcn.00402710
push 4
push str.time
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.004017f0
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
mov byte [esp + 0xb4], 3
call fcn.0040e7c0
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x54]
call fcn.00402800
mov byte [esp + 0xb0], bl
cmp dword [esp + 0x48], 0x10
jb 0x40e375
mov edx, dword [esp + 0x34]
push edx
call fcn.00420ede
add esp, 4
push 1
push 0x46b140
lea eax, [esp + 0x54]
call fcn.00402710
push 4
push str.sign
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.004017f0
lea eax, [esp + 0x30]
push eax
mov ecx, edi
mov byte [esp + 0xb4], 4
call fcn.0040e7c0
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x54]
call fcn.00402800
mov byte [esp + 0xb0], bl
cmp dword [esp + 0x48], 0x10
jb 0x40e3e2
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00420ede
add esp, 4
push 1
push 0x46b140
lea eax, [esp + 0x54]
call fcn.00402710
push 7
push str.isAdult
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.004017f0
lea edx, [esp + 0x30]
push edx
mov ecx, edi
mov byte [esp + 0xb4], 5
call fcn.0040e7c0
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x54]
call fcn.00402800
mov byte [esp + 0xb0], bl
cmp dword [esp + 0x48], 0x10
jb 0x40e44f
mov eax, dword [esp + 0x34]
push eax
call fcn.00420ede
add esp, 4
push 1
push 0x46b140
lea eax, [esp + 0x54]
call fcn.00402710
mov esi, 0xf
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
mov byte [esp + 0xb0], 7
push 9
push str.server_id
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.004017f0
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x34]
push edx
mov ecx, edi
mov byte [esp + 0xb8], 8
call fcn.0040e7c0
lea ecx, [esp + 0x88]
mov edx, eax
call fcn.00413b30
add esp, 4
mov byte [esp + 0xb0], 7
cmp dword [esp + 0x48], 0x10
mov edi, eax
jb 0x40e4f4
mov eax, dword [esp + 0x34]
push eax
call fcn.00420ede
add esp, 4
cmp edi, 1
jne 0x40e5be
push ebx
lea ecx, [esp + 0x6c]
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x54]
call fcn.00402800
push edi
push 0x46b140
mov eax, esi
call fcn.00402710
push ebx
lea edx, [esp + 0x88]
push edx
or eax, 0xffffffff
call fcn.00402800
push str.client.exe
lea ecx, [esp + 0x18]
call fcn.00401470
push eax
push 0x47dcf0
lea edi, [esp + 0x38]
mov byte [esp + 0xb8], 9
call fcn.00406750
mov esi, 0x10
add esp, 8
cmp dword [esp + 0x2c], esi
jb 0x40e56d
mov eax, dword [esp + 0x18]
push eax
call fcn.00420ede
add esp, 4
cmp dword [0x47dd08], esi
mov edx, dword [0x47dcf4]
jae 0x40e580
mov edx, 0x47dcf4
cmp dword [esp + 0x64], esi
mov ecx, dword [esp + 0x50]
jae 0x40e58e
lea ecx, [esp + 0x50]
cmp dword [esp + 0x48], esi
mov eax, dword [esp + 0x34]
jae 0x40e59c
lea eax, [esp + 0x34]
push 4
push edx
push ecx
push eax
push 0x46b150
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push str.try_login_start_client
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call fcn.00443cbc
push str.try_login_2
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, 0x10
cmp dword [esp + 0x9c], edi
jb 0x40e5e7
mov ecx, dword [esp + 0x88]
push ecx
call fcn.00420ede
add esp, 4
cmp dword [esp + 0x80], edi
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
jb 0x40e612
mov edx, dword [esp + 0x6c]
push edx
call fcn.00420ede
add esp, 4
cmp dword [esp + 0x64], edi
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
jb 0x40e634
mov eax, dword [esp + 0x50]
push eax
call fcn.00420ede
add esp, 4
mov eax, 2
jmp 0x40e644
push str.try_login_0
call esi
xor eax, eax
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.00441b4d
mov esp, ebp
pop ebp
ret