Function at 0x1002dd1f
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005f896
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x8c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1002df82
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x60]
movzx eax, byte [eax]
test eax, eax
je 0x1002df7a
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x30], 0xe05
mov dword [ebp - 0x38], 0x1000a684
cmp dword [ebp - 0x30], 0xf59
jle 0x1002de4c
call dword [sym.imp.USER32.dll_CreatePopupMenu]
and dword [ebp - 0x2c], 0
jmp 0x1002ddaa
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x4038
jge 0x1002de4c
and dword [ebp - 0x20], 0
jmp 0x1002ddc4
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x4ac3
jge 0x1002de47
and dword [ebp - 0x18], 0
jmp 0x1002ddda
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x14eb
jge 0x1002de42
and dword [ebp - 0x28], 0
jmp 0x1002ddf0
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x5a87
jge 0x1002de40
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
shl eax, cl
or eax, dword [ebp - 0x2c]
cdq
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
push dword [ebp - 0x50]
push dword [ebp - 0x54]
lea ecx, [ebp - 0x9c]
call fcn.1000d6fa
pop ecx
pop ecx
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
call fcn.1001a8bc
push eax
call fcn.10049b86
pop ecx
lea ecx, [ebp - 0x9c]
call fcn.1001a8b2
jmp 0x1002dde9
jmp 0x1002ddd3
jmp 0x1002ddbd
jmp 0x1002dda3
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x5c], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x30], 0xb44
jge 0x1002de68
push dword [ebp - 0x38]
call fcn.10049b86
pop ecx
jmp 0x1002de84
or dword [ebp - 4], 0xffffffff
jmp 0x1002de8e
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 1
jmp 0x1002debc
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jl 0x1002df78
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x6c], 0x648bd921
mov dword [ebp - 0x70], 1
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x84], 0x5378470e
push 2
lea ecx, [ebp - 0x80]
call fcn.1001ab0d
mov dword [ebp - 4], 2
mov dword [ebp - 0x1c], 0
jmp 0x1002df0f
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 2
jge 0x1002df28
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x80]
call fcn.1001abab
mov dword [eax], 0xeb8e136d
jmp 0x1002df08
mov eax, dword [ebp - 0x24]
mov dword [eax], 0
jmp 0x1002df3e
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
cmp dword [eax], 1
jg 0x1002df4f
mov dword [ebp - 0x3c], 0xfffffffe
jmp 0x1002df33
push 2
mov ecx, dword [ebp - 0x44]
call fcn.1001abab
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x34]
mov dword [ecx], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.1001ab8f
jmp 0x1002deb1
jmp 0x1002df80
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
jmp 0x1002df90
push 0
push 0x67ad
call fcn.100313f2
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret