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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx], 0
mov dword [ebp - 4], ecx
test byte [edi], 0xf
mov dword [ebp - 0x1c], 0
movlpd qword [ebp - 0x30], xmm0
mov dword [ebp - 0x14], eax
je 0x481da9
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
jmp 0x481b13
mov ebx, dword [ebp + 0x10]
xorps xmm0, xmm0
mov ecx, 0x28
movlpd qword [ebp - 0x30], xmm0
call fcn.00479b80
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x481f99
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x481b3d
mov dword [eax], esi
jmp 0x481b3f
mov dword [ebx], esi
xor ebx, ebx
mov dword [ebp - 0x1c], esi
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
test byte [edi], 0xf
mov dword [ebp + 0xc], ebx
jbe 0x481bb4
xor edx, edx
mov dword [ebp - 0x18], edx
movzx eax, byte [ebx + edi + 1]
mov ecx, edx
shl eax, cl
inc ebx
cdq
or dword [esi + 0x18], eax
or dword [esi + 0x1c], edx
cmp dword [0x561618], 0
je 0x481b9a
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
movzx ecx, byte [ebx + edi]
push eax
push edx
push eax
push edx
push ecx
push ecx
push dword [ebp + 0xc]
push str.ntfs_make_data_run:_Len_idx:__i_cur:__hhu___hhx__tot:__llu___llx__n
call fcn.004bdd06
add eax, 0x40
push eax
call fcn.00479b20
add esp, 0x24
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
inc ecx
movzx eax, byte [edi]
add edx, 8
and eax, 0xf
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x18], edx
cmp ecx, eax
jb 0x481b57
mov edx, dword [ebp - 4]
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
cmp ecx, dword [edx + 0x34]
ja 0x481eca
jb 0x481bd1
cmp eax, dword [edx + 0x30]
ja 0x481eca
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
mov dword [esi + 8], edx
add edx, eax
mov dword [esi + 0xc], ecx
mov ecx, dword [esi + 0x1c]
adc dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], edx
xor edx, edx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
movzx eax, byte [edi]
mov dword [ebp - 8], edx
test eax, 0xfffffff0
jbe 0x481c75
mov edx, dword [ebp - 0x30]
xor ecx, ecx
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x18], ecx
mov dword [ebp + 0xc], edx
jmp 0x481c13
mov ecx, dword [ebp - 0x18]
movzx eax, byte [ebx + edi + 1]
inc ebx
shl eax, cl
mov ecx, dword [ebp + 0xc]
cdq
or ecx, eax
or esi, edx
cmp dword [0x561618], 0
mov dword [ebp + 0xc], ecx
je 0x481c55
movzx eax, byte [ebx + edi]
push esi
push ecx
push esi
push ecx
push eax
push eax
push dword [ebp - 8]
push str.ntfs_make_data_run:_Off_idx:__i_cur:__hhu___hhx__tot:__llu___llx__n
call fcn.004bdd06
add eax, 0x40
push eax
call fcn.00479b20
mov ecx, dword [ebp + 0xc]
add esp, 0x24
mov edx, dword [ebp - 8]
movzx eax, byte [edi]
inc edx
add dword [ebp - 0x18], 8
shr eax, 4
mov dword [ebp - 8], edx
cmp edx, eax
jb 0x481c10
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
jmp 0x481c81
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 8], eax
mov dword [ebp + 0xc], ecx
cmp byte [ebx + edi], 0
jge 0x481cbf
cmp edx, 8
jae 0x481cbf
mov esi, dword [ebp - 8]
lea ebx, [edx*8]
mov eax, 0xff
xor edx, edx
mov ecx, ebx
call fcn.004c38e0
mov ecx, dword [ebp + 0xc]
add ebx, 8
or ecx, eax
or esi, edx
mov dword [ebp + 0xc], ecx
cmp ebx, 0x40
jb 0x481c96
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
mov ebx, dword [0x561618]
test ebx, ebx
je 0x481ced
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push eax
push ecx
push str.ntfs_make_data_run:_Signed_addr_offset:__lld_Previous_address:__lld_n
call fcn.004bdd06
add eax, 0x40
push eax
call fcn.00479b20
mov ebx, dword [0x561618]
add esp, 0x18
mov edx, dword [ebp + 0xc]
mov eax, edx
mov ecx, dword [ebp - 8]
and eax, ecx
cmp eax, 0xffffffff
jne 0x481db2
mov eax, dword [ebp - 0xc]
or eax, dword [ebp - 0x10]
je 0x481d18
mov eax, dword [ebp - 4]
cmp byte [eax + 0x11c], 0x21
jne 0x481dcb
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
or dword [esi + 0x20], 2
test ebx, ebx
je 0x481d44
push str.ntfs_make_data_run:_Sparse_Run_n
call fcn.004bdd06
add eax, 0x40
push eax
call fcn.00479b20
add esp, 8
mov ebx, dword [ebp - 4]
movzx ecx, byte [edi]
mov eax, ecx
and ecx, 0xf
shr eax, 4
add ecx, edi
lea edi, [eax + 1]
add edi, ecx
test byte [edi], 0xf
jne 0x481b10
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
je 0x481da9
cmp dword [esi], 0
jne 0x481da9
test byte [esi + 0x20], 2
je 0x481da9
mov eax, dword [ebx + 0x40]
mov ecx, dword [ebx + 0x44]
add eax, 1
adc ecx, 0
cmp dword [esi + 0x18], eax
jne 0x481da9
cmp dword [esi + 0x1c], ecx
jne 0x481da9
lea esp, [esp]
mov eax, esi
mov esi, dword [esi]
push eax
mov dword [eax], 0
call fcn.004bae83
add esp, 4
test esi, esi
jne 0x481d90
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edx
or eax, ecx
jne 0x481dcb
cmp dword [ebp + 0x18], 7
jne 0x481d26
cmp dword [ebp + 0x1c], eax
jne 0x481d26
add edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
adc ecx, dword [ebp - 0x10]
mov dword [esi + 0x14], ecx
mov ecx, edx
mov eax, dword [esi + 0x14]
mov dword [ebp - 0xc], ecx
add ecx, dword [esi + 0x18]
mov dword [ebp - 0x10], eax
adc eax, dword [esi + 0x1c]
mov dword [esi + 0x10], edx
cmp eax, dword [ebx + 0x34]
ja 0x481dff
jb 0x481d47
cmp ecx, dword [ebx + 0x30]
jbe 0x481d47
mov edi, dword [0x56161c]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, eax
test esi, esi
jne 0x481e3c
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 0x481e54
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 0x481e87
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
push str.ntfs_make_run:_Run_offset_and_length_is_larger_than_file_system
mov dword [esi], 0x8000009
call fcn.004768f0
mov edi, dword [ebp + 0x10]
add esp, 4
mov esi, dword [edi]
test esi, esi
je 0x481f87
mov eax, esi
mov esi, dword [esi]
push eax
mov dword [eax], 0
call fcn.004bae83
add esp, 4
test esi, esi
jne 0x481ea7
mov dword [edi], esi
lea eax, [esi + 2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [0x56161c]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, eax
test esi, esi
jne 0x481f07
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 0x481f1f
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 0x481f52
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
push str.ntfs_make_run:_Run_length_is_larger_than_file_system
mov dword [esi], 0x8000009
call fcn.004768f0
mov edi, dword [ebp + 0x10]
add esp, 4
mov esi, dword [edi]
test esi, esi
je 0x481f87
mov edi, edi
mov eax, esi
mov esi, dword [esi]
push eax
mov dword [eax], 0
call fcn.004bae83
add esp, 4
test esi, esi
jne 0x481f70
mov dword [edi], 0
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebx]
test esi, esi
je 0x481fb7
nop
mov eax, esi
mov esi, dword [esi]
push eax
mov dword [eax], 0
call fcn.004bae83
add esp, 4
test esi, esi
jne 0x481fa0
pop edi
pop esi
mov dword [ebx], 0
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret