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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov ebx, edx
call fcn.000ee7f0
test ebx, ebx
jne 0x1309ae
call fcn.000ee7f0
mov edi, dword [0x1aa224]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x130992
push 0xc08
call fcn.0015c8ae
add esp, 4
mov esi, eax
push 0xc08
push ebx
push esi
call fcn.00153d90
add esp, 0xc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push str.tsk_fs_attr_add_run:_Error__a_fs_attr_is_NULL
mov dword [esi], 0x8000006
call fcn.000ee5f0
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
test esi, esi
jne 0x130a1c
call fcn.000ee7f0
mov edi, dword [0x1aa224]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x1309f4
push 0xc08
call fcn.0015c8ae
add esp, 4
mov esi, eax
push 0xc08
push 0
push esi
call fcn.00153d90
add esp, 0xc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esi], 0x8000006
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
push dword [eax + 0xc]
push dword [eax + 8]
push str.tsk_fs_attr_add_run:_Error__a_data_run_new_is_NULL___llu_
call fcn.000ee5f0
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov eax, esi
movlpd qword [ebp - 0x14], xmm0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
nop dword [eax]
add edx, dword [eax + 0x18]
adc ecx, dword [eax + 0x1c]
mov eax, dword [eax]
test eax, eax
jne 0x130a30
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebx + 0x2c]
mov dword [ebp - 0x10], edx
test ecx, ecx
je 0x130a83
mov eax, dword [ecx + 0x18]
add eax, dword [ecx + 8]
mov edx, dword [ecx + 0x1c]
adc edx, dword [ecx + 0xc]
cmp eax, dword [esi + 8]
jne 0x130a83
cmp edx, dword [esi + 0xc]
jne 0x130a83
mov dword [ecx], esi
mov eax, dword [ebx + 0x2c]
cmp dword [eax], 0
je 0x130d5a
nop dword [eax]
mov eax, dword [eax]
mov dword [ebx + 0x2c], eax
cmp dword [eax], 0
jne 0x130a70
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebx + 0x28]
xor ecx, ecx
mov dword [ebp - 8], ecx
test edi, edi
je 0x130cdf
cmp dword [0x1aa220], 0
mov edx, 0x19aaf0
je 0x130ad5
test byte [edi + 0x20], 1
mov eax, 0x19aaec
cmove eax, edx
push eax
push dword [edi + 0x1c]
push dword [edi + 0x18]
push dword [edi + 0xc]
push dword [edi + 8]
push str.tsk_fs_attr_add:__llu__llu__Filler:__s__n
push 2
call fcn.00158e14
add esp, 4
push eax
call fcn.000f0dc0
mov ecx, dword [ebp - 8]
add esp, 0x1c
test byte [edi + 0x20], 1
je 0x130b10
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 8]
cmp edx, dword [esi + 0xc]
ja 0x130c5a
jb 0x130af5
cmp eax, dword [esi + 8]
ja 0x130c5a
mov edx, dword [edi + 0x18]
add edx, eax
mov eax, dword [edi + 0x1c]
adc eax, dword [edi + 0xc]
cmp eax, dword [esi + 0xc]
ja 0x130b8b
jb 0x130b10
cmp edx, dword [esi + 8]
ja 0x130b8b
mov ecx, edi
mov edi, dword [edi]
mov dword [ebp - 8], ecx
test edi, edi
jne 0x130a93
mov edi, ecx
test edi, edi
je 0x130ce1
mov eax, dword [edi + 8]
add eax, dword [edi + 0x18]
mov ecx, dword [edi + 0xc]
adc ecx, dword [edi + 0x1c]
mov edx, dword [esi + 8]
cmp ecx, dword [esi + 0xc]
jb 0x130cd4
ja 0x130b4b
cmp eax, edx
jbe 0x130cd6
mov eax, dword [edi + 0x10]
cmp eax, dword [esi + 0x10]
jne 0x130c9e
mov eax, dword [edi + 0x14]
cmp eax, dword [esi + 0x14]
jne 0x130c9e
mov eax, dword [edi + 0x18]
cmp eax, dword [esi + 0x18]
jne 0x130c9e
mov eax, dword [edi + 0x1c]
cmp eax, dword [esi + 0x1c]
jne 0x130c9e
mov ecx, esi
call fcn.00130440
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 8]
cmp eax, dword [esi + 8]
jne 0x130ba8
mov eax, dword [edi + 0xc]
cmp eax, dword [esi + 0xc]
jne 0x130ba8
test ecx, ecx
je 0x130ba3
mov dword [ecx], esi
jmp 0x130bfc
mov dword [ebx + 0x28], esi
jmp 0x130bfc
mov ecx, 0x28
call fcn.000f2310
mov edx, eax
test edx, edx
je 0x1309a5
mov eax, dword [ebp - 8]
test eax, eax
je 0x130bc7
mov dword [eax], edx
jmp 0x130bca
mov dword [ebx + 0x28], edx
mov dword [edx], esi
mov ecx, dword [esi + 8]
sub ecx, dword [edi + 8]
mov eax, dword [esi + 0xc]
sbb eax, dword [edi + 0xc]
mov dword [edx + 0x1c], eax
mov dword [edx + 0x18], ecx
mov eax, dword [edi + 8]
mov dword [edx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [edx + 0xc], eax
mov eax, ecx
mov dword [edx + 0x20], 1
sub dword [edi + 0x18], eax
mov eax, dword [edx + 0x1c]
sbb dword [edi + 0x1c], eax
cmp dword [esi], 0
mov ecx, esi
je 0x130c0a
mov ecx, dword [ecx]
cmp dword [ecx], 0
jne 0x130c03
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
cmp edx, dword [edi + 0x18]
jne 0x130c37
cmp eax, dword [edi + 0x1c]
jne 0x130c37
mov eax, dword [edi]
mov dword [ecx], eax
test eax, eax
jne 0x130c25
mov dword [ebx + 0x2c], ecx
push edi
call fcn.00158d47
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ecx], edi
sub dword [edi + 0x18], edx
sbb dword [edi + 0x1c], eax
mov ecx, dword [esi + 0x18]
add ecx, dword [esi + 8]
mov eax, dword [esi + 0x1c]
adc eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
xor al, al
mov dword [edi + 8], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.000ee7f0
mov ecx, 0x800000f
call fcn.000ee550
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [edi + 0xc]
push dword [edi + 8]
push dword [esi + 0xc]
push dword [esi + 8]
push str.tsk_fs_attr_add_run:_could_not_add_data_run_b.c._offset___llu__is_larger_than_FILLER___llu____llu_
call fcn.000ee5f0
add esp, 0x1c
mov ecx, ebx
call fcn.001308c0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.000ee7f0
mov ecx, 0x800000f
call fcn.000ee550
mov ecx, dword [edi + 8]
add ecx, dword [edi + 0x18]
mov eax, dword [edi + 0xc]
adc eax, dword [edi + 0x1c]
push eax
mov eax, dword [ebx + 4]
push ecx
push dword [esi + 0xc]
mov eax, dword [eax + 8]
push dword [esi + 8]
push dword [eax + 0xc]
push dword [eax + 8]
push str.fs_attr_add_run:_error_adding_additional_run___llu_:_No_filler_entry_for__llu._Final:__llu
jmp 0x130c86
cmp eax, edx
jne 0x130ce1
cmp ecx, dword [esi + 0xc]
je 0x130ce9
jmp 0x130ce1
xor edi, edi
mov eax, dword [esi + 8]
or eax, dword [esi + 0xc]
jne 0x130cf6
test edi, edi
je 0x130cf1
mov dword [edi], esi
jmp 0x130d42
mov dword [ebx + 0x28], esi
jmp 0x130d42
mov ecx, 0x28
call fcn.000f2310
mov edx, eax
test edx, edx
je 0x1309a5
test edi, edi
je 0x130d24
mov ecx, dword [edi + 0x18]
add ecx, dword [edi + 8]
mov eax, dword [edi + 0x1c]
adc eax, dword [edi + 0xc]
mov dword [edi], edx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], eax
jmp 0x130d27
mov dword [ebx + 0x28], edx
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
sub ecx, dword [edx + 8]
mov dword [edx + 0x18], ecx
sbb eax, dword [edx + 0xc]
mov dword [edx + 0x1c], eax
mov dword [edx + 0x20], 1
mov dword [edx], esi
mov dword [ebx + 0x2c], esi
cmp dword [esi], 0
je 0x130d5a
nop word [eax + eax]
mov esi, dword [esi]
mov dword [ebx + 0x2c], esi
cmp dword [esi], 0
jne 0x130d50
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret