Function at 0x4dd74428
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x4dd78004]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
shl edi, 4
add edi, ebx
and dword [edi + 8], 0
test esi, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x58], ebx
mov word [edi], 0xd
jl 0x4dd74465
cmp dword [ebx + 0x80], 0
jne 0x4dd7466e
push dword [0x4dd78018]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4dd7449c
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4dd7449c
mov eax, dword [eax + 8]
mov ebx, 0x800a0bb8
cmp eax, ebx
mov dword [ebp - 0x50], ecx
jl 0x4dd74497
cmp eax, 0x800a0eaa
jg 0x4dd74497
and eax, 0xffff
mov dword [ebp - 0x3c], eax
jmp 0x4dd744c7
mov ebx, dword [ebx + 0x9c]
test ebx, ebx
je 0x4dd7466e
mov dword [ebp - 0x50], ebx
mov ebx, 0x800a0bb8
cmp esi, ebx
jl 0x4dd744c4
cmp esi, 0x800a0eaa
jg 0x4dd744c4
and esi, 0xffff
mov dword [ebp - 0x3c], esi
xor esi, esi
push 0x30
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x38], esi
call fcn.4dd113f7
cmp eax, esi
pop ecx
je 0x4dd744e7
mov ecx, eax
call fcn.4dd2ef6f
mov dword [ebp - 0x34], eax
jmp 0x4dd744ea
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x34], esi
je 0x4dd7466e
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
lea edx, [ebp - 0x38]
push edx
push 0x4dd2f1d0
push eax
call dword [ecx]
test eax, eax
jl 0x4dd745ed
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x44]
push edx
mov dword [ebp - 0x44], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov ecx, dword [ebp - 0x44]
cmp ecx, esi
je 0x4dd745e2
mov eax, dword [ebp - 0x38]
mov edx, dword [eax]
lea esi, [ebp - 0x30]
push esi
dec ecx
push ecx
push eax
call dword [edx + 0x10]
mov eax, dword [ebp - 0x38]
mov esi, dword [eax]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push eax
mov eax, dword [ebp - 0x44]
dec eax
push eax
push dword [ebp - 0x38]
call dword [esi + 0x18]
cmp dword [ebp - 0x48], 0
je 0x4dd7456d
mov eax, dword [ebp - 0x30]
cmp eax, ebx
jl 0x4dd7456a
cmp eax, 0x800a0eaa
jg 0x4dd7456a
and eax, 0xffff
mov dword [ebp - 0x3c], eax
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
lea edx, [ebp - 0x54]
push edx
mov edx, dword [ebp - 0x44]
push 0x4dd2f1e0
dec edx
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x4dd745e2
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4dd745e2
lea edx, [ebp - 0x40]
push edx
lea edx, [ebp - 0x4c]
xor ebx, ebx
push edx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x40], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
mov esi, dword [ebp - 0x34]
jl 0x4dd745c1
push dword [ebp - 0x4c]
lea ecx, [esi + 0x28]
call fcn.4dd13ec5
mov eax, dword [ebp - 0x40]
mov dword [esi + 4], eax
test byte [esi + 0x2c], 4
jne 0x4dd745d0
push ebx
lea ecx, [esi + 0x28]
call fcn.4dd13ec5
push dword [ebp - 0x4c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor esi, esi
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], esi
call fcn.4dd2f3c3
mov esi, dword [ebp - 0x40]
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [ebp - 0x48]
test eax, eax
mov ebx, dword [ebp - 0x58]
mov dword [ebx + 0xa0], esi
jne 0x4dd74615
mov eax, dword [ebp - 0x50]
push dword [ebp - 0x3c]
mov ecx, dword [esi]
push dword [ebp - 0x34]
push eax
push esi
call dword [ecx + 0x38]
test eax, eax
jl 0x4dd74647
push 1
push dword [ebp - 0x34]
lea ecx, [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x40]
test eax, eax
jl 0x4dd74647
mov word [edi], 0xd
mov eax, dword [ebx + 0xa0]
mov dword [edi + 8], eax
jmp 0x4dd74657
mov ebx, dword [ebx + 0xa0]
test ebx, ebx
je 0x4dd74657
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov ecx, dword [ebp - 0x34]
push 1
call fcn.4dd46959
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4dd7466e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.4dd11321
leave
ret 8