Function at 0x409ea5cd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 8], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x1c], edi
jge 0x409ea5ff
add dword [esi + 4], 0xfffffffc
mov eax, dword [esi + 4]
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x409ea60d
mov eax, dword [esi + 4]
mov ecx, dword [eax]
add eax, 4
mov dword [ebp - 4], ecx
mov dword [esi + 4], eax
mov bl, byte [ebp + 0x10]
mov byte [ebp + 0xb], bl
and byte [ebp + 0xb], 0x80
je 0x409ea648
cmp dword [ebp - 4], edi
je 0x409ea648
push 4
push dword [ebp - 4]
push esi
call fcn.409e6edc
cmp eax, edi
jne 0x409ea63a
mov eax, 0x80070057
mov dword [esi + 0x1c], eax
jmp 0x409ea8b5
test bl, 0x40
je 0x409ea643
mov eax, dword [eax]
jmp 0x409ea64b
mov dword [ebp - 0xc], edi
jmp 0x409ea64e
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
test bl, 0x40
je 0x409ea73f
cmp dword [ebp - 0xc], edi
je 0x409ea73c
push dword [ebp - 0xc]
push esi
call fcn.409e704b
test eax, eax
je 0x409ea62d
and bl, 0x3f
cmp bl, 0x1c
jne 0x409ea690
push dword [ebp + 0x14]
mov ecx, dword [esi + 0x28]
call fcn.409e5037
push 1
push 0x24
push eax
call sub.wow32.dll_WOWGetVDMPointer
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1c], eax
cmp bl, 0x20
jne 0x409ea6c3
mov ecx, dword [esi + 0x28]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0xc]
call fcn.409e53c3
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x24], 1
call fcn.409e46c0
jmp 0x409ea728
mov eax, dword [esi + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [sym.imp.ole32.dll_OleIsCurrentClipboard]
jne 0x409ea6e5
push dword [section..data]
call ebx
test dword [eax + 0x44], 0x100000
jne 0x409ea708
push dword [section..data]
call ebx
test dword [eax + 0x44], 0x10000
je 0x409ea70b
cmp dword [esi + 0x2c], 0x14
jne 0x409ea70b
cmp dword [ebp + 0xc], 0xf
jne 0x409ea70b
cmp dword [esi + 0x30], 3
jne 0x409ea70b
xor edi, edi
inc edi
mov ecx, dword [esi + 0x28]
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x1c]
push dword [ebp - 0xc]
push 0
call fcn.409e5f3e
mov dword [ebp - 8], eax
xor edi, edi
cmp dword [ebp - 8], edi
jne 0x409ea73f
mov ebx, 0x8007000e
mov dword [esi + 0x1c], ebx
mov eax, ebx
jmp 0x409ea8b5
mov dword [ebp - 8], edi
cmp byte [ebp + 0xb], 0
mov ebx, 0x8007000e
je 0x409ea7a1
cmp dword [ebp - 4], edi
je 0x409ea7a1
push dword [ebp + 0xc]
mov ecx, dword [esi + 0x28]
call fcn.409e4da6
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x409ea797
mov eax, dword [ebp - 8]
push 1
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x10]
push 0x24
mov dword [eax], ecx
add dword [esi + 0x10], 4
push edi
call sub.wow32.dll_WOWGetVDMPointer
push 1
push 4
push dword [ebp - 4]
lea ecx, [ebp - 0x10]
mov dword [eax + 0x20], ecx
call sub.wow32.dll_WOWGetVDMPointer
mov dword [eax], edi
xor edi, edi
jmp 0x409ea7ad
mov dword [esi + 0x1c], ebx
mov dword [ebp - 0x1c], ebx
xor edi, edi
jmp 0x409ea7c1
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
add dword [esi + 0x10], 4
mov eax, dword [esi + 0x14]
movzx eax, byte [eax]
and eax, 0x3f
push esi
call dword [eax*4 + 0x409e1458]
mov dword [ebp - 0x1c], eax
cmp byte [ebp + 0xb], 0
je 0x409ea86f
cmp dword [ebp - 4], edi
je 0x409ea86f
xor eax, eax
cmp dword [ebp - 0x1c], eax
jl 0x409ea85f
cmp dword [ebp - 0x10], eax
je 0x409ea85f
cmp dword [ebp + 0x14], eax
je 0x409ea80e
call fcn.409e46f4
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [esi + 0x28]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x10]
push dword [ebp + 0x14]
push dword [ebp - 0x14]
call fcn.409e61ec
jmp 0x409ea824
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0xc]
mov ecx, dword [esi + 0x28]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.409e5bab
mov edi, eax
test edi, edi
je 0x409ea850
mov al, byte [ebp + 0x10]
and al, 0x3f
cmp al, 0x21
jne 0x409ea84a
cmp dword [ebp - 0x18], 4
je 0x409ea84a
push 1
push 0x24
push edi
call sub.wow32.dll_WOWGetVDMPointer
mov dword [eax + 0x1c], 0x20
and dword [ebp - 0x14], 0
jmp 0x409ea856
mov dword [esi + 0x1c], ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
push 4
push dword [ebp - 4]
call sub.wow32.dll_WOWGetVDMPointer
mov dword [eax], edi
xor edi, edi
mov ecx, dword [ebp - 8]
cmp ecx, edi
je 0x409ea895
mov al, byte [ebp + 0x10]
and al, 0xc0
cmp al, 0xc0
jne 0x409ea88f
push dword [ebp - 0xc]
push dword [0x409f23e0]
call sub.wow32.dll_WOWCallback16
jmp 0x409ea895
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
cmp dword [ebp - 0x14], edi
je 0x409ea8a8
push dword [ebp + 0xc]
mov ecx, dword [esi + 0x28]
push dword [ebp - 0x14]
call fcn.409e4e29
cmp dword [ebp - 0x24], edi
je 0x409ea8b2
call fcn.409e4709
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret 0x10