Function at 0x11557b0
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 0x11557f2
sub edx, 4
add eax, 4
cmp edx, 4
jae 0x11557d2
push edi
push ebx
call fcn.0104d310
test eax, eax
je 0x1155833
push edi
push esi
call fcn.0110a2c0
lea ebx, [esi + 0xa08]
mov dword [ebp + 0x10], 7
mov eax, dword [ebx]
test eax, eax
je 0x1155827
mov eax, dword [eax + 8]
cmp dword [eax + 0x1c], 0
je 0x1155827
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 0x1155806
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x3550]
cmp dword [edx + 0x78], 0
je 0x11558cd
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 0x1155869
push eax
push edi
push esi
call fcn.01126880
mov eax, dword [edi + 0x154]
cmp dword [ebx + 0x154], eax
je 0x1155880
push ebx
push edi
push eax
push esi
call fcn.01126400
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 0x1155b8a
mov ecx, dword [esi]
push ecx
call fcn.010cdad0
test eax, eax
jne 0x11558ca
mov eax, dword [esi]
cmp dword [eax + 0x81a4], 0x1771
jb 0x1155b7e
push 0
push ebx
push esi
call fcn.010d5450
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebx + 0xcf0]
xor edx, dword [edi + 0xcf0]
test edx, 0x100
je 0x1155918
test dword [edi + 0xcf0], 0x100
je 0x1155918
mov eax, dword [esi]
lea ecx, [ebp + 8]
push ecx
push 0
push esi
push 0x1153c30
push 0
push 0
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x1155918
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 0x1155940
test dword [edi + 0xc8], 0x2000000
je 0x1155940
push 0
push esi
call fcn.011165f0
mov edx, dword [ebx + 0xc8]
xor edx, dword [edi + 0xc8]
test edx, 0x10000000
je 0x1155966
test dword [edi + 0xc8], 0x10000000
je 0x1155966
push esi
call fcn.010c5030
mov eax, dword [ebx + 0xcf4]
cmp eax, dword [edi + 0xcf4]
je 0x11559ae
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.0114e860
push 0
push 0
mov dword [ebp + 0x10], edx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x11559ae
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 0x11559f3
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.0114e860
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x11559f0
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 0x1155a10
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 0x1155a43
push 0
push 0
push eax
mov eax, dword [esi]
push 0x1001d90
lea edx, [edi + 0x43c]
push edx
push 0
push 1
push eax
call fcn.010c4c90
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 0x1155a67
push eax
push edi
push esi
call fcn.010c4f40
mov edx, dword [ebx + 0xbf0]
cmp edx, dword [edi + 0xbf0]
je 0x1155ac4
mov eax, dword [esi]
push 1
add eax, 0x8878
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x1155ac4
mov eax, dword [esi]
mov dword [ebp + 0x10], eax
mov eax, dword [eax + 0x3550]
test eax, eax
je 0x1155ac4
cmp dword [eax + 0x78], 0
je 0x1155ac4
lea ecx, [ebp + 8]
push ecx
push 0
push esi
push 0x114c650
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x1155ac4
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 0x1155b07
push 4
lea edx, [ebp + 0x10]
push edx
neg eax
push 4
sbb eax, eax
push 0x1017ecc
and eax, 6
push 0x1017e70
mov dword [ebp + 0x10], eax
mov eax, dword [esi]
push connect
push eax
call fcn.010b52d0
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 0x1155b45
push 4
lea edx, [ebp + 0x10]
push edx
push 4
push 0x1017edc
push 0x1014dcc
mov dword [ebp + 0x10], eax
mov eax, dword [esi]
push connect
push eax
call fcn.010b52d0
mov eax, dword [edi + 0x6a8]
cmp dword [ebx + 0x6a8], eax
je 0x1155b5c
push ebx
push edi
push eax
push esi
call fcn.01116540
mov ecx, dword [ebx + 0xc90]
xor ecx, dword [edi + 0xc90]
test cl, 0x20
je 0x1155bc3
test byte [edi + 0xc90], 0x20
je 0x1155b91
push esi
call fcn.01116a20
jmp 0x1155bc3
push ebx
push eax
call fcn.01109fb0
jmp 0x11558ca
mov ebx, edx
jmp 0x11558cd
mov edx, dword [esi]
mov ebx, dword [edx + 0x1e8f0]
test ebx, ebx
je 0x1155bc0
cmp ebx, 0xffffffff
je 0x1155bc0
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 0x1155bdc
cmp eax, 3
jne 0x1155bdc
push esi
call fcn.01127120
mov ecx, dword [ebx + 0xcc4]
cmp ecx, dword [edi + 0xcc4]
je 0x1155c21
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.0114e860
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x1155c1e
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 0x1155c60
mov eax, dword [edi + 0x1b8]
mov edx, dword [esi]
push 4
lea ecx, [ebp + 0x10]
push ecx
push 4
push 0x1017e5c
push 0x1014dcc
shr eax, 2
push connect
and eax, 1
push edx
mov dword [ebp + 0x10], eax
call fcn.010b52d0
mov eax, dword [edi + 0x734]
cmp dword [ebx + 0x734], eax
je 0x1155ce2
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 0x100dc2c
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 0x1155cdf
cmp ebx, 0xffffffff
je 0x1155cdf
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 0x1155cf7
push eax
push esi
call fcn.01095150
mov eax, dword [edi + 0x5c8]
xor eax, dword [ebx + 0x5c8]
test al, 4
je 0x1155d2c
mov edi, dword [esi]
lea ecx, [ebp + 0xc]
push ecx
push 0
push esi
push 0x10c5000
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x1155d2c
mov edx, dword [edi + 0x1c0]
push eax
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc