Function at 0x10006170
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f65f9
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x10141fc4]
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 edi, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x40], esi
lea ebx, [edi + 0x200c4]
mov dword [ebp - 4], 2
push ebx
mov dword [ebp - 0x54], ebx
call fcn.100744a0
add esp, 4
test eax, eax
je 0x100061cc
push eax
call fcn.100748a9
add esp, 4
mov byte [ebp - 0x50], 1
cmp dword [edi + 0x200c0], 0
mov byte [ebp - 4], 3
jne 0x10006279
push 0
push 0
push edi
push 0x10009680
push 0
push 0
call fcn.100d2d31
add esp, 0x18
mov dword [edi + 0x200c0], eax
test eax, eax
jne 0x10006279
sub esp, 0x18
mov ecx, esp
push 0x11
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 0xf
push str.begin_thread_fail
mov byte [ecx], al
call fcn.1000af60
mov ecx, edi
call fcn.1009ad50
lea ecx, [ebp - 0x4c]
call fcn.10007b00
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x30], 9
call fcn.1000c610
push esi
lea ecx, [ebp - 0x4c]
call fcn.1000b760
lea ecx, [ebp - 0x30]
call fcn.10008600
lea ecx, [ebp - 0x4c]
call fcn.100089e0
mov byte [ebp - 4], 6
push ebx
jmp 0x10006494
push 0x14
call fcn.100a6b20
mov ebx, eax
add esp, 4
mov dword [ebp - 0x40], ebx
mov byte [ebp - 4], 7
test ebx, ebx
je 0x100062c7
sub esp, 0x18
lea eax, [ebp + 0x58]
mov ecx, esp
mov dword [ebp - 0x44], esp
push eax
call fcn.10007990
push dword [ebp + 0x54]
lea eax, [ebp + 0x3c]
mov byte [ebp - 4], 8
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10007990
push ebx
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.10006d30
mov dword [ebp - 0x40], eax
jmp 0x100062ce
mov dword [ebp - 0x40], 0
push 0xc
mov byte [ebp - 4], 3
call fcn.100a6b20
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 9
test eax, eax
je 0x100062f2
mov ecx, eax
call fcn.10007b00
mov ebx, eax
jmp 0x100062f4
xor ebx, ebx
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.1000b760
cmp dword [edi + 4], 0
je 0x10006392
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0xb
push eax
mov ecx, ebx
mov dword [ebp - 0x30], 0xa
call fcn.1000c610
lea eax, [ebp - 0x48]
mov dword [esi], 0
cmp esi, eax
je 0x10006351
mov eax, dword [ebp - 0x48]
xor edi, edi
mov dword [esi], eax
mov al, byte [ebp - 0x44]
mov byte [esi + 4], al
jmp 0x10006354
mov edi, dword [ebp - 0x48]
lea ecx, [ebp - 0x30]
mov byte [esi + 4], 1
call fcn.10008600
mov byte [ebp - 4], 0xd
test edi, edi
je 0x10006389
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x10006389
mov ecx, dword [edi + 0x94]
test ecx, ecx
je 0x10006381
mov eax, dword [ecx]
push edi
jmp 0x10006387
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov byte [ebp - 4], 0xe
jmp 0x10006491
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x94], 0x10005d80
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x60], 0
mov ecx, dword [ebp + 0x38]
mov byte [ebp - 4], 0xf
test ecx, ecx
je 0x100063d4
mov eax, dword [ecx]
lea edx, [ebp - 0x84]
push edx
call dword [eax]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 0x11
push eax
call fcn.10007290
mov ecx, dword [ebp - 0x60]
add esp, 4
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x10006416
mov edx, dword [ecx]
lea eax, [ebp - 0x84]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x60], 0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [edi + 0x20098]
call fcn.1000bea0
lea eax, [ebp - 0x48]
mov dword [esi], 0
cmp esi, eax
je 0x10006445
mov eax, dword [ebp - 0x48]
xor edi, edi
mov dword [esi], eax
mov al, byte [ebp - 0x44]
mov byte [esi + 4], al
jmp 0x10006448
mov edi, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x14]
mov byte [esi + 4], 1
test ecx, ecx
je 0x10006464
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov byte [ebp - 4], 0x14
test edi, edi
je 0x1000648d
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x1000648d
mov ecx, dword [edi + 0x94]
test ecx, ecx
je 0x10006485
mov eax, dword [ecx]
push edi
jmp 0x1000648b
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov byte [ebp - 4], 0x15
push dword [ebp - 0x54]
call fcn.100744c5
add esp, 4
test eax, eax
je 0x100064a9
push eax
call fcn.100748a9
add esp, 4
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x100064c8
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
lea ecx, [ebp + 0x3c]
call fcn.100087a0
lea ecx, [ebp + 0x58]
call fcn.100087a0
mov eax, esi
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.100afcfe
mov esp, ebp
pop ebp
ret 0x68