Function at 0x10002943
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, 0x100322b1
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.10002438
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10002982
push ebx
call fcn.100175ec
add esp, 4
cmp dword [0x10032d72], 1
jne 0x10002994
jmp 0x10002eaa
mov dword [0x10032d72], 1
call fcn.10002eae
and eax, 1
xor eax, 1
test eax, eax
je 0x100029b6
jmp 0x10002eaa
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 0x100029ee
push 0x172
push 0x4023d04
push 6
call fcn.100175fe
add esp, 0xc
mov dword [0x10032d76], eax
push 0x80000301
push 0
push 0x18
push 1
mov ebx, 0x1bc
call fcn.100182a0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [0x10032d7a]
test ebx, ebx
je 0x10002a2b
push ebx
call fcn.100175ec
add esp, 4
pop eax
mov dword [0x10032d7a], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x10032d7a]
test eax, eax
je 0x10002a40
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10002a67
push 0x1ea
push 0x4023d04
push 6
call fcn.100175fe
add esp, 0xc
push 0x80000301
push 0
push 0x18
push 1
mov ebx, 0x1bc
call fcn.100182a0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [0x10032d7e]
test ebx, ebx
je 0x10002a9f
push ebx
call fcn.100175ec
add esp, 4
pop eax
mov dword [0x10032d7e], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x10032d7e]
test eax, eax
je 0x10002ab4
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10002adb
push 0x24d
push 0x4023d04
push 6
call fcn.100175fe
add esp, 0xc
push 0x80000301
push 0
push 0x18
push 1
mov ebx, 0x1bc
call fcn.100182a0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [0x10032d82]
test ebx, ebx
je 0x10002b13
push ebx
call fcn.100175ec
add esp, 4
pop eax
mov dword [0x10032d82], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x10032d82]
test eax, eax
je 0x10002b28
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10002b4f
push 0x2b0
push 0x4023d04
push 6
call fcn.100175fe
add esp, 0xc
push 0x80000301
push 0
push 0x18
push 1
mov ebx, 0x1bc
call fcn.100182a0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [0x10032d86]
test ebx, ebx
je 0x10002b87
push ebx
call fcn.100175ec
add esp, 4
pop eax
mov dword [0x10032d86], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x10032d86]
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 0x313
push 0x4023d04
push 6
call fcn.100175fe
add esp, 0xc
push 0x80000301
push 0
push 0x18
push 1
mov ebx, 0x1bc
call fcn.100182a0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [0x10032d8a]
test ebx, ebx
je 0x10002bfb
push ebx
call fcn.100175ec
add esp, 4
pop eax
mov dword [0x10032d8a], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x10032d8a]
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 0x376
push 0x4023d04
push 6
call fcn.100175fe
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 0x10002c74
push 0x3e2
push 0x4023d04
push 6
call fcn.100175fe
add esp, 0xc
mov dword [0x10032d6e], 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 0x10002cb6
push 0x446
push 0x4023d04
push 6
call fcn.100175fe
add esp, 0xc
mov dword [0x10032d8e], eax
call fcn.100035b6
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fmul qword [0x100323a5]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fsub qword [0x100323ad]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.100014f8
mov dword [0x10032d92], eax
mov eax, dword [0x10032d92]
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 0x10002e59
mov dword [ebp - 0x10], esp
mov eax, 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x100050b9
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10002d58
push 0x543
push 0x4023d04
push 6
call fcn.100175fe
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x10002e51
inc dword [ebp - 0xc]
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0xc]
cmp eax, 0
jge 0x10002d8e
push 0x620
push 0x4023d04
push 0xa
call fcn.100175fe
add esp, 0xc
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
call fcn.10001838
push ecx
shl ecx, 2
add ecx, 8
push ecx
call fcn.100175e6
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 [0x10032d96]
call fcn.10001838
pop edx
mov eax, ecx
cmp ecx, edx
jle 0x10002dd0
mov ecx, edx
sub eax, ecx
sub edx, ecx
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
test edx, edx
je 0x10002de6
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
push dword [0x10032d96]
call fcn.100175ec
add esp, 4
pop eax
mov dword [0x10032d96], eax
mov ebx, dword [0x10032d96]
call fcn.10001838
push ebx
push ecx
mov eax, dword [ebp - 0xc]
dec eax
jns 0x10002e24
push 0x644
push 0x4023d04
push 4
call fcn.100175fe
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x10002e41
push 0x644
push 0x4023d04
push 1
call fcn.100175fe
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 0x10002cfc
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 0x100052a4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10002eaa
push 0x6a8
push 0x4023d04
push 6
call fcn.100175fe
add esp, 0xc
mov esp, ebp
pop ebp
ret