Function at 0x11636d0
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 0x1163897
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x4c], edi
je 0x11636fa
mov eax, dword [ebx + 0x18]
cmp dword [eax + 0x8be4], edi
jne 0x1163875
mov esi, dword [ebx + 0x18]
mov ecx, dword [esi + 0x2a4]
xor edi, edi
call ecx
mov dword [ebp + 0x10], eax
cmp eax, 0xea60
ja 0x1163733
cmp dword [esi + 0x1ee6c], edi
jne 0x1163733
mov eax, dword [esi + 0x35a8]
test eax, eax
je 0x1163875
cmp dword [eax + 0x168], edi
jne 0x1163875
cmp dword [esi + 0x8be0], edi
je 0x1163747
cmp dword [esi + 0x8bf0], edi
jne 0x1163863
push 0
lea ebx, [esi + 0x8d8c]
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
cmp dword [esi + 0x8bf0], edi
jne 0x1163768
push esi
call fcn.010f1330
test eax, eax
je 0x11637b7
cmp dword [esi + 0x8be0], edi
jne 0x1163863
push esi
call fcn.01115ac0
mov edx, dword [ebp + 0xc]
push edx
push esi
call fcn.0115e3c0
mov edi, eax
cmp edi, 1
jne 0x1163796
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x11637ae
mov eax, dword [esi]
push eax
call fcn.01127180
test eax, eax
je 0x11637ae
mov ecx, dword [ebp + 0xc]
push ecx
push esi
call fcn.0115e3c0
mov edi, eax
cmp edi, 1
je 0x1163863
cmp dword [esi + 0x8d98], 0
jne 0x1163863
mov edx, dword [esi + 0x14654]
mov eax, dword [ebp + 0x10]
add edx, 0x927c0
cmp eax, edx
jbe 0x1163806
mov ebx, 1
mov dword [esi + 0x14654], eax
mov dword [esi + 0x14650], ebx
test ebx, ebx
je 0x1163806
push esi
call fcn.01115ac0
mov eax, dword [ebp + 0xc]
push eax
push esi
call fcn.0115e3c0
mov edi, eax
dec ebx
cmp edi, 1
jne 0x11637e8
jmp 0x1163863
cmp edi, 1
je 0x1163863
mov eax, dword [esi + 0x35a8]
test eax, eax
je 0x116382a
test dword [eax + 0x138], 0x20000000
jne 0x1163863
cmp dword [eax + 0x270], 0
jne 0x1163863
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp eax, 0x927c0
ja 0x1163840
cmp dword [esi + 0x1e040], 0
jne 0x116384e
mov ebx, dword [ebp + 0xc]
push ebx
push esi
call fcn.0115e9c0
mov edi, eax
jmp 0x1163851
mov ebx, dword [ebp + 0xc]
cmp edi, 1
je 0x1163863
mov ecx, dword [ebx + 0x14]
push 6
push 0
push 0
push ebx
push esi
call ecx
push 1
add esi, 0x8be4
push esi
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x18]
cmp dword [edx + 0x8be0], 0
je 0x116390d
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 0x1163916
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
push ecx
push 0
push esi
push 0x1163400
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 0x11638f7
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