Function at 0x409e8611
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push 0xc
push dword [ebp + 0xc]
xor ebx, ebx
push esi
mov dword [ebp - 8], ebx
call fcn.409e6eaa
cmp eax, ebx
jne 0x409e863a
mov eax, dword [esi + 0x1c]
jmp 0x409e886f
mov ecx, dword [eax]
mov esi, dword [ebp + 0x10]
mov dword [esi], ecx
mov eax, dword [eax + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x409e867a
push 0x2c
call fcn.409ef274
pop ecx
cmp eax, ebx
je 0x409e8668
mov dword [eax], 0x409e1448
mov dword [eax + 0x1c], ebx
mov dword [ebp + 0x10], eax
jmp 0x409e866b
mov dword [ebp + 0x10], ebx
cmp dword [ebp + 0x10], ebx
jne 0x409e867d
mov eax, 0x8007000e
jmp 0x409e886f
mov dword [ebp + 0x10], ebx
mov eax, dword [ebp + 0x10]
push edi
push 1
push 0xc
push dword [ebp + 0xc]
mov dword [esi + 8], eax
call sub.wow32.dll_WOWGetVDMPointer
mov edi, eax
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x409e870d
movzx eax, word [eax]
cmp ax, 2
je 0x409e86a8
cmp ax, 9
jne 0x409e870d
cmp dword [edi], 1
jne 0x409e870d
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test dword [eax + 0x44], 0x20000000
je 0x409e870d
movzx eax, word [edi + 4]
push 8
push eax
call sub.wow32.dll_WOWHandle32
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x409e86df
mov eax, 0x80070057
jmp 0x409e886e
push eax
call dword [sym.imp.GDI32.dll_GetObjectType]
mov ecx, dword [ebp + 0x14]
movzx ecx, word [ecx]
cmp cx, 2
jne 0x409e86f7
cmp eax, 7
je 0x409e8702
cmp cx, 9
jne 0x409e870a
cmp eax, 5
jne 0x409e870a
mov dword [edi], 0x10
jmp 0x409e870d
mov dword [ebp - 8], ebx
mov eax, dword [edi]
sub eax, ebx
je 0x409e8770
dec eax
je 0x409e87d6
dec eax
je 0x409e87ba
dec eax
dec eax
je 0x409e87b4
sub eax, 4
je 0x409e878c
sub eax, 8
je 0x409e875a
sub eax, 0x10
je 0x409e8744
mov dword [ebp - 4], 0x80070057
jmp 0x409e8839
movzx eax, word [edi + 4]
lea ecx, [esi + 4]
push ecx
push eax
push dword [ebp + 8]
call fcn.409e78b4
jmp 0x409e882e
mov eax, dword [ebp - 8]
cmp eax, ebx
jne 0x409e876d
movzx eax, word [edi + 4]
push 8
push eax
call sub.wow32.dll_WOWHandle32
mov dword [esi + 4], eax
cmp dword [ebp + 0x10], ebx
je 0x409e886b
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x409e8849
movzx eax, word [eax]
jmp 0x409e884b
push ebx
push ebx
push 0xb
mov edi, dword [edi + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
push ebx
push edi
push ebx
call fcn.409e5f3e
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x409e8770
mov dword [ebp - 4], 0x8007000e
jmp 0x409e8839
push ebx
push ebx
push 0xa
jmp 0x409e8790
push ebx
push ebx
push dword [edi + 4]
push dword [ebp + 8]
call fcn.409e82a6
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x409e8770
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
jmp 0x409e882e
mov eax, dword [ebp + 0x14]
movzx ecx, word [edi + 4]
cmp eax, ebx
je 0x409e8817
movzx eax, word [eax]
cmp ax, word [0x409f23a8]
je 0x409e87f6
cmp ax, word [0x409f23ac]
jne 0x409e8805
lea eax, [esi + 4]
push eax
push ecx
push dword [ebp + 8]
call fcn.409e7981
jmp 0x409e882e
cmp ax, 0xf
jne 0x409e8817
lea eax, [esi + 4]
push eax
push ecx
call fcn.409e767d
jmp 0x409e882e
push dword [ebp + 0x1c]
lea eax, [esi + 4]
push eax
push 0xc0
push ecx
push dword [ebp + 8]
mov dword [eax], ebx
call fcn.409e76d3
cmp eax, ebx
mov dword [ebp - 4], eax
jge 0x409e8770
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x409e886b
push 1
call fcn.409e7d8d
jmp 0x409e886b
xor eax, eax
push eax
push dword [ebp - 0xc]
push esi
push 1
push 0xc
push dword [ebp + 0xc]
call sub.wow32.dll_WOWGetVDMPointer
mov ecx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x28]
call fcn.409e7cc5
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x18