Function at 0x115dbc0
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 0x115dc02
sub edx, 4
add eax, 4
cmp edx, 4
jae 0x115dbe2
push edi
push ebx
call fcn.0104ef80
test eax, eax
je 0x115dc43
push edi
push esi
call fcn.011106d0
lea ebx, [esi + 0xa0c]
mov dword [ebp + 0x10], 7
mov eax, dword [ebx]
test eax, eax
je 0x115dc37
mov eax, dword [eax + 8]
cmp dword [eax + 0x1c], 0
je 0x115dc37
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
lea edx, [esi + 0x10e4]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
add ebx, 4
sub dword [ebp + 0x10], 1
jne 0x115dc16
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x35b0]
cmp dword [edx + 0x78], 0
je 0x115dcdd
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 0x115dc79
push eax
push edi
push esi
call fcn.01128320
mov eax, dword [edi + 0x154]
cmp dword [ebx + 0x154], eax
je 0x115dc90
push ebx
push edi
push eax
push esi
call fcn.01127b50
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 0x115df9a
mov ecx, dword [esi]
push ecx
call fcn.010d3220
test eax, eax
jne 0x115dcda
mov eax, dword [esi]
cmp dword [eax + 0x8af4], 0x1771
jb 0x115df8e
push 0
push ebx
push esi
call fcn.010d9fe0
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebx + 0xcf0]
xor edx, dword [edi + 0xcf0]
test edx, 0x100
je 0x115dd28
test dword [edi + 0xcf0], 0x100
je 0x115dd28
mov eax, dword [esi]
lea ecx, [ebp + 8]
push ecx
push 0
push esi
push 0x115c040
push 0
push 0
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x115dd28
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [edx + 0x1c8]
call eax
mov ecx, dword [ebx + 0xc8]
xor ecx, dword [edi + 0xc8]
test ecx, 0x2000000
je 0x115dd50
test dword [edi + 0xc8], 0x2000000
je 0x115dd50
push 0
push esi
call fcn.011506a0
mov edx, dword [ebx + 0xc8]
xor edx, dword [edi + 0xc8]
test edx, 0x10000000
je 0x115dd76
test dword [edi + 0xc8], 0x10000000
je 0x115dd76
push esi
call fcn.01148b80
mov eax, dword [ebx + 0xcf4]
cmp eax, dword [edi + 0xcf4]
je 0x115ddbe
mov ecx, dword [esi]
add ecx, 0x22b8
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.01156aa0
push 0
push 0
mov dword [ebp + 0x10], edx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x115ddbe
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x1c8]
push eax
call edx
mov eax, dword [ebx + 0xcc4]
cmp eax, dword [edi + 0xcc4]
je 0x115de03
mov ecx, dword [esi]
add ecx, 0x22b8
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.01156aa0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x115de00
push eax
mov eax, dword [ebx + 0x1c8]
call eax
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0xcc8]
cmp ecx, dword [edi + 0xcc8]
je 0x115de20
mov edx, dword [esi]
add edx, 0x22b8
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 0x115de53
push 0
push 0
push eax
mov eax, dword [esi]
push 0x1001e10
lea edx, [edi + 0x43c]
push edx
push 0
push 1
push eax
call fcn.010ca200
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 0x115de77
push eax
push edi
push esi
call fcn.010ca4b0
mov edx, dword [ebx + 0xbf0]
cmp edx, dword [edi + 0xbf0]
je 0x115ded4
mov eax, dword [esi]
push 1
add eax, 0x91c8
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x115ded4
mov eax, dword [esi]
mov dword [ebp + 0x10], eax
mov eax, dword [eax + 0x35b0]
test eax, eax
je 0x115ded4
cmp dword [eax + 0x78], 0
je 0x115ded4
lea ecx, [ebp + 8]
push ecx
push 0
push esi
push 0x1153620
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x115ded4
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [edx + 0x1c8]
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 0x115df17
push 4
lea edx, [ebp + 0x10]
push edx
neg eax
push 4
sbb eax, eax
push 0x1018bcc
and eax, 6
push 0x1018b70
mov dword [ebp + 0x10], eax
mov eax, dword [esi]
push connect
push eax
call fcn.010bae20
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 0x115df55
push 4
lea edx, [ebp + 0x10]
push edx
push 4
push 0x1018bdc
push 0x1015b3c
mov dword [ebp + 0x10], eax
mov eax, dword [esi]
push connect
push eax
call fcn.010bae20
mov eax, dword [edi + 0x6a8]
cmp dword [ebx + 0x6a8], eax
je 0x115df6c
push ebx
push edi
push eax
push esi
call fcn.011189c0
mov ecx, dword [ebx + 0xc90]
xor ecx, dword [edi + 0xc90]
test cl, 0x20
je 0x115dfd3
test byte [edi + 0xc90], 0x20
je 0x115dfa1
push esi
call fcn.01118be0
jmp 0x115dfd3
push ebx
push eax
call fcn.011103c0
jmp 0x115dcda
mov ebx, edx
jmp 0x115dcdd
mov edx, dword [esi]
mov ebx, dword [edx + 0x1f5bc]
test ebx, ebx
je 0x115dfd0
cmp ebx, 0xffffffff
je 0x115dfd0
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 + 0x1f5bc], 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [edi + 0x73c]
cmp dword [ebx + 0x73c], eax
je 0x115dfec
cmp eax, 3
jne 0x115dfec
push esi
call fcn.01128d30
mov ecx, dword [ebx + 0xcc4]
cmp ecx, dword [edi + 0xcc4]
je 0x115e031
mov edx, dword [esi]
add edx, 0x22b8
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.01156aa0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x115e02e
mov ecx, dword [ebx + 0x1c8]
push eax
call ecx
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebx + 0x1b8]
xor edx, dword [edi + 0x1b8]
test dl, 4
je 0x115e070
mov eax, dword [edi + 0x1b8]
mov edx, dword [esi]
push 4
lea ecx, [ebp + 0x10]
push ecx
push 4
push 0x1018b5c
push 0x1015b3c
shr eax, 2
push connect
and eax, 1
push edx
mov dword [ebp + 0x10], eax
call fcn.010bae20
mov eax, dword [edi + 0x734]
cmp dword [ebx + 0x734], eax
je 0x115e0f2
push 0
xor ecx, ecx
push 0x80
test eax, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x26c]
push 3
setne cl
push 0
push 0
push 0xc0000000
push 0x100e764
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 0x115e0ef
cmp ebx, 0xffffffff
je 0x115e0ef
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
push 0
lea eax, [ebp + 8]
push eax
mov eax, dword [edx + 0x268]
push 0
push 0
push 0
push 0
push ecx
push ebx
call eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x1c8]
push ebx
call edx
mov ebx, dword [ebp + 0xc]
mov eax, dword [edi + 0x730]
cmp dword [ebx + 0x730], eax
je 0x115e107
push eax
push esi
call fcn.0109ab40
mov eax, dword [edi + 0x5c8]
xor eax, dword [ebx + 0x5c8]
test al, 4
je 0x115e13c
mov edi, dword [esi]
lea ecx, [ebp + 0xc]
push ecx
push 0
push esi
push 0x10ca570
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x115e13c
mov edx, dword [edi + 0x1c8]
push eax
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc