Function at 0x1003a000
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x10042544]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov eax, 0xd
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x54], ebx
mov word [ebx + 0x20], ax
mov dword [ebx + 0x28], 0
test edi, edi
js 0x1003a03d
cmp dword [ebx + 0x80], 0
jne 0x1003a39f
mov eax, dword [0x100428d4]
push esi
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1003a05f
mov esi, dword [eax + 8]
mov dword [ebp - 0x4c], esi
test esi, esi
je 0x1003a05f
mov edi, dword [eax + 0xc]
jmp 0x1003a070
mov esi, dword [ebx + 0xa0]
mov dword [ebp - 0x4c], esi
test esi, esi
je 0x1003a39e
lea eax, [edi + 0x7ff5f448]
cmp eax, 0x2f2
ja 0x1003a080
movzx edi, di
push 0x30
push 0xe00000
push dword [0x100428d0]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x34], 0
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0x50], ebx
test ebx, ebx
je 0x1003a39e
mov dword [ebx + 0x10], 0
lea eax, [ebp - 0x34]
mov byte [ebx + 0x14], 7
mov dword [ebx + 0x18], 0
mov byte [ebx + 0x1c], 7
mov dword [ebx + 0x20], 0
mov byte [ebx + 0x24], 7
mov dword [ebx + 0x28], 0
mov byte [ebx + 0x2c], 7
mov dword [ebx], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov esi, dword [esi]
push eax
push 0x1000db28
push dword [ebp - 0x4c]
mov esi, dword [esi]
mov ecx, esi
call dword [0x100431c0]
call esi
test eax, eax
js 0x1003a257
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x100431c0]
call esi
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x1003a244
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
push edx
dec eax
push eax
mov esi, dword [ecx]
push ecx
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x100431c0]
call esi
mov eax, dword [ebp - 0x34]
mov esi, dword [eax]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov esi, dword [esi + 0x18]
mov ecx, esi
push eax
mov eax, dword [ebp - 0x3c]
dec eax
push eax
push dword [ebp - 0x34]
call dword [0x100431c0]
call esi
cmp dword [ebp - 0x40], 0
je 0x1003a19a
mov edi, dword [ebp - 0x30]
lea eax, [edi + 0x7ff5f448]
cmp eax, 0x2f2
ja 0x1003a19a
movzx edi, di
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], 0
dec eax
mov esi, dword [ecx]
push 0x1000db18
push eax
push ecx
mov esi, dword [esi + 0x14]
mov ecx, esi
call dword [0x100431c0]
call esi
test eax, eax
jne 0x1003a244
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x1003a244
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x44], 0
push ecx
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x44]
mov esi, dword [eax]
push ecx
push eax
mov esi, dword [esi + 0xc]
mov ecx, esi
call dword [0x100431c0]
call esi
lea esi, [ebx + 0x28]
test eax, eax
js 0x1003a20a
push dword [ebp - 0x44]
mov ecx, esi
call fcn.1003c570
mov eax, dword [ebp - 0x50]
mov dword [ebx + 4], eax
test byte [ebx + 0x2c], 4
jne 0x1003a228
or byte [esi + 4], 4
test byte [esi + 4], 2
je 0x1003a222
push dword [esi]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
push dword [ebp - 0x44]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x100431c0]
call esi
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x100431c0]
call esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0
call fcn.1003a4c0
test eax, eax
jns 0x1003a29a
test byte [0x100428f8], 2
je 0x1003a31f
push 0x9f7
push eax
mov eax, dword [0x10044140]
push 0x1000ca50
push 0x27dc09
push eax
call fcn.10011220
add esp, 0x14
jmp 0x1003a31f
mov ecx, dword [ebp - 0x38]
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100431c0]
call esi
mov ecx, dword [ebp - 0x40]
test ecx, ecx
jne 0x1003a2b7
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x38]
push edi
push ebx
push ecx
mov esi, dword [eax]
mov edi, eax
push edi
mov esi, dword [esi + 0x38]
mov ecx, esi
call dword [0x100431c0]
call esi
test eax, eax
js 0x1003a30f
mov eax, dword [edi + 8]
push 1
push ebx
mov esi, dword [eax + 0x40]
mov ecx, esi
call dword [0x100431c0]
lea ecx, [edi + 8]
call esi
test eax, eax
js 0x1003a30c
mov ecx, dword [ebp - 0x54]
mov eax, edi
mov dword [ecx + 0xa4], eax
mov eax, 0xd
mov word [ecx + 0x20], ax
mov eax, dword [ecx + 0xa4]
mov dword [ecx + 0x28], eax
jmp 0x1003a31f
mov edi, dword [ebp - 0x38]
mov eax, dword [edi]
push edi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100431c0]
call esi
test byte [ebx + 0x2c], 2
je 0x1003a335
push dword [ebx + 0x28]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebx + 0x28], 0
test byte [ebx + 0x24], 2
je 0x1003a34b
push dword [ebx + 0x20]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebx + 0x20], 0
test byte [ebx + 0x1c], 2
je 0x1003a361
push dword [ebx + 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebx + 0x18], 0
test byte [ebx + 0x14], 2
je 0x1003a377
push dword [ebx + 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebx + 0x10], 0
push ebx
push dword [0x100428d0]
call dword [sym.imp.MSDART.DLL_MpHeapFree]
mov ecx, dword [ebp - 0x40]
add esp, 8
test ecx, ecx
je 0x1003a39e
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x100431c0]
call esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1003f4c0
mov esp, ebp
pop ebp
ret 8