Function at 0x1159050
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x2c], eax
mov eax, dword [esi]
push 0x100216c
push 0x100c124
add eax, 0x3c86
xor edi, edi
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x30], esi
call fcn.01085230
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], ecx
cmp eax, edi
je 0x1159279
mov edx, dword [esi]
push ebx
push edi
push eax
push edx
xor ebx, ebx
call fcn.01120830
cmp eax, 0x40000000
jbe 0x11591ba
sub eax, 0x40000000
mov dword [ebp + 8], eax
je 0x1159126
inc eax
push eax
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ebx, eax
cmp ebx, edi
je 0x11591bd
mov ecx, dword [ebp - 0x28]
mov edi, dword [esi]
xor eax, eax
push eax
push 1
push eax
push 3
push 7
push connect
push ecx
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call fcn.01109500
test eax, eax
je 0x115912d
cmp eax, 0xffffffff
je 0x115912d
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 1
jmp 0x1159156
xor ebx, ebx
jmp 0x11591bd
mov eax, dword [ebp - 4]
push 0xc800000
push eax
lea ecx, [ebp - 0x18]
push ecx
push edi
call fcn.011206d0
test eax, eax
jne 0x1159156
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.010ee5f0
test eax, eax
je 0x11591ac
mov ecx, dword [ebp - 0x18]
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov edx, dword [ebp + 8]
mov ecx, dword [esi]
push edx
push ebx
lea eax, [ebp - 0x18]
push eax
push ecx
call fcn.010ee680
test eax, eax
je 0x11591a1
push 0xa
push ebx
call fcn.0102c270
test eax, eax
je 0x11591ac
inc eax
mov byte [eax], 0
sub eax, ebx
lea edx, [ebp - 0x18]
mov dword [ebp + 8], eax
mov eax, dword [esi]
push edx
push eax
call fcn.010ee760
jmp 0x11591bd
push ebx
call fcn.0102add0
xor ebx, ebx
mov dword [ebp + 8], ebx
mov eax, dword [esi]
lea edx, [ebp - 0x18]
push edx
push eax
call fcn.010ee760
jmp 0x11591bd
mov dword [ebp + 8], edi
mov edx, dword [ebp - 0x28]
mov eax, dword [esi]
push 0
push 1
lea ecx, [ebp - 4]
push ecx
push edx
push eax
call fcn.01120af0
mov edi, eax
test edi, edi
je 0x11591f8
push 0
lea eax, [ebp - 0x30]
push eax
push 0x1158f10
push edi
call fcn.0103c920
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
test ebx, ebx
je 0x115921f
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x115921f
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x115920e
mov eax, dword [eax]
jmp 0x1159210
xor eax, eax
mov edx, dword [esi]
push eax
push ecx
mov ecx, dword [ebp - 0x28]
push ebx
push ecx
push edx
call fcn.01109870
mov edi, 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]
pop ebx
test eax, eax
je 0x1159245
mov ecx, dword [edi + 0x1c8]
push eax
call ecx
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x115925c
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov edx, dword [esi]
push 0x1005d74
push 0x1005e20
push connect
push edx
call fcn.010bbbe0
push esi
call fcn.010c7b40
cmp dword [ebp - 0x20], 0
pop edi
pop esi
je 0x115928e
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x810], 1
mov esp, ebp
pop ebp
ret 0xc