Function at 0x100121f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004cd6d
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x10063058]
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 0x10012418
add eax, ecx
mov dword [ebp - 0x48], eax
sub eax, ecx
push eax
push 0x3b
push ecx
call fcn.1002ae80
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10012418
movzx ecx, byte [esi]
cmp cl, 0x3b
jne 0x1001226d
xor eax, eax
jmp 0x10012272
sbb eax, eax
or eax, 1
test eax, eax
je 0x10012293
mov eax, dword [ebp - 0x48]
inc esi
sub eax, esi
push eax
push 0x3b
push esi
call fcn.1002ae80
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x10012261
jmp 0x10012418
sub esi, dword [ebp - 0x4c]
cmp esi, 0xffffffff
je 0x10012418
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.10001d70
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 0x1001245e
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.10001d70
push 0x30
mov byte [ebp - 4], 2
call fcn.10028efe
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 0x10012375
cmp dword [ebp - 0x2c], 0x10
mov ecx, esi
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.10001d70
lea eax, [ebp - 0x28]
cmp edi, eax
je 0x1001238f
cmp dword [ebp - 0x14], 0x10
mov ecx, edi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10001d70
push 0
push 0
push esi
push 0x100120c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100123ae
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x100123e2
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100123d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012463
push edx
push ecx
call fcn.10028ef0
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x10012412
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10012408
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012463
push edx
push ecx
call fcn.10028ef0
add esp, 8
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x1c]
cmp ebx, 0x10
jb 0x10012442
inc ebx
mov eax, edi
cmp ebx, 0x1000
jb 0x10012438
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012463
push ebx
push edi
call fcn.10028ef0
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.10028ebf
mov esp, ebp
pop ebp
ret
call fcn.10001350
call fcn.1002d5ef
int3