Function at 0x10002a9f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov eax, 0x100322a0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.10001269
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10002ade
push ebx
call fcn.10017677
add esp, 4
cmp dword [0x10032d58], 1
jne 0x10002af0
jmp 0x10003006
mov dword [0x10032d58], 1
call fcn.1000300a
and eax, 1
xor eax, 1
test eax, eax
je 0x10002b12
jmp 0x10003006
mov dword [ebp - 0x10], esp
push 0
push 0
push 4
call dword [sym.imp.KERNEL32.dll_HeapCreate]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10002b4a
push 0x172
push 0x4023d77
push 6
call fcn.10017689
add esp, 0xc
mov dword [0x10032d5c], eax
push 0x80000301
push 0
push 0x18
push 1
mov ebx, 0x1bc
call fcn.10017c30
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [0x10032d60]
test ebx, ebx
je 0x10002b87
push ebx
call fcn.10017677
add esp, 4
pop eax
mov dword [0x10032d60], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x10032d60]
test eax, eax
je 0x10002b9c
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10002bc3
push 0x1ea
push 0x4023d77
push 6
call fcn.10017689
add esp, 0xc
push 0x80000301
push 0
push 0x18
push 1
mov ebx, 0x1bc
call fcn.10017c30
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [0x10032d64]
test ebx, ebx
je 0x10002bfb
push ebx
call fcn.10017677
add esp, 4
pop eax
mov dword [0x10032d64], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x10032d64]
test eax, eax
je 0x10002c10
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10002c37
push 0x24d
push 0x4023d77
push 6
call fcn.10017689
add esp, 0xc
push 0x80000301
push 0
push 0x18
push 1
mov ebx, 0x1bc
call fcn.10017c30
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [0x10032d68]
test ebx, ebx
je 0x10002c6f
push ebx
call fcn.10017677
add esp, 4
pop eax
mov dword [0x10032d68], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x10032d68]
test eax, eax
je 0x10002c84
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10002cab
push 0x2b0
push 0x4023d77
push 6
call fcn.10017689
add esp, 0xc
push 0x80000301
push 0
push 0x18
push 1
mov ebx, 0x1bc
call fcn.10017c30
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [0x10032d6c]
test ebx, ebx
je 0x10002ce3
push ebx
call fcn.10017677
add esp, 4
pop eax
mov dword [0x10032d6c], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x10032d6c]
test eax, eax
je 0x10002cf8
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10002d1f
push 0x313
push 0x4023d77
push 6
call fcn.10017689
add esp, 0xc
push 0x80000301
push 0
push 0x18
push 1
mov ebx, 0x1bc
call fcn.10017c30
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [0x10032d70]
test ebx, ebx
je 0x10002d57
push ebx
call fcn.10017677
add esp, 4
pop eax
mov dword [0x10032d70], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x10032d70]
test eax, eax
je 0x10002d6c
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10002d93
push 0x376
push 0x4023d77
push 6
call fcn.10017689
add esp, 0xc
mov dword [ebp - 0x10], esp
push 0
push 0
push 0
push 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10002dd0
push 0x3e2
push 0x4023d77
push 6
call fcn.10017689
add esp, 0xc
mov dword [0x10032d54], eax
mov dword [ebp - 0x10], esp
push 0
push 0
push 0
push 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10002e12
push 0x446
push 0x4023d77
push 6
call fcn.10017689
add esp, 0xc
mov dword [0x10032d74], eax
call fcn.10003712
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fmul qword [0x100323a6]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fsub qword [0x100323ae]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.1000165d
mov dword [0x10032d78], eax
mov eax, dword [0x10032d78]
xor ecx, ecx
push eax
lea eax, [ebp - 4]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x10002fb5
mov dword [ebp - 0x10], esp
mov eax, 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x10005215
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10002eb4
push 0x543
push 0x4023d77
push 6
call fcn.10017689
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x10002fad
inc dword [ebp - 0xc]
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0xc]
cmp eax, 0
jge 0x10002eea
push 0x620
push 0x4023d77
push 0xa
call fcn.10017689
add esp, 0xc
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
call fcn.1000199d
push ecx
shl ecx, 2
add ecx, 8
push ecx
call fcn.10017671
add esp, 4
mov edi, eax
mov dword [edi], 1
add edi, 4
pop ecx
push eax
push ecx
lea esi, [ebp - 0x10]
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov ebx, dword [0x10032d7c]
call fcn.1000199d
pop edx
mov eax, ecx
cmp ecx, edx
jle 0x10002f2c
mov ecx, edx
sub eax, ecx
sub edx, ecx
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
test edx, edx
je 0x10002f42
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
push dword [0x10032d7c]
call fcn.10017677
add esp, 4
pop eax
mov dword [0x10032d7c], eax
mov ebx, dword [0x10032d7c]
call fcn.1000199d
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x10002f80
push 0x644
push 0x4023d77
push 4
call fcn.10017689
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10002f9d
push 0x644
push 0x4023d77
push 1
call fcn.10017689
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
mov dword [ebx], eax
pop eax
pop ebx
pop ecx
jmp 0x10002e58
add esp, 0xc
mov dword [ebp - 0x10], esp
mov eax, 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x10005400
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10003006
push 0x6a8
push 0x4023d77
push 6
call fcn.10017689
add esp, 0xc
mov esp, ebp
pop ebp
ret