Function at 0x684d1fc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [0x68548534]
test ebx, ebx
je 0x684d1fe0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [0x68548534], 1
call fcn.684d2630
lea eax, [eax + eax*4]
lea eax, [eax*4 + 0x1e]
and eax, 0xfffffff0
call fcn.684d2830
mov dword [0x68548538], 0
sub esp, eax
lea eax, [esp + 0x1f]
and eax, 0xfffffff0
mov dword [0x6854853c], eax
mov eax, 0x684fdf18
sub eax, 0x684fdf18
cmp eax, 7
jle 0x684d1fd3
cmp eax, 0xb
mov edx, dword [0x684fdf18]
jle 0x684d20f1
test edx, edx
je 0x684d2175
mov ecx, 0x684fdf18
cmp ecx, 0x684fdf18
jae 0x684d1fd3
lea esi, [ecx + 8]
mov eax, 0x684fdf1f
mov dword [ebp - 0x30], ebx
mov edx, ecx
sub eax, esi
mov ebx, esi
shr eax, 3
lea eax, [ecx + eax*8 + 8]
mov dword [ebp - 0x2c], eax
jmp 0x684d2073
add ebx, 8
mov edi, dword [edx + 4]
mov edx, dword [edx]
mov esi, dword [edi + 0x68400000]
lea eax, [edi + 0x68400000]
add esi, edx
call fcn.684d1e70
cmp ebx, dword [ebp - 0x2c]
mov dword [edi + 0x68400000], esi
mov edx, ebx
jne 0x684d2070
mov ebx, dword [ebp - 0x30]
mov esi, dword [0x68548538]
test esi, esi
jle 0x684d1fd3
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edi, [ebp - 0x1c]
mov edx, dword [0x6854853c]
lea eax, [ebx + ebx*4]
lea eax, [edx + eax*4]
mov edx, dword [eax]
test edx, edx
je 0x684d20de
mov dword [esp + 0xc], edi
mov dword [esp + 8], edx
mov edx, dword [eax + 8]
mov dword [esp + 4], edx
mov eax, dword [eax + 4]
mov dword [esp], eax
call esi
sub esp, 0x10
add ebx, 1
cmp ebx, dword [0x68548538]
jl 0x684d20b2
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, 0x684fdf18
test edx, edx
jne 0x684d2044
mov eax, dword [ecx + 4]
test eax, eax
jne 0x684d2044
mov eax, dword [ecx + 8]
cmp eax, 1
jne 0x684d2230
lea esi, [ecx + 0xc]
cmp esi, 0x684fdf18
jae 0x684d1fd3
mov dword [ebp - 0x34], ebx
mov esi, esi
lea edi, [edi]
mov eax, dword [esi]
movzx ebx, byte [esi + 8]
mov ecx, dword [esi + 4]
lea edx, [eax + 0x68400000]
mov eax, dword [eax + 0x68400000]
cmp ebx, 0x10
lea edi, [ecx + 0x68400000]
mov dword [ebp - 0x2c], eax
je 0x684d21a1
cmp ebx, 0x20
je 0x684d2212
cmp ebx, 8
je 0x684d21f0
mov dword [esp + 4], ebx
mov dword [esp], str.__Unknown_pseudo_relocation_bit_size__d._n
call fcn.684dbf94
mov ecx, dword [0x684fdf1c]
test ecx, ecx
jne 0x684d203f
mov edx, dword [0x684fdf20]
test edx, edx
jne 0x684d2226
mov edx, dword [0x684fdf24]
mov ecx, 0x684fdf24
jmp 0x684d20f6
movzx ebx, word [ecx + 0x68400000]
mov dword [ebp - 0x30], ecx
mov eax, ebx
or eax, 0xffff0000
cmp word [ecx + 0x68400000], 0
cmovs ebx, eax
mov eax, edi
sub ebx, edx
add ebx, dword [ebp - 0x2c]
call fcn.684d1e70
mov ecx, dword [ebp - 0x30]
mov word [ecx + 0x68400000], bx
add esi, 0xc
cmp esi, 0x684fdf18
jb 0x684d2130
mov ebx, dword [ebp - 0x34]
jmp 0x684d209b
movzx ecx, byte [edi]
mov ebx, ecx
or ebx, 0xffffff00
cmp byte [edi], 0
cmovs ecx, ebx
sub ecx, edx
add eax, ecx
mov ebx, eax
mov eax, edi
call fcn.684d1e70
mov byte [edi], bl
jmp 0x684d21d3
mov eax, dword [ebp - 0x2c]
sub eax, edx
add eax, dword [edi]
mov ebx, eax
mov eax, edi
call fcn.684d1e70
mov dword [edi], ebx
jmp 0x684d21d3
mov ecx, 0x684fdf18
jmp 0x684d2109
mov dword [esp + 4], eax
mov dword [esp], str.__Unknown_pseudo_relocation_protocol_version__d._n
call fcn.684dbf94