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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004405e
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push ebx
push esi
push edi
mov eax, dword [0x100e4a78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [edi - 8]
test eax, eax
je 0x1004e755
mov eax, edi
mov dword [ebp - 0xa8], eax
mov eax, dword [0x100e5110]
mov dword [ebp - 0xa0], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xa4], 0
test eax, eax
je 0x1004e75c
inc dword [eax + 4]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
test esi, esi
je 0x1004e7b0
mov eax, dword [esi]
lea ebx, [edi - 8]
mov dword [edi + 0x20], eax
test ebx, ebx
je 0x1004e7b7
mov eax, edi
mov dword [ebp - 0x28], eax
mov eax, dword [0x100e5110]
mov dword [ebp - 0x20], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x24], 0
test eax, eax
je 0x1004e7be
inc dword [eax + 4]
mov byte [ebp - 4], 1
lea eax, [ebx + 0x30]
test esi, esi
je 0x1004e817
lea ecx, [esi + 0x10]
cmp ecx, eax
je 0x1003d64e
mov edx, dword [eax]
cmp dword [ecx], edx
je 0x1003d64e
test byte [eax + 4], 2
je 0x1003d608
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebx + 0x30]
lea ecx, [esi + 0x10]
test byte [ecx + 4], 4
je 0x1004e80c
mov ecx, dword [ecx]
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x1004e80c
test byte [eax + 4], 1
je 0x1004e805
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov cl, byte [ebx + 0x34]
mov dword [ebx + 0x30], eax
test eax, eax
je 0x1004e7fa
or cl, 4
mov byte [ebx + 0x34], cl
test byte [ebx + 0x34], 4
je 0x1004e828
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x3c]
add dword [eax + 4], 0xffffffff
je 0x1004e83f
test ecx, ecx
js 0x1004e8a5
test ebx, ebx
je 0x1004e8d5
mov eax, edi
mov dword [ebp - 0x48], eax
mov eax, dword [0x100e5110]
mov dword [ebp - 0x40], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x44], 0
test eax, eax
je 0x1004e8dc
inc dword [eax + 4]
mov byte [ebp - 4], 3
lea eax, [ebx + 0x40]
test esi, esi
je 0x1004e935
lea ecx, [esi + 0x18]
cmp ecx, eax
je 0x1003d723
mov edx, dword [eax]
cmp dword [ecx], edx
je 0x1003d723
test byte [eax + 4], 2
je 0x1003d6dd
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebx + 0x40]
lea ecx, [esi + 0x18]
test byte [ecx + 4], 4
je 0x1004e92a
mov ecx, dword [ecx]
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x1004e92a
test byte [eax + 4], 1
je 0x1004e923
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov cl, byte [ebx + 0x44]
mov dword [ebx + 0x40], eax
test eax, eax
je 0x1004e918
or cl, 4
mov byte [ebx + 0x44], cl
test byte [ebx + 0x44], 4
je 0x1004e946
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x5c]
add dword [eax + 4], 0xffffffff
je 0x1004e95d
test ecx, ecx
js 0x1004e9c3
test esi, esi
je 0x1004e9f3
mov eax, dword [esi + 0xc]
mov dword [edi + 0x48], eax
test ebx, ebx
je 0x1004e9fa
mov eax, edi
mov dword [ebp - 0x68], eax
mov eax, dword [0x100e5110]
mov dword [ebp - 0x60], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x64], 0
test eax, eax
je 0x1004ea01
inc dword [eax + 4]
mov byte [ebp - 4], 5
lea eax, [ebx + 0x48]
test esi, esi
je 0x1004eaa8
lea ecx, [esi + 0x20]
cmp ecx, eax
je 0x1003d7b1
mov edx, dword [eax]
cmp dword [ecx], edx
jne 0x1004ea3d
test byte [ebx + 0x4c], 4
je 0x1004eab9
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x7c]
add dword [eax + 4], 0xffffffff
je 0x1004ead0
test ecx, ecx
js 0x1004eb36
test ebx, ebx
je 0x1004eb66
mov eax, edi
mov dword [ebp - 0x88], eax
mov eax, dword [0x100e5110]
mov dword [ebp - 0x80], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x84], 0
test eax, eax
je 0x1004eb6d
inc dword [eax + 4]
mov byte [ebp - 4], 7
lea eax, [ebx + 0x38]
test esi, esi
je 0x1004ebcc
lea ecx, [esi + 0x28]
cmp ecx, eax
je 0x1003d88b
mov edx, dword [eax]
cmp dword [ecx], edx
je 0x1003d88b
test byte [eax + 4], 2
je 0x1003d849
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebx + 0x38]
lea ecx, [esi + 0x28]
test byte [ecx + 4], 4
je 0x1004ebc1
mov ecx, dword [ecx]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x1004ebc1
test byte [eax + 4], 1
je 0x1003d906
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 + 0x3c]
mov dword [ebx + 0x38], eax
test eax, eax
je 0x1003d8fe
or cl, 4
mov byte [ebx + 0x3c], cl
test byte [ebx + 0x3c], 4
je 0x1004ebdd
mov ebx, dword [ebp - 0x84]
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x9c]
add dword [eax + 4], 0xffffffff
je 0x1004ebfd
test ebx, ebx
js 0x1004ec69
test esi, esi
je 0x1003d90a
mov eax, dword [esi + 4]
mov dword [edi + 0x24], eax
test esi, esi
je 0x1003d90e
mov eax, dword [esi + 8]
mov dword [edi + 0x4c], eax
mov edi, dword [ebp - 0xa4]
mov dword [ebp - 4], 9
mov eax, dword [ebp - 0xbc]
add dword [eax + 4], 0xffffffff
je 0x1004ec99
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
and cl, 0xfb
mov byte [ebx + 0x3c], cl
jmp 0x1003d88b
mov dword [eax], ecx
jmp 0x1003d88b
xor eax, eax
jmp 0x1003d8be
xor eax, eax
jmp 0x1003d8c8
xor eax, eax
jmp 0x1003d54f
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xb8], 1
push eax
mov eax, dword [0x100e5110]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0
mov word [ebp - 0xac], 0
mov byte [ebp - 0xaa], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xbc], eax
jmp 0x1003d588
xor eax, eax
jmp 0x1003d59c
xor eax, eax
jmp 0x1003d5ac
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], 1
push eax
mov eax, dword [0x100e5110]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov word [ebp - 0x2c], 0
mov byte [ebp - 0x2a], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], eax
jmp 0x1003d5d9
and cl, 0xfb
mov byte [ebx + 0x34], cl
jmp 0x1003d64e
mov dword [eax], ecx
jmp 0x1003d64e
mov dword [eax], 0
jmp 0x1003d64e
push 0x10008c08
mov ecx, eax
call fcn.100de049
jmp 0x1003d64e
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x8007000e
lea ecx, [ebp - 0x3c]
call fcn.1005038a
jmp 0x1003d658
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 8]
test edx, edx
je 0x1004e871
push edx
push 0
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [eax]
mov edi, dword [ecx + 8]
mov ecx, edi
call dword [0x100e6364]
call edi
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp byte [eax + 0x12], 0
jne 0x1004e88f
mov eax, dword [0x100e5110]
push 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x10]
jmp 0x1003d66f
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0xc], 0
jmp 0x1003d66f
test byte [0x100e5114], 2
je 0x1003d8cb
mov eax, dword [0x100e80f4]
push 0x12a
push ecx
push 0x10010900
push 0x4a809
push eax
call fcn.100d5b23
add esp, 0x14
jmp 0x1003d8cb
xor eax, eax
jmp 0x1003d681
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x58], 1
push eax
mov eax, dword [0x100e5110]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov word [ebp - 0x4c], 0
mov byte [ebp - 0x4a], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], eax
jmp 0x1003d6ae
and cl, 0xfb
mov byte [ebx + 0x44], cl
jmp 0x1003d723
mov dword [eax], ecx
jmp 0x1003d723
mov dword [eax], 0
jmp 0x1003d723
push 0x10008c08
mov ecx, eax
call fcn.100de049
jmp 0x1003d723
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x8007000e
lea ecx, [ebp - 0x5c]
call fcn.1005038a
jmp 0x1003d72d
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax + 8]
test edx, edx
je 0x1004e98f
push edx
push 0
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [eax]
mov edi, dword [ecx + 8]
mov ecx, edi
call dword [0x100e6364]
call edi
mov eax, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp byte [eax + 0x12], 0
jne 0x1004e9ad
mov eax, dword [0x100e5110]
push 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x10]
jmp 0x1003d744
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x5c]
mov dword [eax + 0xc], 0
jmp 0x1003d744
test byte [0x100e5114], 2
je 0x1003d8cb
mov eax, dword [0x100e80f4]
push 0x12b
push ecx
push 0x10010900
push 0x4ac09
push eax
call fcn.100d5b23
add esp, 0x14
jmp 0x1003d8cb
xor eax, eax
jmp 0x1003d757
xor eax, eax
jmp 0x1003d764
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x78], 1
push eax
mov eax, dword [0x100e5110]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov word [ebp - 0x6c], 0
mov byte [ebp - 0x6a], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], eax
jmp 0x1003d791
test byte [eax + 4], 2
je 0x1004ea50
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebx + 0x48]
lea ecx, [esi + 0x20]
test byte [ecx + 4], 4
je 0x1004ea9d
mov ecx, dword [ecx]
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x1004ea9d
test byte [eax + 4], 1
je 0x1004ea96
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov cl, byte [ebx + 0x4c]
mov dword [ebx + 0x48], eax
test eax, eax
jne 0x1004ea8b
and cl, 0xfb
mov byte [ebx + 0x4c], cl
jmp 0x1003d7b1
or cl, 4
mov byte [ebx + 0x4c], cl
jmp 0x1003d7b1
mov dword [eax], ecx
jmp 0x1003d7b1
mov dword [eax], 0
jmp 0x1003d7b1
push 0x10008c08
mov ecx, eax
call fcn.100de049
jmp 0x1003d7b1
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x8007000e
lea ecx, [ebp - 0x7c]
call fcn.1005038a
jmp 0x1003d7bb
mov eax, dword [ebp - 0x7c]
mov edx, dword [eax + 8]
test edx, edx
je 0x1004eb02
push edx
push 0
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [eax]
mov edi, dword [ecx + 8]
mov ecx, edi
call dword [0x100e6364]
call edi
mov eax, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp byte [eax + 0x12], 0
jne 0x1004eb20
mov eax, dword [0x100e5110]
push 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x10]
jmp 0x1003d7d2
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x7c]
mov dword [eax + 0xc], 0
jmp 0x1003d7d2
test byte [0x100e5114], 2
je 0x1003d8cb
mov eax, dword [0x100e80f4]
push 0x12d
push ecx
push 0x10010900
push 0x4b409
push eax
call fcn.100d5b23
add esp, 0x14
jmp 0x1003d8cb
xor eax, eax
jmp 0x1003d7e4
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x98], 1
push eax
mov eax, dword [0x100e5110]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov word [ebp - 0x8c], 0
mov byte [ebp - 0x8a], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], eax
jmp 0x1003d81a
mov dword [eax], 0
jmp 0x1003d88b
push 0x10008c08
mov ecx, eax
call fcn.100de049
jmp 0x1003d88b
lea edx, [ebp - 0xc0]
mov dword [ebp - 0xc0], 0x8007000e
lea ecx, [ebp - 0x9c]
call fcn.1005038a
jmp 0x1003d895
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1004ec35
push ecx
push 0
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
mov eax, dword [ebp - 0x9c]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [eax]
mov edi, dword [ecx + 8]
mov ecx, edi
call dword [0x100e6364]
call edi
mov eax, dword [ebp - 0x9c]
mov edi, dword [ebp - 0x14]
cmp byte [eax + 0x12], 0
jne 0x1004ec50
mov eax, dword [0x100e5110]
push 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x1003d8af
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x9c]
mov dword [eax + 0xc], 0
jmp 0x1003d8af
test byte [0x100e5114], 2
je 0x1003d8cb
mov eax, dword [0x100e80f4]
push 0x12e
push ebx
push 0x10010900
push 0x4b809
push eax
call fcn.100d5b23
add esp, 0x14
jmp 0x1003d8cb
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1004ecce
push ecx
push 0
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x100e6364]
call esi
mov eax, dword [ebp - 0xbc]
cmp byte [eax + 0x12], 0
jne 0x1004ecea
mov ecx, dword [0x100e5110]
push 0
push dword [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x1003d8e8
mov dword [eax + 8], 0
mov eax, dword [ebp - 0xbc]
mov dword [eax + 0xc], 0
jmp 0x1003d8e8