Function at 0x10037550
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x1003e4a4]
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 0x1003758d
cmp dword [ebx + 0x80], 0
jne 0x100378ef
mov eax, dword [0x1003e830]
push esi
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100375af
mov esi, dword [eax + 8]
mov dword [ebp - 0x4c], esi
test esi, esi
je 0x100375af
mov edi, dword [eax + 0xc]
jmp 0x100375c0
mov esi, dword [ebx + 0xa0]
mov dword [ebp - 0x4c], esi
test esi, esi
je 0x100378ee
lea eax, [edi + 0x7ff5f448]
cmp eax, 0x2f2
ja 0x100375d0
movzx edi, di
push 0x30
push 0xf00000
push dword [0x1003e800]
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 0x100378ee
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 0x1000bf04
push dword [ebp - 0x4c]
mov esi, dword [esi]
mov ecx, esi
call dword [0x1003f1c0]
call esi
test eax, eax
js 0x100377a7
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 [0x1003f1c0]
call esi
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x10037794
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 [0x1003f1c0]
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 [0x1003f1c0]
call esi
cmp dword [ebp - 0x40], 0
je 0x100376ea
mov edi, dword [ebp - 0x30]
lea eax, [edi + 0x7ff5f448]
cmp eax, 0x2f2
ja 0x100376ea
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 0x1000bef4
push eax
push ecx
mov esi, dword [esi + 0x14]
mov ecx, esi
call dword [0x1003f1c0]
call esi
test eax, eax
jne 0x10037794
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x10037794
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 [0x1003f1c0]
call esi
lea esi, [ebx + 0x28]
test eax, eax
js 0x1003775a
push dword [ebp - 0x44]
mov ecx, esi
call fcn.10039bd0
mov eax, dword [ebp - 0x50]
mov dword [ebx + 4], eax
test byte [ebx + 0x2c], 4
jne 0x10037778
or byte [esi + 4], 4
test byte [esi + 4], 2
je 0x10037772
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 [0x1003f1c0]
call esi
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x1003f1c0]
call esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0
call fcn.10037980
test eax, eax
jns 0x100377ea
test byte [0x1003e864], 2
je 0x1003786f
push 0x9f7
push eax
mov eax, dword [0x10040118]
push 0x1000b468
push 0x27dc09
push eax
call fcn.1000d160
add esp, 0x14
jmp 0x1003786f
mov ecx, dword [ebp - 0x38]
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1003f1c0]
call esi
mov ecx, dword [ebp - 0x40]
test ecx, ecx
jne 0x10037807
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 [0x1003f1c0]
call esi
test eax, eax
js 0x1003785f
mov eax, dword [edi + 8]
push 1
push ebx
mov esi, dword [eax + 0x40]
mov ecx, esi
call dword [0x1003f1c0]
lea ecx, [edi + 8]
call esi
test eax, eax
js 0x1003785c
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 0x1003786f
mov edi, dword [ebp - 0x38]
mov eax, dword [edi]
push edi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x1003f1c0]
call esi
test byte [ebx + 0x2c], 2
je 0x10037885
push dword [ebx + 0x28]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebx + 0x28], 0
test byte [ebx + 0x24], 2
je 0x1003789b
push dword [ebx + 0x20]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebx + 0x20], 0
test byte [ebx + 0x1c], 2
je 0x100378b1
push dword [ebx + 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebx + 0x18], 0
test byte [ebx + 0x14], 2
je 0x100378c7
push dword [ebx + 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebx + 0x10], 0
push ebx
push dword [0x1003e800]
call dword [sym.imp.MSDART.DLL_MpHeapFree]
mov ecx, dword [ebp - 0x40]
add esp, 8
test ecx, ecx
je 0x100378ee
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x1003f1c0]
call esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1003ad10
mov esp, ebp
pop ebp
ret 8