Function at 0x1006e8c7
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x1006eb6a
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x38], 0x416f
mov dword [ebp - 0x78], 0x1000f948
cmp dword [ebp - 0x38], 0x443e
jle 0x1006e9d9
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_OffsetRgn]
and dword [ebp - 0x14], 0
jmp 0x1006e943
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x980
jge 0x1006e9d3
and dword [ebp - 8], 0
jmp 0x1006e95d
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x1c9c
jge 0x1006e9ce
and dword [ebp - 0xc], 0
jmp 0x1006e973
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x3c3d
jge 0x1006e9cc
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sar eax, cl
cdq
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], edx
push dword [ebp - 0x94]
push dword [ebp - 0x98]
lea ecx, [ebp - 0xb8]
call fcn.100118ee
pop ecx
pop ecx
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
call fcn.10022827
push eax
call fcn.10077843
pop ecx
lea ecx, [ebp - 0xb8]
call fcn.1002281d
jmp 0x1006e96c
jmp 0x1006e956
jmp 0x1006e93c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x1006eb0b
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x34]
cmp dword [eax], 0
jne 0x1006ea4c
mov eax, 0xa855
test eax, eax
jne 0x1006ea4c
and dword [ebp - 0x1c], 0
jmp 0x1006ea53
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp dword [ebp - 0x1c], eax
jge 0x1006ea6e
mov eax, dword [ebp - 0x9c]
cmp dword [eax], 0
jne 0x1006ea6e
and dword [ebp - 0x24], 0
jmp 0x1006ea75
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp dword [ebp - 0x24], eax
je 0x1006ea88
mov dword [ebp - 0x40], 1
jmp 0x1006ea8c
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0xfd074def
ja 0x1006eaab
mov dword [ebp - 0x2c], 1
jmp 0x1006eaaf
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x2c]
neg ecx
cmp dword [eax], ecx
jle 0x1006eac4
mov dword [ebp - 0x20], 1
jmp 0x1006eac8
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
imul eax, dword [ebp - 0x20]
test eax, eax
jne 0x1006eae3
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x1006eae3
and dword [ebp - 0x28], 0
jmp 0x1006eaea
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp dword [ebp - 0x28], eax
jne 0x1006eafd
mov dword [ebp - 0x30], 1
jmp 0x1006eb01
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
jmp 0x1006eb56
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1006eb39
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 3
jge 0x1006eb56
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x70]
call fcn.10022bff
mov dword [eax], 0x8abf8b24
jmp 0x1006eb2e
cmp dword [ebp - 0x38], 0x40bc
jge 0x1006eb68
push dword [ebp - 0x78]
call fcn.10077843
pop ecx
jmp 0x1006ebbe
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x80], eax
push 0x4cd1
push 0
push 0x6dd3
push 0x2497
push 0x2237
push 0x171f
push 0x6fcf
push dword [ebp - 0x80]
push 0x690c
push 0x2d91
push 0x5b59
push 0x59d2
push dword [ebp - 0x88]
call fcn.1005ca97
add esp, 0x34
mov esp, ebp
pop ebp
ret