Function at 0x10005330
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d19ea
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x10116404]
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 0x10005399
push 0
push 0
push esi
push 0x10008930
push 0
push 0
call fcn.100b05ff
add esp, 0x18
mov dword [esi + 0x200b4], eax
push 0x14
call fcn.10086e10
mov edi, eax
add esp, 4
mov dword [ebp - 0x40], edi
mov byte [ebp - 4], 4
test edi, edi
je 0x100053e7
sub esp, 0x18
lea eax, [ebp + 0x58]
mov ecx, esp
mov dword [ebp - 0x4c], esp
push eax
call fcn.10006ae0
push dword [ebp + 0x54]
lea eax, [ebp + 0x3c]
mov byte [ebp - 4], 5
sub esp, 0x18
mov ecx, esp
push eax
call fcn.10006ae0
push edi
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.10005df0
mov dword [ebp - 0x40], eax
jmp 0x100053ee
mov dword [ebp - 0x40], 0
push 0xc
mov byte [ebp - 4], 3
call fcn.10086e10
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x10005412
mov ecx, eax
call fcn.10006cb0
mov edi, eax
jmp 0x10005414
xor edi, edi
push ebx
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.1000a820
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x8c], 0x100048f0
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 0x10005460
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.10006490
mov ecx, dword [ebp - 0x58]
add esp, 4
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x100054a6
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.1000af70
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x100054d1
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 0x100054f0
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 0x10005520
mov ecx, dword [ebp + 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10005516
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005582
push edx
push ecx
call fcn.1008f7e1
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 0x10005562
mov ecx, dword [ebp + 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10005558
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005587
push edx
push ecx
call fcn.1008f7e1
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.1008fb60
mov esp, ebp
pop ebp
ret 0x68
call fcn.100adb49
call fcn.100adb49
int3