Function at 0x115ba50
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 0x115ba92
sub edx, 4
add eax, 4
cmp edx, 4
jae 0x115ba72
push edi
push ebx
call fcn.0104e7c0
test eax, eax
je 0x115bad3
push edi
push esi
call fcn.0110ea10
lea ebx, [esi + 0xa0c]
mov dword [ebp + 0x10], 7
mov eax, dword [ebx]
test eax, eax
je 0x115bac7
mov eax, dword [eax + 8]
cmp dword [eax + 0x1c], 0
je 0x115bac7
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 0x115baa6
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x35a8]
cmp dword [edx + 0x78], 0
je 0x115bb6d
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 0x115bb09
push eax
push edi
push esi
call fcn.01126280
mov eax, dword [edi + 0x154]
cmp dword [ebx + 0x154], eax
je 0x115bb20
push ebx
push edi
push eax
push esi
call fcn.01125ab0
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 0x115be2a
mov ecx, dword [esi]
push ecx
call fcn.010d1d70
test eax, eax
jne 0x115bb6a
mov eax, dword [esi]
cmp dword [eax + 0x8aec], 0x1771
jb 0x115be1e
push 0
push ebx
push esi
call fcn.010d8a10
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebx + 0xcf0]
xor edx, dword [edi + 0xcf0]
test edx, 0x100
je 0x115bbb8
test dword [edi + 0xcf0], 0x100
je 0x115bbb8
mov eax, dword [esi]
lea ecx, [ebp + 8]
push ecx
push 0
push esi
push 0x1159ed0
push 0
push 0
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x115bbb8
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 0x115bbe0
test dword [edi + 0xc8], 0x2000000
je 0x115bbe0
push 0
push esi
call fcn.0114e640
mov edx, dword [ebx + 0xc8]
xor edx, dword [edi + 0xc8]
test edx, 0x10000000
je 0x115bc06
test dword [edi + 0xc8], 0x10000000
je 0x115bc06
push esi
call fcn.01146b20
mov eax, dword [ebx + 0xcf4]
cmp eax, dword [edi + 0xcf4]
je 0x115bc4e
mov ecx, dword [esi]
add ecx, 0x22b0
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.01154a20
push 0
push 0
mov dword [ebp + 0x10], edx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x115bc4e
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 0x115bc93
mov ecx, dword [esi]
add ecx, 0x22b0
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.01154a20
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x115bc90
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 0x115bcb0
mov edx, dword [esi]
add edx, 0x22b0
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 0x115bce3
push 0
push 0
push eax
mov eax, dword [esi]
push 0x1001e00
lea edx, [edi + 0x43c]
push edx
push 0
push 1
push eax
call fcn.010c8d60
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 0x115bd07
push eax
push edi
push esi
call fcn.010c9010
mov edx, dword [ebx + 0xbf0]
cmp edx, dword [edi + 0xbf0]
je 0x115bd64
mov eax, dword [esi]
push 1
add eax, 0x91c0
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x115bd64
mov eax, dword [esi]
mov dword [ebp + 0x10], eax
mov eax, dword [eax + 0x35a8]
test eax, eax
je 0x115bd64
cmp dword [eax + 0x78], 0
je 0x115bd64
lea ecx, [ebp + 8]
push ecx
push 0
push esi
push 0x11515a0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x115bd64
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 0x115bda7
push 4
lea edx, [ebp + 0x10]
push edx
neg eax
push 4
sbb eax, eax
push 0x101894c
and eax, 6
push 0x10188f0
mov dword [ebp + 0x10], eax
mov eax, dword [esi]
push connect
push eax
call fcn.010b9db0
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 0x115bde5
push 4
lea edx, [ebp + 0x10]
push edx
push 4
push 0x101895c
push 0x1015934
mov dword [ebp + 0x10], eax
mov eax, dword [esi]
push connect
push eax
call fcn.010b9db0
mov eax, dword [edi + 0x6a8]
cmp dword [ebx + 0x6a8], eax
je 0x115bdfc
push ebx
push edi
push eax
push esi
call fcn.01116cd0
mov ecx, dword [ebx + 0xc90]
xor ecx, dword [edi + 0xc90]
test cl, 0x20
je 0x115be63
test byte [edi + 0xc90], 0x20
je 0x115be31
push esi
call fcn.01116ef0
jmp 0x115be63
push ebx
push eax
call fcn.0110e700
jmp 0x115bb6a
mov ebx, edx
jmp 0x115bb6d
mov edx, dword [esi]
mov ebx, dword [edx + 0x1f1b0]
test ebx, ebx
je 0x115be60
cmp ebx, 0xffffffff
je 0x115be60
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 + 0x1f1b0], 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [edi + 0x73c]
cmp dword [ebx + 0x73c], eax
je 0x115be7c
cmp eax, 3
jne 0x115be7c
push esi
call fcn.01126c90
mov ecx, dword [ebx + 0xcc4]
cmp ecx, dword [edi + 0xcc4]
je 0x115bec1
mov edx, dword [esi]
add edx, 0x22b0
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.01154a20
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x115bebe
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 0x115bf00
mov eax, dword [edi + 0x1b8]
mov edx, dword [esi]
push 4
lea ecx, [ebp + 0x10]
push ecx
push 4
push 0x10188dc
push 0x1015934
shr eax, 2
push connect
and eax, 1
push edx
mov dword [ebp + 0x10], eax
call fcn.010b9db0
mov eax, dword [edi + 0x734]
cmp dword [ebx + 0x734], eax
je 0x115bf82
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 0x100e60c
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 0x115bf7f
cmp ebx, 0xffffffff
je 0x115bf7f
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 0x115bf97
push eax
push esi
call fcn.01099be0
mov eax, dword [edi + 0x5c8]
xor eax, dword [ebx + 0x5c8]
test al, 4
je 0x115bfcc
mov edi, dword [esi]
lea ecx, [ebp + 0xc]
push ecx
push 0
push esi
push 0x10c90d0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x115bfcc
mov edx, dword [edi + 0x1c0]
push eax
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc