Function at 0x1158c80
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x1158e47
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x4c], edi
je 0x1158caa
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x829c], edi
jne 0x1158e25
mov esi, dword [ebx + 0x18]
mov ecx, dword [esi + 0x2a4]
xor edi, edi
call ecx
mov dword [ebp + 0x10], eax
cmp eax, 0xea60
ja 0x1158ce3
cmp dword [esi + 0x1e5ac], edi
jne 0x1158ce3
mov eax, dword [esi + 0x3550]
test eax, eax
je 0x1158e25
cmp dword [eax + 0x168], edi
jne 0x1158e25
cmp dword [esi + 0x8298], edi
je 0x1158cf7
cmp dword [esi + 0x82a8], edi
jne 0x1158e13
push 0
lea ebx, [esi + 0x8444]
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
cmp dword [esi + 0x82a8], edi
jne 0x1158d18
push esi
call fcn.010ea1f0
test eax, eax
je 0x1158d67
cmp dword [esi + 0x8298], edi
jne 0x1158e13
push esi
call fcn.0110e850
mov edx, dword [ebp + 0xc]
push edx
push esi
call fcn.011539c0
mov edi, eax
cmp edi, 1
jne 0x1158d46
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x1158d5e
mov eax, dword [esi]
push eax
call fcn.01123a10
test eax, eax
je 0x1158d5e
mov ecx, dword [ebp + 0xc]
push ecx
push esi
call fcn.011539c0
mov edi, eax
cmp edi, 1
je 0x1158e13
cmp dword [esi + 0x8450], 0
jne 0x1158e13
mov edx, dword [esi + 0x13d0c]
mov eax, dword [ebp + 0x10]
add edx, 0x927c0
cmp eax, edx
jbe 0x1158db6
mov ebx, 1
mov dword [esi + 0x13d0c], eax
mov dword [esi + 0x13d08], ebx
test ebx, ebx
je 0x1158db6
push esi
call fcn.0110e850
mov eax, dword [ebp + 0xc]
push eax
push esi
call fcn.011539c0
mov edi, eax
dec ebx
cmp edi, 1
jne 0x1158d98
jmp 0x1158e13
cmp edi, 1
je 0x1158e13
mov eax, dword [esi + 0x3550]
test eax, eax
je 0x1158dda
test dword [eax + 0x138], 0x20000000
jne 0x1158e13
cmp dword [eax + 0x270], 0
jne 0x1158e13
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp eax, 0x927c0
ja 0x1158df0
cmp dword [esi + 0x1d780], 0
jne 0x1158dfe
mov ebx, dword [ebp + 0xc]
push ebx
push esi
call fcn.01153fc0
mov edi, eax
jmp 0x1158e01
mov ebx, dword [ebp + 0xc]
cmp edi, 1
je 0x1158e13
mov ecx, dword [ebx + 0x14]
push 6
push 0
push 0
push ebx
push esi
call ecx
push 1
add esi, 0x829c
push esi
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x18]
cmp dword [edx + 0x8298], 0
je 0x1158ebd
pop edi
mov eax, 1
pop esi
mov dword [ebx + 0x184], eax
pop ebx
pop ebp
ret 0xc
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push 0xd
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1158ec6
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
push ecx
push 0
push esi
push 0x11589b0
push 0
mov dword [esi], edi
mov dword [esi + 4], eax
push 0
mov dword [edi + 0x19c], 1
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [edi + 0x194], eax
test eax, eax
je 0x1158ea7
mov eax, 1
mov dword [edi + 0x184], eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push esi
push 0
mov dword [edi + 0x184], 0
call ebx
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc