Function at 0x1003dbb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004383e
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x100e3998]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
lea eax, [edi - 8]
test eax, eax
je 0x1004e682
mov eax, edi
mov dword [ebp - 0xac], eax
mov eax, dword [0x100e4064]
mov dword [ebp - 0xa4], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xa8], 0
test eax, eax
je 0x1004e689
inc dword [eax + 4]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
test esi, esi
je 0x1004e6dd
mov eax, dword [esi]
lea ebx, [edi - 8]
mov dword [edi + 0x20], eax
test ebx, ebx
je 0x1004e6e4
mov eax, edi
mov dword [ebp - 0x2c], eax
mov eax, dword [0x100e4064]
mov dword [ebp - 0x24], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x28], 0
test eax, eax
je 0x1004e6eb
inc dword [eax + 4]
mov byte [ebp - 4], 1
lea eax, [ebx + 0x30]
test esi, esi
je 0x1004e744
lea ecx, [esi + 0x10]
cmp ecx, eax
je 0x1003dcf1
mov edx, dword [eax]
cmp dword [ecx], edx
je 0x1003dcf1
test byte [eax + 4], 2
je 0x1003dcab
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebx + 0x30]
lea ecx, [esi + 0x10]
test byte [ecx + 4], 4
je 0x1004e739
mov ecx, dword [ecx]
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x1004e739
test byte [eax + 4], 1
je 0x1004e732
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov cl, byte [ebx + 0x34]
mov dword [ebx + 0x30], eax
test eax, eax
je 0x1004e727
or cl, 4
mov byte [ebx + 0x34], cl
test byte [ebx + 0x34], 4
je 0x1004e755
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x40]
add dword [eax + 4], 0xffffffff
je 0x1004e76c
test ecx, ecx
js 0x1004e7d2
test ebx, ebx
je 0x1004e802
mov eax, edi
mov dword [ebp - 0x4c], eax
mov eax, dword [0x100e4064]
mov dword [ebp - 0x44], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x48], 0
test eax, eax
je 0x1004e809
inc dword [eax + 4]
mov byte [ebp - 4], 3
lea eax, [ebx + 0x40]
test esi, esi
je 0x1004e862
lea ecx, [esi + 0x18]
cmp ecx, eax
je 0x1003ddc6
mov edx, dword [eax]
cmp dword [ecx], edx
je 0x1003ddc6
test byte [eax + 4], 2
je 0x1003dd80
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebx + 0x40]
lea ecx, [esi + 0x18]
test byte [ecx + 4], 4
je 0x1004e857
mov ecx, dword [ecx]
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x1004e857
test byte [eax + 4], 1
je 0x1004e850
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov cl, byte [ebx + 0x44]
mov dword [ebx + 0x40], eax
test eax, eax
je 0x1004e845
or cl, 4
mov byte [ebx + 0x44], cl
test byte [ebx + 0x44], 4
je 0x1004e873
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x60]
add dword [eax + 4], 0xffffffff
je 0x1004e88a
test ecx, ecx
js 0x1004e8f0
test esi, esi
je 0x1004e920
mov eax, dword [esi + 0xc]
mov dword [edi + 0x48], eax
test ebx, ebx
je 0x1004e927
mov eax, edi
mov dword [ebp - 0x6c], eax
mov eax, dword [0x100e4064]
mov dword [ebp - 0x64], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x68], 0
test eax, eax
je 0x1004e92e
inc dword [eax + 4]
mov byte [ebp - 4], 5
lea eax, [ebx + 0x48]
test esi, esi
je 0x1004e9d5
lea ecx, [esi + 0x20]
cmp ecx, eax
je 0x1003de54
mov edx, dword [eax]
cmp dword [ecx], edx
jne 0x1004e96a
test byte [ebx + 0x4c], 4
je 0x1004e9e6
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x80]
add dword [eax + 4], 0xffffffff
je 0x1004e9fd
test ecx, ecx
js 0x1004ea63
test ebx, ebx
je 0x1004ea93
mov eax, edi
mov dword [ebp - 0x8c], eax
mov eax, dword [0x100e4064]
mov dword [ebp - 0x84], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x88], 0
test eax, eax
je 0x1004ea9a
inc dword [eax + 4]
mov byte [ebp - 4], 7
lea eax, [ebx + 0x38]
test esi, esi
je 0x1004eb04
lea ecx, [esi + 0x28]
cmp ecx, eax
je 0x1003df35
mov edx, dword [eax]
cmp dword [ecx], edx
je 0x1003df35
test byte [eax + 4], 2
je 0x1003deef
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebx + 0x38]
lea ecx, [esi + 0x28]
test byte [ecx + 4], 4
je 0x1004eaf9
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x1004eaf9
test byte [eax + 4], 1
je 0x1003dfb2
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov cl, byte [ebx + 0x3c]
mov dword [ebx + 0x38], eax
test eax, eax
je 0x1004eaee
or cl, 4
mov byte [ebx + 0x3c], cl
test byte [ebx + 0x3c], 4
je 0x1004eb15
mov ebx, dword [ebp - 0x88]
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0xa0]
add dword [eax + 4], 0xffffffff
je 0x1004eb35
test ebx, ebx
js 0x1004eba1
test esi, esi
je 0x1003dfb9
mov eax, dword [esi + 4]
mov dword [edi + 0x24], eax
test esi, esi
je 0x1003dfbd
mov eax, dword [esi + 8]
mov dword [edi + 0x4c], eax
mov edi, dword [ebp - 0xa8]
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0xc0]
add dword [eax + 4], 0xffffffff
je 0x1004ebd1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10040f40
mov esp, ebp
pop ebp
ret 8
mov dword [eax], ecx
jmp 0x1003df35
xor eax, eax
jmp 0x1003df68
xor eax, eax
jmp 0x1003df72
xor eax, eax
jmp 0x1003dbf2
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xbc], 1
push eax
mov eax, dword [0x100e4064]
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
mov word [ebp - 0xb0], 0
mov byte [ebp - 0xae], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc0], eax
jmp 0x1003dc2b
xor eax, eax
jmp 0x1003dc3f
xor eax, eax
jmp 0x1003dc4f
lea eax, [ebp - 0x40]
mov dword [ebp - 0x3c], 1
push eax
mov eax, dword [0x100e4064]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov word [ebp - 0x30], 0
mov byte [ebp - 0x2e], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], eax
jmp 0x1003dc7c
and cl, 0xfb
mov byte [ebx + 0x34], cl
jmp 0x1003dcf1
mov dword [eax], ecx
jmp 0x1003dcf1
mov dword [eax], 0
jmp 0x1003dcf1
push 0x10008a98
mov ecx, eax
call fcn.100dce04
jmp 0x1003dcf1
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x8007000e
lea ecx, [ebp - 0x40]
call fcn.1005120f
jmp 0x1003dcfb
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 8]
test edx, edx
je 0x1004e79e
push edx
push 0
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [eax]
mov edi, dword [ecx + 8]
mov ecx, edi
call dword [0x100e52dc]
call edi
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp byte [eax + 0x12], 0
jne 0x1004e7bc
mov eax, dword [0x100e4064]
push 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x14]
jmp 0x1003dd12
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x40]
mov dword [eax + 0xc], 0
jmp 0x1003dd12
test byte [0x100e4068], 2
je 0x1003df75
mov eax, dword [0x100e70f4]
push 0x12a
push ecx
push 0x10010630
push 0x4a809
push eax
call fcn.100d931d
add esp, 0x14
jmp 0x1003df75
xor eax, eax
jmp 0x1003dd24
lea eax, [ebp - 0x60]
mov dword [ebp - 0x5c], 1
push eax
mov eax, dword [0x100e4064]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov word [ebp - 0x50], 0
mov byte [ebp - 0x4e], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], eax
jmp 0x1003dd51
and cl, 0xfb
mov byte [ebx + 0x44], cl
jmp 0x1003ddc6
mov dword [eax], ecx
jmp 0x1003ddc6
mov dword [eax], 0
jmp 0x1003ddc6
push 0x10008a98
mov ecx, eax
call fcn.100dce04
jmp 0x1003ddc6
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x8007000e
lea ecx, [ebp - 0x60]
call fcn.1005120f
jmp 0x1003ddd0
mov eax, dword [ebp - 0x60]
mov edx, dword [eax + 8]
test edx, edx
je 0x1004e8bc
push edx
push 0
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [eax]
mov edi, dword [ecx + 8]
mov ecx, edi
call dword [0x100e52dc]
call edi
mov eax, dword [ebp - 0x60]
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp byte [eax + 0x12], 0
jne 0x1004e8da
mov eax, dword [0x100e4064]
push 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x14]
jmp 0x1003dde7
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x60]
mov dword [eax + 0xc], 0
jmp 0x1003dde7
test byte [0x100e4068], 2
je 0x1003df75
mov eax, dword [0x100e70f4]
push 0x12b
push ecx
push 0x10010630
push 0x4ac09
push eax
call fcn.100d931d
add esp, 0x14
jmp 0x1003df75
xor eax, eax
jmp 0x1003ddfa
xor eax, eax
jmp 0x1003de07
lea eax, [ebp - 0x80]
mov dword [ebp - 0x7c], 1
push eax
mov eax, dword [0x100e4064]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov word [ebp - 0x70], 0
mov byte [ebp - 0x6e], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], eax
jmp 0x1003de34
test byte [eax + 4], 2
je 0x1004e97d
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebx + 0x48]
lea ecx, [esi + 0x20]
test byte [ecx + 4], 4
je 0x1004e9ca
mov ecx, dword [ecx]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x1004e9ca
test byte [eax + 4], 1
je 0x1004e9c3
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov cl, byte [ebx + 0x4c]
mov dword [ebx + 0x48], eax
test eax, eax
jne 0x1004e9b8
and cl, 0xfb
mov byte [ebx + 0x4c], cl
jmp 0x1003de54
or cl, 4
mov byte [ebx + 0x4c], cl
jmp 0x1003de54
mov dword [eax], ecx
jmp 0x1003de54
mov dword [eax], 0
jmp 0x1003de54
push 0x10008a98
mov ecx, eax
call fcn.100dce04
jmp 0x1003de54
lea edx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x8007000e
lea ecx, [ebp - 0x80]
call fcn.1005120f
jmp 0x1003de5e
mov eax, dword [ebp - 0x80]
mov edx, dword [eax + 8]
test edx, edx
je 0x1004ea2f
push edx
push 0
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
mov eax, dword [ebp - 0x80]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [eax]
mov edi, dword [ecx + 8]
mov ecx, edi
call dword [0x100e52dc]
call edi
mov eax, dword [ebp - 0x80]
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp byte [eax + 0x12], 0
jne 0x1004ea4d
mov eax, dword [0x100e4064]
push 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x14]
jmp 0x1003de75
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x80]
mov dword [eax + 0xc], 0
jmp 0x1003de75
test byte [0x100e4068], 2
je 0x1003df75
mov eax, dword [0x100e70f4]
push 0x12d
push ecx
push 0x10010630
push 0x4b409
push eax
call fcn.100d931d
add esp, 0x14
jmp 0x1003df75
xor eax, eax
jmp 0x1003de87
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x9c], 1
push eax
mov eax, dword [0x100e4064]
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov word [ebp - 0x90], 0
mov byte [ebp - 0x8e], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], eax
jmp 0x1003dec0
and cl, 0xfb
mov byte [ebx + 0x3c], cl
jmp 0x1003df35
mov dword [eax], 0
jmp 0x1003df35
push 0x10008a98
mov ecx, eax
call fcn.100dce04
jmp 0x1003df35
lea edx, [ebp - 0xc4]
mov dword [ebp - 0xc4], 0x8007000e
lea ecx, [ebp - 0xa0]
call fcn.1005120f
jmp 0x1003df3f
mov eax, dword [ebp - 0xa0]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1004eb6d
push ecx
push 0
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [eax]
mov edi, dword [ecx + 8]
mov ecx, edi
call dword [0x100e52dc]
call edi
mov eax, dword [ebp - 0xa0]
mov edi, dword [ebp - 0x18]
cmp byte [eax + 0x12], 0
jne 0x1004eb88
mov eax, dword [0x100e4064]
push 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x1003df59
mov dword [eax + 8], 0
mov eax, dword [ebp - 0xa0]
mov dword [eax + 0xc], 0
jmp 0x1003df59
test byte [0x100e4068], 2
je 0x1003df75
mov eax, dword [0x100e70f4]
push 0x12e
push ebx
push 0x10010630
push 0x4b809
push eax
call fcn.100d931d
add esp, 0x14
jmp 0x1003df75
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1004ec06
push ecx
push 0
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x100e52dc]
call esi
mov eax, dword [ebp - 0xc0]
cmp byte [eax + 0x12], 0
jne 0x1004ec22
mov ecx, dword [0x100e4064]
push 0
push dword [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x1003df92
mov dword [eax + 8], 0
mov eax, dword [ebp - 0xc0]
mov dword [eax + 0xc], 0
jmp 0x1003df92