Function at 0x1002d19d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
movzx eax, byte [ebp + 0x2c]
test eax, eax
je 0x1002d2fa
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x44], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
test eax, eax
je 0x1002d1f4
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x1002d2f5
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jne 0x1002d245
mov dword [ebp - 8], 1
jmp 0x1002d249
and dword [ebp - 8], 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
cmp dword [ebp - 8], 0xc01e6e2b
jbe 0x1002d263
mov dword [ebp - 0x18], 1
jmp 0x1002d267
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [eax]
cmp ecx, 0xfdbd
jl 0x1002d280
mov dword [ebp - 0x1c], 1
jmp 0x1002d284
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
imul eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jge 0x1002d2a7
mov dword [ebp - 0x24], 1
jmp 0x1002d2ab
and dword [ebp - 0x24], 0
cmp dword [ebp - 0x24], 0x8064
jg 0x1002d2bd
mov dword [ebp - 0x28], 1
jmp 0x1002d2c1
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
dec eax
cmp eax, dword [ebp - 0x28]
jle 0x1002d2d5
mov dword [ebp - 0x2c], 1
jmp 0x1002d2d9
and dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 1
je 0x1002d2e5
mov eax, dword [ebp - 4]
cmp dword [eax], 0
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
imul eax, dword [ecx]
mov ecx, dword [ebp - 0x60]
mov dword [ecx], eax
jmp 0x1002d390
lea eax, [ebp + 0x18]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x64]
movzx eax, byte [eax]
test eax, eax
je 0x1002d37e
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x14], eax
push 4
push 0x2000
mov eax, dword [ebp - 0x10]
push dword [eax + 0x50]
mov eax, dword [ebp - 0x10]
push dword [eax + 0x34]
push 0x7ab8
push 0x9214
call fcn.10052bdb
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jne 0x1002d37c
push 4
push 0x2000
mov eax, dword [ebp - 0x10]
push dword [eax + 0x50]
push 0
push 0x7ab8
push 0x9214
call fcn.10052bdb
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
jmp 0x1002d390
push 0x439
push 0
push 0x44b
call dword [sym.imp.GDI32.dll_Polyline]
mov esp, ebp
pop ebp
ret