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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100441e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x100e4a78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi - 0xc]
test eax, eax
je 0x1004f2ad
mov eax, esi
mov dword [ebp - 0x1c], eax
mov eax, dword [0x100e5110]
mov dword [ebp - 0x14], 0
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0
test eax, eax
jne 0x1004f2b4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov word [ebp - 0x20], ax
mov byte [ebp - 0x1e], al
lea eax, [ebp - 0x30]
push eax
mov eax, dword [0x100e5110]
mov dword [ebp - 0x2c], 1
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], eax
push 0x28
mov dword [ebp - 4], 0
push 0xa00000
push dword [0x100e510c]
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
add esp, 0xc
mov dword [esi + 0x154], eax
test eax, eax
je 0x1004f2bc
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
push 0x28
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
push 0xa00000
push dword [0x100e510c]
mov dword [eax + 0x24], ecx
mov dword [esi + 0x150], 0xa
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
add esp, 0xc
mov dword [esi + 0x160], eax
test eax, eax
je 0x1004f33b
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
xor eax, eax
mov dword [esi + 0x15c], 0xa
mov dword [ebp - 0x18], eax
test eax, eax
js 0x1004f2ee
lea eax, [esi + 0xd4]
test eax, eax
je 0x1004f38d
lea ecx, [esi + 0xdc]
mov eax, dword [esi]
push ecx
mov edi, dword [eax + 0x44]
cmp edi, fcn.1003ece0
jne 0x1004f394
mov ecx, esi
call fcn.1003ece0
mov dword [ebp - 0x18], eax
test eax, eax
js 0x1004f3a5
mov eax, dword [esi]
lea ecx, [esi + 0x11c]
push ecx
mov edi, dword [eax + 0x44]
cmp edi, fcn.1003ece0
jne 0x1004f40f
mov ecx, esi
call fcn.1003ece0
mov dword [ebp - 0x18], eax
test eax, eax
js 0x1004f420
mov eax, dword [esi]
lea ecx, [esi + 0x16c]
push ecx
mov edi, dword [eax + 0x44]
cmp edi, fcn.1003ece0
jne 0x1004f48a
mov ecx, esi
call fcn.1003ece0
mov dword [ebp - 0x18], eax
test eax, eax
js 0x1004f49b
mov eax, dword [esi]
lea ecx, [esi + 0x1a0]
push ecx
mov edi, dword [eax + 0x44]
cmp edi, fcn.1003ece0
jne 0x1004f505
mov ecx, esi
call fcn.1003ece0
mov dword [ebp - 0x18], eax
test eax, eax
js 0x1004f516
lea eax, [esi + 0x1d4]
test eax, eax
je 0x1004f580
lea ecx, [esi + 0x1e0]
mov eax, dword [esi]
push ecx
mov edi, dword [eax + 0x44]
cmp edi, fcn.1003ece0
jne 0x1004f587
mov ecx, esi
call fcn.1003ece0
mov dword [ebp - 0x18], eax
test eax, eax
js 0x1004f598
test byte [esi + 0xa8], 2
je 0x1003ec11
mov eax, dword [esi + 0xa4]
test eax, eax
jne 0x1004f602
push 0x10
push 0xa00000
push dword [0x100e510c]
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
mov ecx, eax
add esp, 0xc
mov dword [esi + 0xa4], ecx
test ecx, ecx
je 0x1004f617
mov eax, dword [0x100084c8]
mov dword [ecx], eax
mov eax, dword [0x100084cc]
mov dword [ecx + 4], eax
mov eax, dword [0x100084d0]
mov dword [ecx + 8], eax
mov ax, word [0x100084d4]
mov word [ecx + 0xc], ax
xor ecx, ecx
mov eax, dword [esi + 0xa4]
mov word [eax + 0xe], cx
or byte [esi + 0xa8], 4
mov al, byte [esi + 0xa8]
test al, 4
je 0x1004f623
mov dword [esi + 0x18], 0
mov dword [ebp - 0x18], 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x30]
add dword [eax + 4], 0xffffffff
jne 0x1003ecc3
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x1004f69f
cmp byte [eax + 0x12], 0
jne 0x1004f6c6
mov ecx, dword [0x100e5110]
push 0
push dword [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x1003ea08
inc dword [eax + 4]
jmp 0x1003ea5e
test byte [0x100e5114], 2
je 0x1004f2e7
mov eax, dword [0x100e811c]
push 0x1b3
push 0x8007000e
push 0x10008f30
push 0x6cc09
push eax
call fcn.100d5b23
add esp, 0x14
mov dword [ebp - 0x18], 0x8007000e
lea ecx, [ebp - 0x30]
call fcn.1003b8e0
test byte [0x100e5114], 2
je 0x1003ec87
lea ecx, [esi + 0x74]
call fcn.1005a518
push 0x3a0
cmp eax, 0xffffffff
je 0x1004f370
lea ecx, [esi + 0x74]
call fcn.1005a518
push eax
mov eax, dword [0x100e80f0]
push 0x1000bcc0
push 0xe8009
push eax
call fcn.100d5b23
add esp, 0x14
jmp 0x1003ec87
test byte [0x100e5114], 2
je 0x1004f366
mov eax, dword [0x100e811c]
push 0x1b3
push 0x8007000e
push 0x10008f30
push 0x6cc09
push eax
call fcn.100d5b23
add esp, 0x14
mov eax, 0x8007000e
jmp 0x1003eb01
mov eax, dword [0x100e80f0]
push 0x1000bd18
push 0xe8009
push eax
call fcn.100d5b23
add esp, 0x10
jmp 0x1003ec87
xor ecx, ecx
jmp 0x1003eb20
mov ecx, edi
call dword [0x100e6364]
mov ecx, esi
call edi
jmp 0x1003eb39
lea ecx, [ebp - 0x30]
call fcn.1003b8e0
test byte [0x100e5114], 2
je 0x1003ec87
lea ecx, [esi + 0x74]
call fcn.1005a518
push 0x3a5
cmp eax, 0xffffffff
je 0x1004f3f2
lea ecx, [esi + 0x74]
call fcn.1005a518
push eax
mov eax, dword [0x100e80f0]
push 0x1000bcc0
push 0xe9409
push eax
call fcn.100d5b23
add esp, 0x14
jmp 0x1003ec87
mov eax, dword [0x100e80f0]
push 0x1000bd18
push 0xe9409
push eax
call fcn.100d5b23
add esp, 0x10
jmp 0x1003ec87
mov ecx, edi
call dword [0x100e6364]
mov ecx, esi
call edi
jmp 0x1003eb63
lea ecx, [ebp - 0x30]
call fcn.1003b8e0
test byte [0x100e5114], 2
je 0x1003ec87
lea ecx, [esi + 0x74]
call fcn.1005a518
push 0x3a6
cmp eax, 0xffffffff
je 0x1004f46d
lea ecx, [esi + 0x74]
call fcn.1005a518
push eax
mov eax, dword [0x100e80f0]
push 0x1000bcc0
push 0xe9809
push eax
call fcn.100d5b23
add esp, 0x14
jmp 0x1003ec87
mov eax, dword [0x100e80f0]
push 0x1000bd18
push 0xe9809
push eax
call fcn.100d5b23
add esp, 0x10
jmp 0x1003ec87
mov ecx, edi
call dword [0x100e6364]
mov ecx, esi
call edi
jmp 0x1003eb8d
lea ecx, [ebp - 0x30]
call fcn.1003b8e0
test byte [0x100e5114], 2
je 0x1003ec87
lea ecx, [esi + 0x74]
call fcn.1005a518
push 0x3a7
cmp eax, 0xffffffff
je 0x1004f4e8
lea ecx, [esi + 0x74]
call fcn.1005a518
push eax
mov eax, dword [0x100e80f0]
push 0x1000bcc0
push 0xe9c09
push eax
call fcn.100d5b23
add esp, 0x14
jmp 0x1003ec87
mov eax, dword [0x100e80f0]
push 0x1000bd18
push 0xe9c09
push eax
call fcn.100d5b23
add esp, 0x10
jmp 0x1003ec87
mov ecx, edi
call dword [0x100e6364]
mov ecx, esi
call edi
jmp 0x1003ebb7
lea ecx, [ebp - 0x30]
call fcn.1003b8e0
test byte [0x100e5114], 2
je 0x1003ec87
lea ecx, [esi + 0x74]
call fcn.1005a518
push 0x3a8
cmp eax, 0xffffffff
je 0x1004f563
lea ecx, [esi + 0x74]
call fcn.1005a518
push eax
mov eax, dword [0x100e80f0]
push 0x1000bcc0
push 0xea009
push eax
call fcn.100d5b23
add esp, 0x14
jmp 0x1003ec87
mov eax, dword [0x100e80f0]
push 0x1000bd18
push 0xea009
push eax
call fcn.100d5b23
add esp, 0x10
jmp 0x1003ec87
xor ecx, ecx
jmp 0x1003ebd6
mov ecx, edi
call dword [0x100e6364]
mov ecx, esi
call edi
jmp 0x1003ebef
lea ecx, [ebp - 0x30]
call fcn.1003b8e0
test byte [0x100e5114], 2
je 0x1003ec87
lea ecx, [esi + 0x74]
call fcn.1005a518
push 0x3a9
cmp eax, 0xffffffff
je 0x1004f5e5
lea ecx, [esi + 0x74]
call fcn.1005a518
push eax
mov eax, dword [0x100e80f0]
push 0x1000bcc0
push 0xea409
push eax
call fcn.100d5b23
add esp, 0x14
jmp 0x1003ec87
mov eax, dword [0x100e80f0]
push 0x1000bd18
push 0xea409
push eax
call fcn.100d5b23
add esp, 0x10
jmp 0x1003ec87
push eax
push dword [0x100e510c]
call dword [sym.imp.MSDART.DLL_MpHeapFree]
add esp, 8
jmp 0x1003ec11
and byte [esi + 0xa8], 0xfb
jmp 0x1003ec6b
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x8007000e
lea ecx, [ebp - 0x30]
call fcn.1005038a
test eax, eax
je 0x1003ec79
test byte [0x100e5114], 2
je 0x1003ec87
lea ecx, [esi + 0x74]
call fcn.1005a518
push 0x3ac
cmp eax, 0xffffffff
je 0x1004f682
lea ecx, [esi + 0x74]
call fcn.1005a518
push eax
mov eax, dword [0x100e80f0]
push 0x1000bcc0
push 0xeb009
push eax
call fcn.100d5b23
add esp, 0x14
jmp 0x1003ec87
mov eax, dword [0x100e80f0]
push 0x1000bd18
push 0xeb009
push eax
call fcn.100d5b23
add esp, 0x10
jmp 0x1003ec87
push ecx
push 0
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
mov eax, dword [ebp - 0x30]
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 - 0x30]
jmp 0x1003eca8
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x30]
mov dword [eax + 0xc], 0
jmp 0x1003ecc3