Function at 0x1002d6e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x10080800]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x10083dd0], 0xa
jl 0x1002d712
mov eax, dword [0x10083dd4]
lea edx, [eax + 1]
imul edx, eax
and edx, 1
je 0x1002d712
nop dword [eax]
jmp 0x1002d710
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
lea esi, [ecx + 4]
mov ebx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], esi
nop word cs:[eax + eax]
push eax
mov edi, esp
push eax
push edx
push dword [ebp + 8]
push edi
call fcn.1002d9c0
add esp, 0x10
push esi
push 0
push dword [edi]
push 0x1002db10
push 0
push 0
call fcn.10054867
add esp, 0x18
mov dword [ebx], eax
cmp dword [0x10083dd0], 0xa
jl 0x1002d7b0
mov ecx, dword [0x10083dd4]
lea edx, [ecx + 1]
imul edx, ecx
and edx, 1
je 0x1002d7b0
push eax
mov ebx, esp
mov edi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push edi
mov eax, dword [ebp + 8]
push eax
push ebx
call fcn.1002d9c0
add esp, 0x10
mov esi, dword [ebp - 0x14]
push esi
push 0
push dword [ebx]
push 0x1002db10
push 0
push 0
call fcn.10054867
mov edx, edi
add esp, 0x18
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
jmp 0x1002d730
test eax, eax
je 0x1002d7ea
mov eax, dword [0x10083dd8]
lea ecx, [eax + 1]
imul ecx, eax
test cl, 1
sete cl
cmp dword [0x10083ddc], 0xa
setl al
or al, cl
mov ecx, dword [0x10083de0]
mov edx, dword [0x10083de4]
jne 0x1002d7fa
lea esi, [ecx + 1]
imul esi, ecx
and esi, 1
jmp 0x1002d828
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
push 6
call fcn.100386b3
lea esi, [ecx + 1]
imul esi, ecx
and esi, 1
sete bl
cmp edx, 0xa
setl ah
or ah, bl
je 0x1002d818
mov dword [edi], 0
jmp 0x1002d824
mov dword [edi], 0
nop
test ah, ah
je 0x1002d820
test al, al
jne 0x1002d83e
cmp edx, 0xa
jl 0x1002d996
test esi, esi
jne 0x1002d9b4
jmp 0x1002d996
mov eax, dword [0x10083de8]
xor edx, edx
mov ecx, dword [0x10083dec]
jmp 0x1002d852
mov edx, dword [edi]
lea esi, [eax + 1]
imul esi, eax
and esi, 1
test edx, edx
je 0x1002d8b0
cmp ecx, 0xa
jl 0x1002d870
test esi, esi
jne 0x1002d970
nop dword [eax]
test edx, edx
je 0x1002d87d
push edx
call fcn.1003573d
add esp, 4
mov eax, dword [0x10083de8]
mov ecx, dword [0x10083dec]
lea esi, [eax + 1]
imul esi, eax
and esi, 1
cmp ecx, 0xa
jl 0x1002d8b0
test esi, esi
je 0x1002d8b0
mov eax, dword [edi]
xor edx, edx
test eax, eax
je 0x1002d870
push eax
call fcn.1003573d
add esp, 4
mov edx, dword [edi]
jmp 0x1002d870
test esi, esi
je 0x1002d8bd
cmp ecx, 0xa
jge 0x1002d960
cmp dword [0x10083dd0], 0xa
jl 0x1002d982
mov edx, dword [0x10083dd4]
lea esi, [edx + 1]
imul esi, edx
and esi, 1
je 0x1002d982
mov esi, dword [edi]
lea edx, [eax + 1]
imul edx, eax
and edx, 1
test esi, esi
je 0x1002d93d
cmp ecx, 0xa
jl 0x1002d913
test edx, edx
je 0x1002d913
jmp 0x1002d980
mov eax, dword [edi]
xor esi, esi
test eax, eax
je 0x1002d913
push eax
call fcn.1003573d
add esp, 4
mov esi, dword [edi]
test esi, esi
je 0x1002d920
push esi
call fcn.1003573d
add esp, 4
mov eax, dword [0x10083de8]
mov ecx, dword [0x10083dec]
lea edx, [eax + 1]
imul edx, eax
and edx, 1
cmp ecx, 0xa
jl 0x1002d93d
test edx, edx
jne 0x1002d900
test edx, edx
je 0x1002d850
cmp ecx, 0xa
jl 0x1002d850
nop
jmp 0x1002d950
jmp 0x1002d960
jmp 0x1002d970
jmp 0x1002d980
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10035778
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov dword [edi], 0
cmp edx, 0xa
jl 0x1002d7fa
lea esi, [ecx + 1]
imul esi, ecx
and esi, 1
je 0x1002d7fa
mov dword [edi], 0
jmp 0x1002d996