Function at 0x10018e49
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10019044
mov dword [ebp - 0x14], 0x2674
cmp dword [ebp - 0x14], 0x12e4
jge 0x10019031
push 0x1076ce94
push 0x10067dd4
call fcn.10047aed
pop ecx
pop ecx
and dword [ebp - 0xc], 0
jmp 0x10018e8d
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x1076ce94]
jge 0x10018eca
mov eax, dword [ebp - 0xc]
lea eax, [eax*4 + 0x1013e288]
push eax
push 0x10067dd4
call fcn.10047aed
pop ecx
pop ecx
mov eax, dword [ebp - 0xc]
lea eax, [eax*4 + 0x1013e288]
push eax
lea eax, [ebp - 0x48]
push eax
mov ecx, 0x1076dc70
call fcn.1002b692
jmp 0x10018e86
mov eax, dword [0x1076ce94]
lea edx, [eax*4 + 0x1013e288]
mov ecx, 0x1013e288
call fcn.1002bad7
mov dword [ebp - 8], 1
jmp 0x10018ef0
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [0x1076ce94]
jge 0x10018f3e
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov eax, dword [eax*4 + 0x1013e288]
sub eax, dword [ecx*4 + 0x1013e284]
jne 0x10018f13
jmp 0x10018ee9
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov eax, dword [eax*4 + 0x1013e288]
sub eax, dword [ecx*4 + 0x1013e284]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x1076dc78
call fcn.1002b692
jmp 0x10018ee9
mov ecx, 0x1076dc70
call fcn.1002b6e9
cmp eax, 1
jne 0x10018f5d
push 0x10069148
call fcn.10047cbc
pop ecx
jmp 0x10019031
mov ecx, 0x1076dc70
call fcn.1002b6e9
cmp eax, 2
jne 0x10018fe3
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x1076dc78
call fcn.1002b6d9
mov ecx, eax
call fcn.1002b6ed
mov eax, dword [eax]
and eax, 0x80000001
jns 0x10018f8f
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x10018fbe
lea eax, [ebp - 0x38]
push eax
mov ecx, 0x1076dc78
call fcn.1002b6d9
mov ecx, eax
call fcn.1002b6ed
mov eax, dword [eax]
cdq
sub eax, edx
sar eax, 1
push eax
push 0x10068f5c
call fcn.100476ff
pop ecx
pop ecx
jmp 0x10018fe1
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0x1076dc78
call fcn.1002b6d9
mov ecx, eax
call fcn.1002b6ed
push dword [eax]
push 0x10068f5c
call fcn.100476ff
pop ecx
pop ecx
jmp 0x10019031
mov ecx, 0x1076dc70
call fcn.1002b6e9
cmp eax, 3
jne 0x10019026
mov ecx, 0x1076dc78
call fcn.1002b6e9
cmp eax, 1
jne 0x10019026
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x1076dc78
call fcn.1002b6d9
mov ecx, eax
call fcn.1002b6ed
push dword [eax]
push 0x10068f5c
call fcn.100476ff
pop ecx
pop ecx
jmp 0x10019031
push 0x1006914c
call fcn.10047cbc
pop ecx
push 0
push 0x2f75
call fcn.100191bc
pop ecx
pop ecx
jmp 0x100190cb
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x100190ad
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
jmp 0x1001908e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 2
jge 0x100190ab
mov eax, dword [ebp - 0x10]
push dword [eax]
mov ecx, dword [ebp - 0x30]
call fcn.10002242
mov dword [eax], 0xc095b676
jmp 0x10019083
jmp 0x100190cb
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x100190cb
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esp, ebp
pop ebp
ret