Function at 0x10012080
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100db07a
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x10121b54]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], 0
cmp dword [esi + 0x200b4], 0
mov dword [ebp - 4], 3
jne 0x100120e9
push 0
push 0
push esi
push 0x10009e50
push 0
push 0
call fcn.100b8963
add esp, 0x18
mov dword [esi + 0x200b4], eax
push 0x14
call fcn.1008ef00
mov edi, eax
add esp, 4
mov dword [ebp - 0x40], edi
mov byte [ebp - 4], 4
test edi, edi
je 0x10012137
sub esp, 0x18
lea eax, [ebp + 0x58]
mov ecx, esp
mov dword [ebp - 0x4c], esp
push eax
call fcn.10007f10
push dword [ebp + 0x54]
lea eax, [ebp + 0x3c]
mov byte [ebp - 4], 5
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10007f10
push edi
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.10007170
mov dword [ebp - 0x40], eax
jmp 0x1001213e
mov dword [ebp - 0x40], 0
push 0xc
mov byte [ebp - 4], 3
call fcn.1008ef00
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x10012162
mov ecx, eax
call fcn.10013960
mov edi, eax
jmp 0x10012164
xor edi, edi
push ebx
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.10018840
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x8c], 0x10011df0
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x58], 0
mov ecx, dword [ebp + 0x38]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x100121b0
mov eax, dword [ecx]
lea edx, [ebp - 0x7c]
push edx
call dword [eax]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 9
push eax
call fcn.100127c0
mov ecx, dword [ebp - 0x58]
add esp, 4
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x100121f6
mov edx, dword [ecx]
lea eax, [ebp - 0x7c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x58], 0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [esi + 0x2008c]
call fcn.1000ca50
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10012221
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x10012240
mov edx, dword [ecx]
lea eax, [ebp + 0x14]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp + 0x38], 0
mov edx, dword [ebp + 0x50]
cmp edx, 0x10
jb 0x10012270
mov ecx, dword [ebp + 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10012266
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100122d2
push edx
push ecx
call fcn.10097bcf
add esp, 8
mov edx, dword [ebp + 0x6c]
mov dword [ebp + 0x4c], 0
mov dword [ebp + 0x50], 0xf
mov byte [ebp + 0x3c], 0
cmp edx, 0x10
jb 0x100122b2
mov ecx, dword [ebp + 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100122a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100122d7
push edx
push ecx
call fcn.10097bcf
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10097f4e
mov esp, ebp
pop ebp
ret 0x68
call fcn.100b5e29
call fcn.100b5e29
int3