Function at 0x1156f00
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
push 0x100215c
push 0x100bfcc
add eax, 0x3c7e
xor edi, edi
push eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x18], esi
call fcn.010842c0
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x1157116
mov ecx, dword [esi]
push ebx
push edi
push eax
push ecx
xor ebx, ebx
call fcn.0111eaa0
cmp eax, 0x40000000
jbe 0x1157061
sub eax, 0x40000000
mov dword [ebp + 8], eax
je 0x1156fcd
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 0x1157064
mov ecx, dword [ebp - 0x10]
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 - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
call fcn.01107ae0
test eax, eax
je 0x1156fd4
cmp eax, 0xffffffff
je 0x1156fd4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 1
jmp 0x1156ffd
xor ebx, ebx
jmp 0x1157064
mov edx, dword [ebp - 4]
push 0xc800000
push edx
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.0111e940
test eax, eax
jne 0x1156ffd
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x2c]
push edx
push edi
call fcn.010ed010
test eax, eax
je 0x1157053
mov eax, dword [ebp - 0x2c]
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
push ecx
push ebx
lea edx, [ebp - 0x2c]
push edx
push eax
call fcn.010ed0a0
test eax, eax
je 0x1157048
push 0xa
push ebx
call fcn.0102bb10
test eax, eax
je 0x1157053
inc eax
mov byte [eax], 0
mov edx, dword [esi]
lea ecx, [ebp - 0x2c]
push ecx
sub eax, ebx
push edx
mov dword [ebp + 8], eax
call fcn.010ed180
jmp 0x1157064
push ebx
call fcn.01083050
xor ebx, ebx
mov dword [ebp + 8], ebx
mov edx, dword [esi]
lea ecx, [ebp - 0x2c]
push ecx
push edx
call fcn.010ed180
jmp 0x1157064
mov dword [ebp + 8], edi
mov edx, dword [ebp - 0x10]
mov eax, dword [esi]
push 0
push 1
lea ecx, [ebp - 4]
push ecx
push edx
push eax
call fcn.0111ed60
mov edi, eax
test edi, edi
je 0x115709f
push 0
lea eax, [ebp - 0x18]
push eax
push 0x1156dc0
push edi
call fcn.0103c160
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
test ebx, ebx
je 0x11570bc
mov eax, dword [ebp + 8]
test eax, eax
je 0x11570bc
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi]
push 1
push 1
push eax
push ebx
push ecx
push edx
call fcn.01107cc0
mov edi, dword [esi]
lea eax, [ebp + 8]
push eax
push 0
push esi
push fcn.01154a20
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
pop ebx
test eax, eax
je 0x11570e2
mov ecx, dword [edi + 0x1c0]
push eax
call ecx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x11570f9
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 0x1004ccc
push 0x1004d78
push connect
push edx
call fcn.010bab70
push esi
call fcn.010c66a0
cmp dword [ebp - 8], 0
pop edi
pop esi
je 0x115712b
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x810], 1
mov esp, ebp
pop ebp
ret 8