Function at 0x40a1ce
Capabilities:
Create thread

Disassembly:
push 0x84
mov eax, 0x425598
call fcn.00421fb4
push 0xffffffffffffffff
call dword [sym.imp.IMM32.dll_ImmDisableIME]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
push str.Start_The_AndroidServer
mov dword [ebp - 4], ebx
call fcn.0040679d
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
pop ecx
mov ecx, esi
call fcn.0040a419
test eax, eax
jne 0x40a264
push 0x427608
lea eax, [ebp + 0xc]
push eax
call fcn.00401d9d
lea eax, [ebp + 0xc]
push eax
push 1
push ebx
mov byte [ebp - 4], 1
call fcn.00418a95
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0xc]
add esp, 0xc
add eax, 0xfffffff0
call fcn.004011ad
push str.CApplication::Run_Init_Ipc_Error__
call fcn.0040679d
pop ecx
jmp 0x40a406
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x40a28e
mov edi, 0x4325a8
push dword [edi]
lea ecx, [esi + 8]
push dword [edi + 4]
push dword [ebp - 0x14]
call fcn.0040e30b
add edi, 8
cmp edi, 0x4326a8
jl 0x40a273
cmp dword [ebp + 0xc], ebx
je 0x40a2dc
push dword [ebp + 0xc]
push 0x40b07e
push 0x40b05f
push 0x40b040
push 0x40b020
call dword [sym.imp.ConnectManager.dll_Ordinal_3]
mov esi, dword [esi + 0x2c]
lea eax, [ebp - 0x48]
push eax
call fcn.0040bfe4
pop ecx
push esi
mov byte [ebp - 4], 2
push dword [ebp - 0x44]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x48]
push eax
call fcn.0040fc1f
add esp, 0x10
lea esi, [ebp - 0x48]
call fcn.0040d5f8
push 1
push ebx
push str.TENCENT_ANDROID_SERVER_INIT_FINISH_NAME
lea eax, [ebp - 0x1c]
push eax
call fcn.00414ae1
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call fcn.0041862f
pop ecx
push eax
mov byte [ebp - 4], 4
call fcn.0041452b
mov eax, dword [ebp - 0x14]
pop ecx
add eax, 0xfffffff0
call fcn.004011ad
call fcn.00409fd6
mov dword [ebp - 0x14], eax
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x40a335
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x64]
push eax
call esi
test eax, eax
jne 0x40a321
test byte [0x434cf8], 1
jne 0x40a35d
or dword [0x434cf8], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x434cf4], eax
push 0x434cf4
push ebx
push 0x40a077
call dword [sym.imp.MSVCR100.dll__beginthread]
add esp, 0xc
lea esi, [ebp - 0x90]
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
call fcn.00414ba4
mov byte [ebp - 4], 6
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x88]
push str.TENCENT_ANDROID_SERVER_QUIT_START_NAME
mov dword [ebp - 0x24], eax
push 1
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push str.CApplication::Run::GetMessage_Finish__
call fcn.0040679d
pop ecx
cmp dword [ebp + 0xc], ebx
je 0x40a3d3
call dword [sym.imp.ConnectManager.dll_Ordinal_4]
mov ecx, dword [ebp + 8]
call fcn.0040a4ce
call fcn.0040a108
call fcn.0040a79e
lea eax, [ebp - 0x90]
call fcn.00414b76
cmp dword [ebp - 0x14], ebx
je 0x40a3fe
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1c]
call fcn.00414b5c
push dword [ebp - 0x18]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
xor eax, eax
call fcn.0042208d
ret 8