Function at 0x1156ec0
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.010cbfb0
mov eax, dword [esi]
mov ecx, dword [eax + 0x2a4]
call ecx
mov edx, dword [0x117f07c]
mov dword [ebp - 4], eax
mov eax, dword [esi]
push edx
push eax
call fcn.010f3010
mov edi, eax
test edi, edi
je 0x1156f1d
mov eax, dword [esi]
push 0x10137ac
push edi
add eax, 0x12a0c
push 0
push eax
call fcn.01106c50
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 0x1156f91
push eax
call fcn.010cac40
test eax, eax
je 0x1156f58
mov edx, dword [esi]
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push 0x1022418
push 0x1014d6c
push connect
push edx
mov dword [ebp + 8], 1
call fcn.010b2fe0
mov ecx, dword [0x117f06c]
mov eax, dword [esi]
push ecx
push eax
call fcn.010f3010
mov edi, eax
test edi, edi
je 0x1156f91
mov edx, dword [esi]
push edi
add edx, 0x12a0c
push 0
push edx
call fcn.01106c50
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.01133c40
mov edi, eax
mov dword [ebp + 8], edi
test edi, edi
je 0x11570ce
cmp edi, 0xffffffff
je 0x11570ce
push ebx
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x113e850
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x11570c6
cmp ebx, 0xffffffff
je 0x11570c6
push esi
push 0x1156c70
call fcn.01028d40
push esi
push 0x1155730
mov dword [ebp - 0x4c], eax
call fcn.01028d40
push esi
push 0x1156840
mov dword [ebp - 0x48], eax
call fcn.01028d40
push esi
push 0x10ce0e0
mov dword [ebp - 0x44], eax
call fcn.01028d40
push esi
push 0x1115850
mov dword [ebp - 0x40], eax
call fcn.01028d40
push esi
push 0x10c01d0
mov dword [ebp - 0x3c], eax
call fcn.01028d40
push esi
push 0x111eca0
mov dword [ebp - 0x38], eax
call fcn.01028d40
push esi
push 0x10c05d0
mov dword [ebp - 0x34], eax
call fcn.01028d40
push esi
push 0x10cede0
mov edi, eax
call fcn.01028d40
mov ecx, dword [esi]
push 0
push ecx
mov dword [ebp - 0x30], eax
call fcn.0102b240
push esi
call fcn.01114b20
push 0
push 0
push 0
lea edx, [ebp - 0xc]
push edx
push 1
push 0xf50
push 0x1013388
push 0
push 0x1055260
push esi
call fcn.010ca630
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.01028dc0
push ebx
push esi
call fcn.0104a5e0
mov edi, dword [ebp + 8]
push edi
push esi
call fcn.0108f210
pop ebx
push esi
call fcn.01114b50
mov edx, dword [0x117f078]
mov eax, dword [esi]
push edx
push eax
call fcn.010f3010
mov edi, eax
test edi, edi
je 0x1157126
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.01106c50
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