Function at 0x492eb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x561618], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x20], edi
je 0x492ee6
push ebx
push 0
push esi
push str.ntfs_fix_idxrec:_Fixing_idxrec:__llu__Len:__u_n
call fcn.004bdd06
add eax, 0x40
push eax
call fcn.00479b20
add esp, 0x14
mov edi, dword [edi + 0x98]
cmp edi, 1
jne 0x492efb
movzx ecx, byte [esi + 7]
movzx eax, byte [esi + 6]
jmp 0x492f03
movzx ecx, byte [esi + 6]
movzx eax, byte [esi + 7]
shl ecx, 8
add ecx, eax
movzx eax, cx
dec eax
shl eax, 9
cmp eax, ebx
jbe 0x492f6b
call fcn.00476ab0
mov edi, dword [0x56161c]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x492f4f
push 0xc08
call fcn.004bb5d5
push 0xc08
mov esi, eax
push 0
push esi
call fcn.004c13c0
add esp, 0x10
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push str.fix_idxrec:_More_Update_Sequence_Entries_than_idx_record_size
mov dword [esi], 0x8000009
call fcn.004768f0
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 1
jne 0x492f7a
movzx ecx, byte [esi + 5]
movzx eax, byte [esi + 4]
jmp 0x492f82
movzx ecx, byte [esi + 4]
movzx eax, byte [esi + 5]
shl ecx, 8
add ecx, eax
movzx edx, cx
add edx, esi
mov dword [ebp - 0x10], edx
cmp edi, 1
jne 0x492faf
movzx ecx, byte [edx + 1]
lea edi, [edx + 1]
movzx eax, byte [edx]
mov dword [ebp - 0xc], edi
mov edi, 0x100
mov dword [ebp - 0x18], edi
imul cx, di
jmp 0x492fc7
movzx ecx, byte [edx]
lea eax, [edx + 1]
mov ebx, 0x100
mov dword [ebp - 0xc], eax
movzx eax, byte [eax]
mov dword [ebp - 0x18], ebx
imul cx, bx
add cx, ax
mov dword [ebp - 8], 0x1fe
movzx eax, cx
mov ebx, 1
mov dword [ebp - 0x14], eax
lea esp, [esp]
mov eax, dword [ebp - 0x20]
mov edi, dword [eax + 0x98]
cmp edi, 1
jne 0x492ff8
movzx ecx, byte [esi + 7]
movzx eax, byte [esi + 6]
jmp 0x493000
movzx ecx, byte [esi + 6]
movzx eax, byte [esi + 7]
shl ecx, 8
add ecx, eax
movzx eax, cx
cmp ebx, eax
jge 0x4931e4
mov eax, dword [ebp - 8]
cmp edi, 1
jne 0x49303e
lea edx, [eax + 1]
add eax, esi
add edx, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edx
mov al, byte [eax]
movzx ecx, byte [edx]
mov edx, 0x100
mov byte [ebp + 0xb], al
imul cx, dx
mov edx, dword [ebp - 0x10]
movzx eax, al
jmp 0x49305a
lea ecx, [eax + esi]
inc eax
mov dword [ebp - 0x1c], ecx
add eax, esi
mov cl, byte [ecx]
mov byte [ebp + 0xb], cl
movzx ecx, cl
imul cx, word [ebp - 0x18]
mov dword [ebp - 4], eax
movzx eax, byte [eax]
add cx, ax
movzx eax, cx
mov dword [ebp - 0x24], eax
cmp ax, word [ebp - 0x14]
jne 0x4930f5
cmp dword [0x561618], 0
je 0x4930d5
mov eax, dword [ebp - 0xc]
cmp edi, 1
jne 0x493087
movzx edx, byte [eax + ebx*2]
mov eax, dword [ebp - 0x10]
jmp 0x49308b
movzx edx, byte [edx + ebx*2]
movzx eax, byte [eax + ebx*2]
shl edx, 8
add edx, eax
cmp edi, 1
mov edi, dword [ebp - 4]
jne 0x4930a5
movzx ecx, byte [edi]
movzx eax, byte [ebp + 0xb]
jmp 0x4930ac
movzx ecx, byte [ebp + 0xb]
movzx eax, byte [edi]
shl ecx, 8
add ecx, eax
movzx eax, dx
push eax
movzx eax, cx
push eax
push ebx
push str.ntfs_fix_idxrec:_upd_seq__i___Replacing:__.4hx___With:__.4hx_n
call fcn.004bdd06
add eax, 0x40
push eax
call fcn.00479b20
mov edx, dword [ebp - 0x10]
add esp, 0x14
jmp 0x4930d8
mov edi, dword [ebp - 4]
movzx eax, byte [edx + ebx*2]
mov ecx, dword [ebp - 0x1c]
mov byte [ecx], al
movzx eax, byte [edx + ebx*2 + 1]
inc ebx
add dword [ebp - 8], 0x200
mov byte [edi], al
jmp 0x492fe0
mov eax, dword [ebp - 0x20]
movzx ecx, byte [edx + ebx*2 + 1]
cmp dword [eax + 0x98], 1
jne 0x493115
mov eax, 0x100
imul cx, ax
movzx eax, byte [edx + ebx*2]
jmp 0x493122
movzx eax, byte [edx + ebx*2]
mov edx, 0x100
imul ax, dx
mov edi, dword [0x56161c]
add cx, ax
movzx eax, cx
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, eax
test esi, esi
jne 0x493168
push 0xc08
call fcn.004bb5d5
push 0xc08
mov esi, eax
push 0
push esi
call fcn.004c13c0
add esp, 0x10
push esi
push edi
call ebx
test esi, esi
je 0x493180
mov dword [esi], 0
mov byte [esi + 4], 0
mov byte [esi + 0x405], 0
mov byte [esi + 0x806], 0
mov edi, dword [0x56161c]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4931b3
push 0xc08
call fcn.004bb5d5
push 0xc08
mov esi, eax
push 0
push esi
call fcn.004c13c0
add esp, 0x10
push esi
push edi
call ebx
mov eax, dword [ebp + 8]
movzx eax, ax
push eax
mov eax, dword [ebp - 0x24]
movzx eax, ax
push eax
mov eax, dword [ebp - 0x14]
movzx eax, ax
push eax
push str.fix_idxrec:_Incorrect_update_sequence_value_in_index_buffer_nUpdate_Value:_0x_hx_Actual_Value:_0x_hx_Replacement_Value:_0x_hx_nThis_is_typically_because_of_a_corrupted_entry
mov dword [esi], 0x8000009
call fcn.004768f0
add esp, 0x10
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret