Function at 0x115b720
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.010cee40
mov eax, dword [esi]
mov ecx, dword [eax + 0x2a4]
call ecx
mov edx, dword [0x118607c]
mov dword [ebp - 4], eax
mov eax, dword [esi]
push edx
push eax
call fcn.010f6320
mov edi, eax
test edi, edi
je 0x115b77d
mov eax, dword [esi]
push 0x101380c
push edi
add eax, 0x12a0c
push 0
push eax
call fcn.0110a0f0
add esp, 0x10
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov eax, dword [esi]
cmp dword [eax + 0x1e5d4], 0
jne 0x115b7f1
push eax
call fcn.010cdad0
test eax, eax
je 0x115b7b8
mov edx, dword [esi]
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push 0x10226d8
push 0x1014dcc
push connect
push edx
mov dword [ebp + 8], 1
call fcn.010b52d0
mov ecx, dword [0x118606c]
mov eax, dword [esi]
push ecx
push eax
call fcn.010f6320
mov edi, eax
test edi, edi
je 0x115b7f1
mov edx, dword [esi]
push edi
add edx, 0x12a0c
push 0
push edx
call fcn.0110a0f0
add esp, 0xc
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
push esi
call fcn.01137820
mov edi, eax
mov dword [ebp + 8], edi
test edi, edi
je 0x115b92e
cmp edi, 0xffffffff
je 0x115b92e
push ebx
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x1142dd0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x115b926
cmp ebx, 0xffffffff
je 0x115b926
push esi
push 0x115b4d0
call fcn.0102a320
push esi
push 0x1159f60
mov dword [ebp - 0x4c], eax
call fcn.0102a320
push esi
push 0x115b0a0
mov dword [ebp - 0x48], eax
call fcn.0102a320
push esi
push 0x10d1000
mov dword [ebp - 0x44], eax
call fcn.0102a320
push esi
push 0x11193a0
mov dword [ebp - 0x40], eax
call fcn.0102a320
push esi
push 0x10c2da0
mov dword [ebp - 0x3c], eax
call fcn.0102a320
push esi
push 0x1122880
mov dword [ebp - 0x38], eax
call fcn.0102a320
push esi
push 0x10c31a0
mov dword [ebp - 0x34], eax
call fcn.0102a320
push esi
push 0x10d1d00
mov edi, eax
call fcn.0102a320
mov ecx, dword [esi]
push 0
push ecx
mov dword [ebp - 0x30], eax
call fcn.0102c820
push esi
call fcn.01118670
push 0
push 0
push 0
lea edx, [ebp - 0xc]
push edx
push 1
push 0xf50
push 0x1013260
push 0
push 0x1056780
push esi
call fcn.010cd4c0
mov eax, dword [esi]
mov edx, dword [eax + 0x484]
push 0xffffffffffffffff
push 1
lea ecx, [ebp - 0x4c]
push ecx
push 8
call edx
push 0x7d0
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esi]
push 8
lea eax, [ebp - 0x4c]
push eax
push ecx
call fcn.0102a3a0
push ebx
push esi
call fcn.0104bac0
mov edi, dword [ebp + 8]
push edi
push esi
call fcn.01090b40
pop ebx
push esi
call fcn.011186a0
mov edx, dword [0x1186078]
mov eax, dword [esi]
push edx
push eax
call fcn.010f6320
mov edi, eax
test edi, edi
je 0x115b986
mov eax, dword [esi]
mov ecx, dword [eax + 0x2a4]
call ecx
mov edx, eax
sub edx, dword [ebp - 4]
mov eax, 0x45e7b273
mul edx
mov eax, dword [esi]
shr edx, 0xe
push edx
push edi
add eax, 0x12a0c
push 0
push eax
call fcn.0110a0f0
add esp, 0x10
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4