Function at 0x52b2e0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x50
mov eax, dword [str.W__a]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
mov ebx, dword [esp + 0x58]
push ebp
push esi
mov esi, ecx
mov ecx, dword [0x62b6dc]
xor eax, eax
push edi
mov edi, edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
cmp ecx, 0xffffffff
je 0x52b31c
mov edx, dword [0x62b6dc]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
mov ebp, eax
mov edx, dword [ebp]
mov eax, dword [edx + 8]
mov ecx, ebp
call eax
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
test eax, eax
je 0x52b34d
mov edx, dword [eax]
push ebp
push ebx
mov ecx, eax
mov eax, dword [edx + 0x2c]
push edi
call eax
jmp 0x52b381
mov ecx, dword [0x62b6dc]
cmp ecx, 0xffffffff
jne 0x52b35c
xor eax, eax
jmp 0x52b369
mov edx, dword [0x62b6dc]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax]
push 0
push 0
push ebp
push 0
push 0
push 0
push ebx
push 0
mov ecx, eax
mov eax, dword [edx + 0x10]
push edi
call eax
mov edx, dword [ebp]
mov ecx, ebp
test al, al
jne 0x52b3a8
mov eax, dword [edx + 0xc]
push 0
call eax
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00548a41
add esp, 0x50
ret 4
mov eax, dword [edx + 0x110]
call eax
mov edi, eax
mov dword [esp + 0x20], edi
test edi, edi
je 0x52b3f2
mov edx, dword [edi]
mov edx, dword [edx + 0xfc]
lea eax, [esp + 0x40]
push eax
mov ecx, edi
call edx
cmp dword [eax + 0x14], 0x10
mov dword [esp + 0x18], 1
jb 0x52b3db
mov eax, dword [eax]
push 0x5cf308
push eax
call fcn.00549991
add esp, 8
mov byte [esp + 0x17], 0
test eax, eax
je 0x52b3f7
mov byte [esp + 0x17], 1
test byte [esp + 0x18], 1
je 0x52b412
cmp dword [esp + 0x54], 0x10
jb 0x52b412
mov eax, dword [esp + 0x40]
push eax
call fcn.00548a36
add esp, 4
cmp byte [esp + 0x17], 0
je 0x52b466
push ebx
push str.No_valid_root_element_in_view_file:__s
lea esi, [esp + 0x3c]
mov dword [esp + 0x3c], 2
mov dword [esp + 0x40], str.p:p_agentshpam2.eem_recipes201152726_base_branchesinputtools_win_release_branchgoogleclientimegoopy_third_partygoogle_gadgets_for_linuxggadget_scriptable_view.cc
mov dword [esp + 0x44], 0x9c
call fcn.00491eb0
mov edx, dword [ebp]
mov eax, dword [edx + 0xc]
add esp, 8
push 0
mov ecx, ebp
call eax
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00548a41
add esp, 0x50
ret 4
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
and byte [eax + 0x224], 0xef
mov ecx, dword [esi]
push edi
push ecx
mov ecx, dword [esi + 8]
mov edx, ebx
call fcn.0049a620
mov edx, dword [esi + 4]
mov ebx, dword [edx + 4]
mov eax, dword [edi]
mov edx, dword [eax + 0x74]
add esp, 8
mov ecx, edi
add ebx, 0x188
call edx
mov edi, eax
test edi, edi
je 0x52b4d5
nop
mov eax, dword [edi]
mov edx, dword [eax + 0x5c]
mov ecx, edi
call edx
cmp eax, 1
jne 0x52b4c3
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 8]
push eax
push 0
push edi
push ecx
push ebx
call fcn.0049ae90
add esp, 0x14
mov edx, dword [edi]
mov eax, dword [edx + 0x88]
mov ecx, edi
call eax
mov edi, eax
test edi, edi
jne 0x52b4a0
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
call eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
or byte [eax + 0x224], 0x10
xor edi, edi
cmp dword [esi + 8], edi
je 0x52b52a
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.0052ba50
test al, al
jne 0x52b52a
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
push edi
mov ecx, ebp
call edx
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00548a41
add esp, 0x50
ret 4
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
push edi
mov ecx, ebp
call edx
mov ecx, dword [esi + 4]
mov dword [esp + 0x2c], 6
mov dword [esp + 0x30], edi
mov eax, dword [ecx]
mov eax, dword [eax + 0x6c]
lea edx, [esp + 0x2c]
push edx
call eax
mov esi, dword [esi + 4]
mov dword [esp + 0x24], 0xa
mov dword [esp + 0x28], edi
mov edx, dword [esi]
mov edx, dword [edx + 0x6c]
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call edx
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.00548a41
add esp, 0x50
ret 4