Function at 0x100a5110
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10227a1d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x102d5080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov edx, dword [ecx]
mov esi, dword [ebp + 8]
mov edi, esi
mov eax, dword [ecx + 4]
sub edi, edx
sub eax, edx
sar edi, 3
sar eax, 3
cmp eax, 0x1fffffff
je 0x100a530f
mov ecx, dword [ecx + 8]
lea ebx, [eax + 1]
sub ecx, edx
mov dword [ebp - 0x24], ebx
sar ecx, 3
mov eax, 0x1fffffff
mov edx, ecx
shr edx, 1
sub eax, edx
cmp ecx, eax
ja 0x100a530a
lea eax, [edx + ecx]
mov ecx, ebx
cmp eax, ebx
cmovae ecx, eax
mov dword [ebp + 8], ecx
cmp ecx, 0x1fffffff
ja 0x100a530a
lea eax, [ecx*8]
mov dword [ebp - 0x1c], ecx
cmp eax, 0x1000
jb 0x100a51cf
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x100a530a
push ecx
call fcn.101f36d1
add esp, 4
test eax, eax
je 0x100a5314
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x100a51f1
test eax, eax
je 0x100a51e9
push eax
call fcn.101f36d1
mov ebx, eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov dword [ebp - 0x1c], eax
jmp 0x100a51f1
xor ebx, ebx
mov dword [ebp + 8], ecx
mov dword [ebp - 0x1c], ecx
lea edi, [ebx + edi*8]
mov dword [ebp - 0x20], ebx
lea eax, [edi + 8]
mov dword [ebp - 0x18], edi
push 8
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
call fcn.101f36d1
mov ecx, dword [ebp + 0x10]
add esp, 4
mov dword [ebp + 0x10], eax
mov ecx, dword [ecx]
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov dword [eax + 4], ecx
add edi, 4
mov byte [ebp - 4], 1
push edi
push 0
push eax
push 0x100a55f0
push 0
push 0
call fcn.101ff589
mov ecx, dword [ebp - 0x18]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x100a5319
mov edx, dword [ebp - 0x14]
mov edi, dword [edx + 4]
mov edx, dword [edx]
cmp esi, edi
jne 0x100a5286
mov esi, ebx
cmp edx, edi
je 0x100a52e4
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 0x100a5262
jmp 0x100a52e4
mov edi, ebx
cmp edx, esi
je 0x100a52b5
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 0x100a5290
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov edi, dword [edi + 4]
cmp esi, edi
je 0x100a52e4
lea edx, [ecx + 8]
sub edx, esi
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [edx + esi], eax
mov dword [edx + esi + 4], ecx
add esi, 8
cmp esi, edi
jne 0x100a52c4
push dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x24]
push ebx
call fcn.100a5050
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.1000e0a0
call fcn.1002ab80
call fcn.101f90dd
push 6
mov dword [edi], 0
call fcn.101f1d57
push ecx
mov ecx, dword [ebp - 0x28]
mov edx, ecx
call fcn.1002c920
add esp, 4
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.1002b3a0
push 0
push 0
call fcn.101f6065
int3