Function at 0x1159450
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.010d6800
test dword [esi + 0x2b660], 0x200
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jne 0x115962d
mov eax, dword [esi + 8]
cmp dword [eax + 0xa60], 0
jne 0x115962d
test byte [esi + 0x2b734], 1
jne 0x115962d
mov edi, dword [ebp + 0xc]
test dword [edi + 0x470], 0x1000
jne 0x115962d
push 0x1013590
push 0x100f708
call fcn.01029980
test eax, eax
jne 0x1159516
push 0x102169c
push 0x100f708
call fcn.01029980
test eax, eax
jne 0x1159516
push 0x1022508
push 0x100f708
call fcn.01029980
test eax, eax
jne 0x1159516
push 0x1013588
push 0x100f708
call fcn.01029980
test eax, eax
jne 0x1159516
push 0x1022500
push 0x100f708
call fcn.01029980
test eax, eax
jne 0x1159516
test dword [edi + 0x470], 0x80000
je 0x115962d
push 0x10224f8
push 0x100f708
call fcn.01029980
test eax, eax
jne 0x115962d
push 0x10224f0
push 0x100f708
call fcn.01029980
test eax, eax
jne 0x115962d
push 0x10224e8
push 0x100f708
call fcn.01029980
test eax, eax
jne 0x115962d
push 0x100f720
push 0x100f708
call fcn.01029980
test eax, eax
jne 0x115962d
push 0x10224e0
push 0x100f708
call fcn.01029980
test eax, eax
jne 0x115962d
push 0x10224d8
push 0x100f708
call fcn.01029980
test eax, eax
jne 0x115962d
push 0x10224d4
push 0x100f708
call fcn.01029980
test eax, eax
jne 0x115962d
push 0x10224cc
push 0x100f708
call fcn.01029980
test eax, eax
jne 0x115962d
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
push 0x10224bc
push 0x1014d6c
push connect
push edx
call fcn.010b3630
test eax, eax
jne 0x115962d
cmp dword [esi + 0x2d49c], eax
je 0x115962d
push 1
lea eax, [esi + 0x2d4a4]
push eax
call ebx
push esi
push 0x113a5e0
call fcn.01028d40
mov edi, eax
test edi, edi
je 0x115961d
cmp edi, 0xffffffff
je 0x115961d
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
call fcn.01116e80
push 0
push 1
push esi
call fcn.010f9df0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x470]
test eax, 0x800
je 0x11596ab
push 1
lea edx, [esi + 0x2d404]
push edx
call ebx
mov eax, dword [esi + 8]
push 2
push eax
xor edi, edi
call fcn.010d74f0
test eax, eax
jne 0x115966d
push esi
call fcn.010f5670
cmp eax, 2
je 0x115966d
test byte [esi + 0x2b660], 0x10
je 0x1159672
mov edi, 0x10
push 2
push 0
push 0x106b110
push edi
push 0x4001
push 0
push esi
call fcn.01137700
push 1
lea ecx, [esi + 0x2d4a8]
push ecx
call ebx
test eax, eax
jne 0x115970f
push esi
push 0x112b1c0
push esi
call fcn.0106b830
pop edi
pop esi
pop ebx
pop ebp
ret 8
test al, al
jns 0x11596e0
lea edx, [ebp + 8]
push edx
push 0
push esi
push 0x1158930
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edi, eax
test edi, edi
je 0x11596e0
cmp edi, 0xffffffff
je 0x11596e0
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0xc]
test dword [eax + 0x470], 0x200
jne 0x1159709
cmp dword [eax + 0x198], 0
jne 0x1159709
push 0
push 3
push esi
call fcn.011378f0
pop edi
pop esi
pop ebx
pop ebp
ret 8
push esi
call fcn.0113fb10
pop edi
pop esi
pop ebx
pop ebp
ret 8