Function at 0x11511f0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
lea eax, [edi + 0x1f8]
lea ecx, [ebx + 0x1f8]
mov edx, 0x1bc
sub ecx, eax
mov esi, dword [eax + ecx]
cmp esi, dword [eax]
mov esi, dword [ebp + 8]
jne 0x1151232
sub edx, 4
add eax, 4
cmp edx, 4
jae 0x1151212
push edi
push ebx
call fcn.0104be30
test eax, eax
je 0x1151273
push edi
push esi
call fcn.01106e20
lea ebx, [esi + 0xa08]
mov dword [ebp + 0x10], 7
mov eax, dword [ebx]
test eax, eax
je 0x1151267
mov eax, dword [eax + 8]
cmp dword [eax + 0x1c], 0
je 0x1151267
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
lea edx, [esi + 0x10e0]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
add ebx, 4
sub dword [ebp + 0x10], 1
jne 0x1151246
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x3550]
cmp dword [edx + 0x78], 0
je 0x115130d
mov eax, dword [edi + 0x438]
mov ecx, dword [ebx + 0x438]
shr eax, 4
shr ecx, 4
and eax, 1
and ecx, 1
cmp ecx, eax
je 0x11512a9
push eax
push edi
push esi
call fcn.01122c80
mov eax, dword [edi + 0x154]
cmp dword [ebx + 0x154], eax
je 0x11512c0
push ebx
push edi
push eax
push esi
call fcn.01122800
mov edx, dword [ebp + 0xc]
mov ebx, dword [edi + 0x438]
mov eax, dword [edx + 0x438]
shr ebx, 5
shr eax, 5
and ebx, 1
and eax, 1
cmp eax, ebx
je 0x11515ca
mov ecx, dword [esi]
push ecx
call fcn.010cac40
test eax, eax
jne 0x115130a
mov eax, dword [esi]
cmp dword [eax + 0x81a4], 0x1771
jb 0x11515be
push 1
push ebx
push esi
call fcn.010d2370
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebx + 0xcf0]
xor edx, dword [edi + 0xcf0]
test edx, 0x100
je 0x1151358
test dword [edi + 0xcf0], 0x100
je 0x1151358
mov eax, dword [esi]
lea ecx, [ebp + 8]
push ecx
push 0
push esi
push 0x114f670
push 0
push 0
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x1151358
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [edx + 0x1c0]
call eax
mov ecx, dword [ebx + 0xc8]
xor ecx, dword [edi + 0xc8]
test ecx, 0x2000000
je 0x1151380
test dword [edi + 0xc8], 0x2000000
je 0x1151380
push 0
push esi
call fcn.01112aa0
mov edx, dword [ebx + 0xc8]
xor edx, dword [edi + 0xc8]
test edx, 0x10000000
je 0x11513a6
test dword [edi + 0xc8], 0x10000000
je 0x11513a6
push esi
call fcn.010c2460
mov eax, dword [ebx + 0xcf4]
cmp eax, dword [edi + 0xcf4]
je 0x11513ee
mov ecx, dword [esi]
add ecx, 0x2258
push ecx
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
mov edx, dword [esi]
lea eax, [ebp + 8]
push eax
push 0
push esi
push fcn.0114a3d0
push 0
push 0
mov dword [ebp + 0x10], edx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x11513ee
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x1c0]
push eax
call edx
mov eax, dword [ebx + 0xcc4]
cmp eax, dword [edi + 0xcc4]
je 0x1151433
mov ecx, dword [esi]
add ecx, 0x2258
push ecx
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
mov ebx, dword [esi]
lea edx, [ebp + 0x10]
push edx
push 0
push esi
push fcn.0114a3d0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x1151430
push eax
mov eax, dword [ebx + 0x1c0]
call eax
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0xcc8]
cmp ecx, dword [edi + 0xcc8]
je 0x1151450
mov edx, dword [esi]
add edx, 0x2258
push edx
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
mov eax, dword [edi + 0x438]
mov ecx, dword [ebx + 0x438]
and eax, 1
and ecx, 1
cmp ecx, eax
je 0x1151483
push 0
push 0
push eax
mov eax, dword [esi]
push 0x1001d5c
lea edx, [edi + 0x43c]
push edx
push 0
push 1
push eax
call fcn.010c20c0
mov eax, dword [edi + 0x438]
mov ecx, dword [ebx + 0x438]
shr eax, 3
shr ecx, 3
and eax, 1
and ecx, 1
cmp ecx, eax
je 0x11514a7
push eax
push edi
push esi
call fcn.010c2370
mov edx, dword [ebx + 0xbf0]
cmp edx, dword [edi + 0xbf0]
je 0x1151504
mov eax, dword [esi]
push 1
add eax, 0x8878
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x1151504
mov eax, dword [esi]
mov dword [ebp + 0x10], eax
mov eax, dword [eax + 0x3550]
test eax, eax
je 0x1151504
cmp dword [eax + 0x78], 0
je 0x1151504
lea ecx, [ebp + 8]
push ecx
push 0
push esi
push 0x1148080
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x1151504
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [edx + 0x1c0]
call eax
mov eax, dword [edi + 0x5c8]
mov ecx, dword [ebx + 0x5c8]
shr eax, 1
shr ecx, 1
and eax, 1
and ecx, 1
cmp ecx, eax
je 0x1151547
push 4
lea edx, [ebp + 0x10]
push edx
neg eax
push 4
sbb eax, eax
push 0x1017d7c
and eax, 6
push 0x1017d20
mov dword [ebp + 0x10], eax
mov eax, dword [esi]
push connect
push eax
call fcn.010b2fe0
mov eax, dword [edi + 0x5c8]
mov ecx, dword [ebx + 0x5c8]
shr eax, 3
shr ecx, 3
and eax, 1
and ecx, 1
cmp ecx, eax
je 0x1151585
push 4
lea edx, [ebp + 0x10]
push edx
push 4
push 0x1017d8c
push 0x1014d6c
mov dword [ebp + 0x10], eax
mov eax, dword [esi]
push connect
push eax
call fcn.010b2fe0
mov eax, dword [edi + 0x6a8]
cmp dword [ebx + 0x6a8], eax
je 0x115159c
push ebx
push edi
push eax
push esi
call fcn.011129f0
mov ecx, dword [ebx + 0xc90]
xor ecx, dword [edi + 0xc90]
test cl, 0x20
je 0x1151603
test byte [edi + 0xc90], 0x20
je 0x11515d1
push esi
call fcn.01112ed0
jmp 0x1151603
push ebx
push eax
call fcn.01106b10
jmp 0x115130a
mov ebx, edx
jmp 0x115130d
mov edx, dword [esi]
mov ebx, dword [edx + 0x1e8f0]
test ebx, ebx
je 0x1151600
cmp ebx, 0xffffffff
je 0x1151600
push 0
push 2
push ebx
call dword [sym.imp.KERNEL32.DLL_SetHandleInformation]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esi]
mov dword [eax + 0x1e8f0], 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [edi + 0x73c]
cmp dword [ebx + 0x73c], eax
je 0x115161c
cmp eax, 3
jne 0x115161c
push esi
call fcn.01123520
mov ecx, dword [ebx + 0xcc4]
cmp ecx, dword [edi + 0xcc4]
je 0x1151661
mov edx, dword [esi]
add edx, 0x2258
push edx
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
mov ebx, dword [esi]
lea eax, [ebp + 0x10]
push eax
push 0
push esi
push fcn.0114a3d0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x115165e
mov ecx, dword [ebx + 0x1c0]
push eax
call ecx
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebx + 0x1b8]
xor edx, dword [edi + 0x1b8]
test dl, 4
je 0x11516a0
mov eax, dword [edi + 0x1b8]
mov edx, dword [esi]
push 4
lea ecx, [ebp + 0x10]
push ecx
push 4
push 0x1017d0c
push 0x1014d6c
shr eax, 2
push connect
and eax, 1
push edx
mov dword [ebp + 0x10], eax
call fcn.010b2fe0
mov eax, dword [edi + 0x734]
cmp dword [ebx + 0x734], eax
je 0x1151722
push 0
xor ecx, ecx
push 0x80
test eax, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x260]
push 3
setne cl
push 0
push 0
push 0xc0000000
push 0x100dd44
mov dword [ebp + 0x10], eax
mov dword [ebp + 8], 0
lea ecx, [ecx*4 + 0x22e068]
mov dword [ebp - 4], ecx
call edx
mov ebx, eax
test ebx, ebx
je 0x115171f
cmp ebx, 0xffffffff
je 0x115171f
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
push 0
lea eax, [ebp + 8]
push eax
mov eax, dword [edx + 0x25c]
push 0
push 0
push 0
push 0
push ecx
push ebx
call eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x1c0]
push ebx
call edx
mov ebx, dword [ebp + 0xc]
mov eax, dword [edi + 0x730]
cmp dword [ebx + 0x730], eax
je 0x1151737
push eax
push esi
call fcn.010936a0
mov eax, dword [edi + 0x5c8]
xor eax, dword [ebx + 0x5c8]
test al, 4
je 0x115176c
mov edi, dword [esi]
lea ecx, [ebp + 0xc]
push ecx
push 0
push esi
push 0x10c2430
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x115176c
mov edx, dword [edi + 0x1c0]
push eax
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc