Function at 0x1000f520
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004a8fd
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x10060058]
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 dword [ebp - 4], 0
lea ecx, [ebp + 8]
mov ebx, dword [ebp + 0x1c]
cmp ebx, 0x10
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
cmovae ecx, edi
setae byte [ebp - 0x41]
mov dword [ebp - 0x4c], ecx
cmp eax, 1
jb 0x1000f748
add eax, ecx
mov dword [ebp - 0x48], eax
sub eax, ecx
push eax
push 0x3b
push ecx
call fcn.10029330
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1000f748
movzx ecx, byte [esi]
cmp cl, 0x3b
jne 0x1000f59d
xor eax, eax
jmp 0x1000f5a2
sbb eax, eax
or eax, 1
test eax, eax
je 0x1000f5c3
mov eax, dword [ebp - 0x48]
inc esi
sub eax, esi
push eax
push 0x3b
push esi
call fcn.10029330
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1000f591
jmp 0x1000f748
sub esi, dword [ebp - 0x4c]
cmp esi, 0xffffffff
je 0x1000f748
cmp dword [ebp + 0x18], esi
lea eax, [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x40], 0
cmovb ecx, dword [ebp + 0x18]
cmp byte [ebp - 0x41], 0
push ecx
cmovne eax, edi
mov dword [ebp - 0x30], 0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.10001db0
mov byte [ebp - 4], 1
inc esi
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp eax, esi
jb 0x1000f78e
sub eax, esi
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
add eax, esi
lea ecx, [ebp - 0x28]
push eax
call fcn.10001db0
push 0x30
mov byte [ebp - 4], 2
call fcn.100273ad
mov esi, eax
add esp, 4
lea edi, [esi + 0x18]
lea eax, [ebp - 0x40]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov dword [edi + 0x14], 0xf
cmp esi, eax
je 0x1000f6a5
cmp dword [ebp - 0x2c], 0x10
mov ecx, esi
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.10001db0
lea eax, [ebp - 0x28]
cmp edi, eax
je 0x1000f6bf
cmp dword [ebp - 0x14], 0x10
mov ecx, edi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10001db0
push 0
push 0
push esi
push 0x1000f3f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1000f6de
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1000f712
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000f708
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000f793
push edx
push ecx
call fcn.1002739f
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x1000f742
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000f738
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000f793
push edx
push ecx
call fcn.1002739f
add esp, 8
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x1c]
cmp ebx, 0x10
jb 0x1000f772
inc ebx
mov eax, edi
cmp ebx, 0x1000
jb 0x1000f768
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000f793
push ebx
push edi
call fcn.1002739f
add esp, 8
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.1002736e
mov esp, ebp
pop ebp
ret
call fcn.10001350
call fcn.1002ba9f
int3