Function at 0x10011af0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003cc5d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10051060]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov eax, esi
mov ecx, dword [0x10055690]
sub eax, ecx
sar eax, 3
mov dword [ebp - 0x1c], eax
mov eax, dword [0x10055694]
sub eax, ecx
sar eax, 3
cmp eax, 0x1fffffff
je 0x10011d6f
mov edx, dword [0x10055698]
lea ebx, [eax + 1]
sub edx, ecx
mov dword [ebp - 0x2c], ebx
sar edx, 3
mov eax, 0x1fffffff
mov ecx, edx
shr ecx, 1
sub eax, ecx
cmp edx, eax
ja 0x10011d6a
lea eax, [ecx + edx]
mov edi, ebx
cmp eax, ebx
cmovae edi, eax
cmp edi, 0x1fffffff
ja 0x10011d6a
lea ecx, [edi*8]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], ecx
cmp ecx, 0x1000
jb 0x10011bbc
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x10011d6a
push eax
call fcn.1001c0a2
add esp, 4
test eax, eax
je 0x10011d79
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x10011bd2
test ecx, ecx
je 0x10011bcd
push ecx
call fcn.1001c0a2
add esp, 4
mov ebx, eax
jmp 0x10011bcf
xor ebx, ebx
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x1c]
push 4
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0
lea edi, [ebx + eax*8]
lea eax, [edi + 8]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], eax
call fcn.1001c0a2
mov ecx, dword [ebp + 0xc]
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ecx]
mov dword [eax], ecx
add edi, 4
mov byte [ebp - 4], 1
push edi
push 0
push eax
push 0x10016d00
push 0
push 0
call fcn.10024666
mov ecx, dword [ebp - 0x1c]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x10011d7e
mov edi, dword [0x10055694]
mov edx, dword [0x10055690]
cmp esi, edi
jne 0x10011c66
mov esi, ebx
cmp edx, edi
je 0x10011ce0
mov eax, dword [edx]
lea esi, [esi + 8]
mov ecx, dword [edx + 4]
mov dword [edx], 0
mov dword [edx + 4], 0
add edx, 8
mov dword [esi - 8], eax
mov dword [esi - 4], ecx
cmp edx, edi
jne 0x10011c42
jmp 0x10011cd0
cmp edx, esi
je 0x10011ca1
mov edi, ebx
nop dword [eax]
mov eax, dword [edx]
lea edi, [edi + 8]
mov ecx, dword [edx + 4]
mov dword [edx], 0
mov dword [edx + 4], 0
add edx, 8
mov dword [edi - 8], eax
mov dword [edi - 4], ecx
cmp edx, esi
jne 0x10011c70
mov edi, dword [0x10055694]
mov edx, dword [0x10055690]
mov ecx, dword [ebp - 0x1c]
cmp esi, edi
je 0x10011ce0
lea edx, [ecx + 8]
sub edx, esi
nop word [eax + eax]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + edx], eax
mov dword [esi + edx + 4], ecx
add esi, 8
cmp esi, edi
jne 0x10011cb0
mov edx, dword [0x10055690]
mov edi, dword [0x10055694]
nop dword [eax]
test edx, edx
je 0x10011d2c
mov eax, edx
cmp eax, edi
je 0x10011cfd
nop word [eax + eax]
cmp dword [eax + 4], 0
jne 0x10011d74
add eax, 8
cmp eax, edi
jne 0x10011cf0
mov ecx, dword [0x10055698]
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x10011d22
mov esi, dword [edx - 4]
add ecx, 0x23
sub edx, esi
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x10011d79
mov edx, esi
push ecx
push edx
call fcn.1001c501
add esp, 8
mov eax, dword [ebp - 0x2c]
mov dword [0x10055690], ebx
lea ecx, [ebx + eax*8]
mov eax, dword [ebp - 0x1c]
mov dword [0x10055694], ecx
mov ecx, dword [ebp - 0x30]
add ecx, ebx
mov dword [0x10055698], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1001bcac
mov esp, ebp
pop ebp
ret 8
call fcn.10001430
call fcn.1000b1e0
call fcn.1002663d
call fcn.100276b4
push 6
mov dword [edi], 0
call fcn.1001a881
push ecx
mov ecx, dword [ebp - 0x28]
mov edx, ecx
call fcn.1000f890
add esp, 4
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.1000a640
push 0
push 0
call fcn.1001de2e
int3