Function at 0x11654b0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ebx
cmp ebx, edi
je 0x11658ae
mov eax, dword [ebx + 4]
push eax
call fcn.01163ab0
cmp dword [esi + 8], edi
je 0x1165523
mov ecx, dword [ebx]
push 1
add ecx, 0x1331c
push ecx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push ebx
call fcn.01127f20
test eax, eax
je 0x11658ae
push ebx
call fcn.0112ac40
test eax, eax
je 0x11658ae
mov eax, dword [ebx]
lea edx, [eax + 0x13324]
push edx
push eax
call fcn.0111f3b0
mov dword [ebp - 0xc], 1
jmp 0x1165593
push ebx
call fcn.0112abf0
test eax, eax
je 0x11658ae
push ebx
call fcn.010fbbe0
test eax, eax
je 0x11658ae
mov eax, dword [ebx]
mov ecx, dword [eax + 0x35a8]
push 0x14
push 0x102391c
add ecx, 0x1cc
push ecx
call fcn.0102bd00
mov edx, dword [ebx]
mov eax, dword [edx + 0x35a8]
push eax
push ebx
call fcn.0109e5c0
mov eax, dword [ebx]
mov ecx, dword [eax + 0x35a8]
push ecx
push eax
call fcn.010da4a0
mov edx, dword [ebx]
mov dword [edx + 0x1331c], 1
mov eax, dword [ebx]
mov eax, dword [eax + 0x35a8]
and dword [eax + 0x228], 0xffffffef
mov esi, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [esi + 0x2a4]
mov dword [ebp - 4], ecx
call edx
mov dword [ebp - 8], eax
cmp dword [esi + 0x8be0], edi
je 0x11655ba
cmp dword [esi + 0x8bf0], edi
jne 0x11656e1
lea eax, [esi + 0x8d8c]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
cmp dword [esi + 0x8bf0], edi
jne 0x11655db
push esi
call fcn.010f1330
test eax, eax
je 0x1165630
cmp dword [esi + 0x8be0], edi
jne 0x11656e1
push esi
call fcn.01115ac0
mov eax, dword [ebp - 4]
push eax
push esi
call fcn.0115e3c0
mov edi, eax
cmp edi, 1
jne 0x116560f
push 0
lea eax, [esi + 0x8d8c]
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x1165627
mov ecx, dword [esi]
push ecx
call fcn.01127180
test eax, eax
je 0x1165627
mov edx, dword [ebp - 4]
push edx
push esi
call fcn.0115e3c0
mov edi, eax
cmp edi, 1
je 0x11656e1
cmp dword [esi + 0x8d98], 0
jne 0x11656e1
mov ecx, dword [esi + 0x14654]
mov eax, dword [ebp - 8]
add ecx, 0x927c0
cmp eax, ecx
jbe 0x1165686
mov dword [esi + 0x14654], eax
mov eax, 1
mov dword [esi + 0x14650], eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1165686
push esi
call fcn.01115ac0
mov edx, dword [ebp - 4]
push edx
push esi
call fcn.0115e3c0
dec dword [ebp - 8]
mov edi, eax
cmp edi, 1
jne 0x1165664
jmp 0x11656e1
cmp edi, 1
je 0x11656e1
mov eax, dword [esi + 0x35a8]
test eax, eax
je 0x11656aa
test dword [eax + 0x138], 0x20000000
jne 0x11656e1
cmp dword [eax + 0x270], 0
jne 0x11656e1
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp eax, 0x927c0
ja 0x11656c0
cmp dword [esi + 0x1e040], 0
jne 0x11656cc
mov eax, dword [ebp - 4]
push eax
push esi
call fcn.0115e9c0
mov edi, eax
cmp edi, 1
je 0x11656e1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
push 6
push 0
push 0
push eax
push esi
call ecx
push 1
add esi, 0x8be4
push esi
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
mov edi, dword [ebp + 8]
cmp dword [edi + 8], 0
jne 0x1165725
mov edx, dword [edi + 0x30968]
mov eax, dword [edx + 0x2b594]
cmp dword [eax + 0x440], 0
jne 0x1165725
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x35a8]
cmp dword [edx + 0x924], 0
je 0x1165725
push edi
call fcn.011143f0
mov eax, dword [ebx]
push 0
push 0
push eax
call fcn.01109000
mov esi, eax
test esi, esi
je 0x1165883
push 2
mov dword [edi + 0x3095c], esi
push 0
push esi
mov dword [esi + 0x494], edi
mov dword [esi + 0x490], 0x107f010
mov dword [esi + 0x434], 1
call fcn.01041990
lea ecx, [ebp - 8]
push ecx
push 0
push esi
push 0x1159570
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edi, eax
test edi, edi
je 0x11657f6
cmp edi, 0xffffffff
je 0x11657f6
mov ebx, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push 0x4e20
push edi
call ebx
cmp eax, 0x102
jne 0x11657ec
push 1
lea edx, [esi + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 0x9c40
push edi
call ebx
cmp eax, 0x102
jne 0x11657ec
push 0x7530
push edi
mov dword [esi + 0x440], 1
call ebx
cmp eax, 0x102
jne 0x11657ec
cmp dword [esi + 0xa0], 0
je 0x11657e0
push 0x7530
push edi
call ebx
push 0xffffffffffffffff
push edi
mov dword [esi + 0x10], 1
call ebx
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ebx, dword [ebp - 0x10]
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [esi + 0x49c]
mov edi, dword [ebp + 8]
mov dword [edi + 0x30398], eax
mov ecx, dword [esi + 0x480]
mov dword [edi + 0x3039c], ecx
mov edx, dword [esi + 0x484]
mov dword [edi + 0x303a0], edx
mov eax, dword [esi + 0x410]
mov dword [edi + 0x30428], eax
mov ecx, dword [esi + 0xb4]
push 1
lea edx, [edi + 0x30960]
mov dword [edi + 0x3042c], ecx
push edx
mov dword [esi + 0x49c], 0
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
cmp dword [edi + 0x30964], 0
je 0x1165873
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [edi + 0x30964], 0
jne 0x1165862
push esi
call fcn.010896b0
mov dword [edi + 0x3095c], 0
cmp dword [ebp - 0xc], 0
je 0x11658ae
push 0
push ebx
call fcn.01099f90
mov eax, dword [ebx]
mov dword [eax + 0x35a8], 0
mov ebx, dword [ebx]
mov ecx, dword [ebx + 0x3590]
push 0
push ecx
push ebx
call fcn.010999e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4