Function at 0x115d510
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 0x115d6d7
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x4c], edi
je 0x115d53a
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x829c], edi
jne 0x115d6b5
mov esi, dword [ebx + 0x18]
mov ecx, dword [esi + 0x2a4]
xor edi, edi
call ecx
mov dword [ebp + 0x10], eax
cmp eax, 0xea60
ja 0x115d573
cmp dword [esi + 0x1e5ac], edi
jne 0x115d573
mov eax, dword [esi + 0x3550]
test eax, eax
je 0x115d6b5
cmp dword [eax + 0x168], edi
jne 0x115d6b5
cmp dword [esi + 0x8298], edi
je 0x115d587
cmp dword [esi + 0x82a8], edi
jne 0x115d6a3
push 0
lea ebx, [esi + 0x8444]
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
cmp dword [esi + 0x82a8], edi
jne 0x115d5a8
push esi
call fcn.010ed300
test eax, eax
je 0x115d5f7
cmp dword [esi + 0x8298], edi
jne 0x115d6a3
push esi
call fcn.01112060
mov edx, dword [ebp + 0xc]
push edx
push esi
call fcn.011581f0
mov edi, eax
cmp edi, 1
jne 0x115d5d6
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x115d5ee
mov eax, dword [esi]
push eax
call fcn.01127610
test eax, eax
je 0x115d5ee
mov ecx, dword [ebp + 0xc]
push ecx
push esi
call fcn.011581f0
mov edi, eax
cmp edi, 1
je 0x115d6a3
cmp dword [esi + 0x8450], 0
jne 0x115d6a3
mov edx, dword [esi + 0x13d0c]
mov eax, dword [ebp + 0x10]
add edx, 0x927c0
cmp eax, edx
jbe 0x115d646
mov ebx, 1
mov dword [esi + 0x13d0c], eax
mov dword [esi + 0x13d08], ebx
test ebx, ebx
je 0x115d646
push esi
call fcn.01112060
mov eax, dword [ebp + 0xc]
push eax
push esi
call fcn.011581f0
mov edi, eax
dec ebx
cmp edi, 1
jne 0x115d628
jmp 0x115d6a3
cmp edi, 1
je 0x115d6a3
mov eax, dword [esi + 0x3550]
test eax, eax
je 0x115d66a
test dword [eax + 0x138], 0x20000000
jne 0x115d6a3
cmp dword [eax + 0x270], 0
jne 0x115d6a3
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp eax, 0x927c0
ja 0x115d680
cmp dword [esi + 0x1d780], 0
jne 0x115d68e
mov ebx, dword [ebp + 0xc]
push ebx
push esi
call fcn.011587f0
mov edi, eax
jmp 0x115d691
mov ebx, dword [ebp + 0xc]
cmp edi, 1
je 0x115d6a3
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 0x115d74d
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 0x115d756
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
push ecx
push 0
push esi
push 0x115d240
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 0x115d737
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