Function at 0x1000c960
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1013ad73
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x1019ca20]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push esi
push edi
mov eax, dword [0x1019ca20]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov byte [esi + 0x156], 1
test edx, edx
jne 0x1000c9ba
xor al, al
jmp 0x1000cd12
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
cmp word [edx], ax
jne 0x1000c9da
xor ecx, ecx
jmp 0x1000c9ef
mov ecx, edx
lea ebx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000c9e0
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x5c]
call fcn.1000fdc0
mov dword [esp + 0x180], 0
test edi, edi
je 0x1000ccfb
push edi
lea ecx, [esp + 0x28]
call fcn.1000fec0
lea edx, [esp + 0x24]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x180], 1
call fcn.1000ffa0
lea ebx, [esi + 0x13c]
push eax
mov ecx, ebx
call fcn.100086e0
cmp dword [esp + 0x50], 0x10
jb 0x1000ca4d
push dword [esp + 0x3c]
call fcn.10119469
add esp, 4
mov byte [esp + 0x180], 0
cmp dword [esp + 0x38], 8
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
jb 0x1000ca7d
push dword [esp + 0x24]
call fcn.10119469
add esp, 4
lea edx, [esp + 0x54]
lea ecx, [esp + 0x24]
call fcn.1000ffa0
mov ecx, eax
cmp dword [ecx + 0x14], 0x10
jb 0x1000ca94
mov ecx, dword [ecx]
lea edx, [esp + 0x6c]
mov al, byte [ecx]
mov byte [edx], al
lea ecx, [ecx + 1]
lea edx, [edx + 1]
test al, al
jne 0x1000ca98
cmp dword [esp + 0x38], 0x10
jb 0x1000cab9
push dword [esp + 0x24]
call fcn.10119469
add esp, 4
lea ecx, [esp + 0x6c]
lea edi, [esi + 0x58]
call fcn.10010030
push edi
lea ecx, [esi + 0x4c]
mov dword [edi], eax
mov dword [edi + 4], edx
call fcn.1000ef50
mov ecx, dword [0x101a1d24]
push dword [edi + 4]
mov eax, dword [ecx]
push dword [edi]
call dword [eax + 0x28]
cmp eax, 0xffffffff
jne 0x1000cb2d
call fcn.1000ad00
test eax, eax
jne 0x1000cb07
sub esp, 0x18
mov ecx, esp
push str.Lorder_Out_Game
call fcn.10001530
push 7
jmp 0x1000ccee
mov ecx, dword [0x101a1d24]
mov eax, dword [ecx]
call dword [eax + 8]
cmp eax, 0xc8
jne 0x1000cc25
mov ecx, dword [0x101a1d24]
push dword [edi + 4]
mov eax, dword [ecx]
push dword [edi]
call dword [eax + 0x28]
cmp eax, 0xc8
jne 0x1000ccdd
cmp dword [esi + 0x138], 0
jne 0x1000cb5b
push 0
push 0
push esi
push 0x1000cd50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x138], eax
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
mov byte [esp + 0x180], 2
mov ecx, dword [0x101a1d24]
lea edx, [esp + 0x3c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x38]
sub esp, 0x18
mov ecx, esp
cmp eax, 0xc8
jne 0x1000cc3b
lea eax, [esi + 0x94]
mov dword [esp + 0x30], esp
push eax
call fcn.1000edb0
sub esp, 0x18
mov byte [esp + 0x1b0], 3
mov ecx, esp
mov dword [esp + 0x50], esp
push ebx
call fcn.1000edb0
sub esp, 0x18
mov byte [esp + 0x1c8], 4
lea eax, [esi + 0x1c]
mov ecx, esp
mov dword [esp + 0x64], esp
push eax
call fcn.1000edb0
mov byte [esp + 0x1c8], 5
cmp dword [esp + 0x98], 0x10
lea eax, [esp + 0x84]
cmovae eax, dword [esp + 0x84]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10001530
mov cl, 1
mov byte [esp + 0x1e0], 2
call fcn.10007be0
add esp, 0x60
lea ecx, [esp + 0x3c]
call fcn.1000ef10
mov bl, 1
jmp 0x1000ccfd
sub esp, 0x18
mov ecx, esp
push str.Lorder_Attach_To_Game_Invite_Error
call fcn.10001530
push 3
jmp 0x1000ccee
push str.Lorder_Invite_Error
call fcn.10001530
push 8
push 1
mov ecx, esi
call fcn.1000e8a0
sub esp, 0x18
lea eax, [esi + 0x94]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.1000edb0
sub esp, 0x18
mov byte [esp + 0x1b0], 6
mov ecx, esp
mov dword [esp + 0x4c], esp
push ebx
call fcn.1000edb0
sub esp, 0x18
mov byte [esp + 0x1c8], 7
lea eax, [esi + 0x1c]
mov ecx, esp
mov dword [esp + 0x68], esp
push eax
call fcn.1000edb0
mov byte [esp + 0x1c8], 8
cmp dword [esp + 0x98], 0x10
lea eax, [esp + 0x84]
cmovae eax, dword [esp + 0x84]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10001530
xor cl, cl
mov byte [esp + 0x1e0], 2
call fcn.10007be0
add esp, 0x60
lea ecx, [esp + 0x3c]
call fcn.1000ef10
jmp 0x1000ccf7
sub esp, 0x18
mov ecx, esp
push str.Lorder_Invite_Error
call fcn.10001530
push 9
push 1
mov ecx, esi
call fcn.1000e8a0
mov byte [esi + 0x60], 1
xor bl, bl
cmp dword [esp + 0x68], 8
jb 0x1000cd10
push dword [esp + 0x54]
call fcn.10119469
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.10118be7
mov esp, ebp
pop ebp
ret 8