Function at 0x11658e0
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 0x1165aa7
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x4c], edi
je 0x116590a
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x8bec], edi
jne 0x1165a85
mov esi, dword [ebx + 0x18]
mov ecx, dword [esi + 0x2b0]
xor edi, edi
call ecx
mov dword [ebp + 0x10], eax
cmp eax, 0xea60
ja 0x1165943
cmp dword [esi + 0x1f278], edi
jne 0x1165943
mov eax, dword [esi + 0x35b0]
test eax, eax
je 0x1165a85
cmp dword [eax + 0x168], edi
jne 0x1165a85
cmp dword [esi + 0x8be8], edi
je 0x1165957
cmp dword [esi + 0x8bf8], edi
jne 0x1165a73
push 0
lea ebx, [esi + 0x8d94]
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
cmp dword [esi + 0x8bf8], edi
jne 0x1165978
push esi
call fcn.010f2ae0
test eax, eax
je 0x11659c7
cmp dword [esi + 0x8be8], edi
jne 0x1165a73
push esi
call fcn.011177b0
mov edx, dword [ebp + 0xc]
push edx
push esi
call fcn.011605c0
mov edi, eax
cmp edi, 1
jne 0x11659a6
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x11659be
mov eax, dword [esi]
push eax
call fcn.01129220
test eax, eax
je 0x11659be
mov ecx, dword [ebp + 0xc]
push ecx
push esi
call fcn.011605c0
mov edi, eax
cmp edi, 1
je 0x1165a73
cmp dword [esi + 0x8da0], 0
jne 0x1165a73
mov edx, dword [esi + 0x1465c]
mov eax, dword [ebp + 0x10]
add edx, 0x927c0
cmp eax, edx
jbe 0x1165a16
mov ebx, 1
mov dword [esi + 0x1465c], eax
mov dword [esi + 0x14658], ebx
test ebx, ebx
je 0x1165a16
push esi
call fcn.011177b0
mov eax, dword [ebp + 0xc]
push eax
push esi
call fcn.011605c0
mov edi, eax
dec ebx
cmp edi, 1
jne 0x11659f8
jmp 0x1165a73
cmp edi, 1
je 0x1165a73
mov eax, dword [esi + 0x35b0]
test eax, eax
je 0x1165a3a
test dword [eax + 0x138], 0x20000000
jne 0x1165a73
cmp dword [eax + 0x270], 0
jne 0x1165a73
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp eax, 0x927c0
ja 0x1165a50
cmp dword [esi + 0x1e048], 0
jne 0x1165a5e
mov ebx, dword [ebp + 0xc]
push ebx
push esi
call fcn.01160bc0
mov edi, eax
jmp 0x1165a61
mov ebx, dword [ebp + 0xc]
cmp edi, 1
je 0x1165a73
mov ecx, dword [ebx + 0x14]
push 6
push 0
push 0
push ebx
push esi
call ecx
push 1
add esi, 0x8bec
push esi
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x18]
cmp dword [edx + 0x8be8], 0
je 0x1165b1d
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 0x1165b26
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
push ecx
push 0
push esi
push 0x1165610
push 0
mov dword [esi], edi
mov dword [esi + 4], eax
push 0
mov dword [edi + 0x1a0], 1
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [edi + 0x198], eax
test eax, eax
je 0x1165b07
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