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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1025a378]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov esi, ecx
mov dword [ebp - 0x434], esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, 0xffffffff
je 0x1012cb07
cmp dword [0x1025a37c], 0xffffffff
je 0x1012cb07
push eax
call ebx
mov dword [ebp - 0x41c], 0
test eax, eax
jne 0x1012cb07
mov eax, dword [0x1025a380]
test eax, eax
je 0x1012cb07
lea ecx, [ebp - 0x41c]
push ecx
call eax
push eax
push dword [0x1025a378]
call edi
push dword [ebp - 0x41c]
push dword [0x1025a37c]
call edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.102134e7
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str._SystemRoot__system32GroupPolicyUserMICROSOFTIEAKinstall.ins
call fcn.100e4de0
push 0x104
lea edi, [esi + 0xd0]
push 0
push edi
call fcn.102134e7
lea esi, [ebp - 0x20c]
add esp, 0x24
mov edx, 0x104
mov ecx, edi
sub esi, edi
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1012cb7c
movzx eax, word [esi + ecx]
test ax, ax
je 0x1012cb75
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x1012cb55
jmp 0x1012cb79
test edx, edx
jne 0x1012cb7c
sub ecx, 2
push str...360back.ins
xor eax, eax
push edi
mov word [ecx], ax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x1012cbbf
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x1012cbae
mov eax, dword [eax + 0x3c]
jmp 0x1012cbb0
xor eax, eax
test eax, eax
je 0x1012cbbf
lea ecx, [ebp - 0x20c]
push ecx
call eax
jmp 0x1012cbcc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1012d03c
test al, 0x10
jne 0x1012d03c
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x1012d101
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10004a70
test al, al
jne 0x1012cc59
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1012cc37
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x418]
call fcn.10004050
mov edi, dword [ebp - 0x428]
mov esi, dword [ebp - 0x418]
cmp edi, dword [ebp - 0x424]
je 0x1012cc87
lea eax, [esi - 0x10]
push eax
call fcn.10004ba0
add eax, 0x10
add esp, 4
mov dword [edi], eax
add dword [ebp - 0x428], 4
jmp 0x1012cc9a
lea eax, [ebp - 0x418]
push eax
push edi
lea ecx, [ebp - 0x42c]
call fcn.100206c0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1012ccb2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push 1
push 0
push ecx
mov esi, esp
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x1012d101
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10219d7c
mov dword [esi], eax
call fcn.10004a70
test al, al
jne 0x1012ccf0
push 0
push 0x10219d7c
mov ecx, esi
call fcn.10004050
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov esi, esp
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x1012d101
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10219d7c
mov dword [esi], eax
call fcn.10004a70
test al, al
jne 0x1012cd30
push 0
push 0x10219d7c
mov ecx, esi
call fcn.10004050
push ecx
mov esi, esp
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x1012d101
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10219d7c
mov dword [esi], eax
call fcn.10004a70
test al, al
jne 0x1012cd6a
push 0
push 0x10219d7c
mov ecx, esi
call fcn.10004050
push ecx
mov esi, esp
call fcn.10003980
test eax, eax
je 0x1012d101
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10219d7c
mov dword [esi], eax
call fcn.10004a70
test al, al
jne 0x1012cda4
push 0
push 0x10219d7c
mov ecx, esi
call fcn.10004050
call fcn.10003980
test eax, eax
je 0x1012d101
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x420]
push 0x2852
mov dword [ebp - 0x420], eax
call fcn.10004a70
test al, al
jne 0x1012ce00
mov ecx, 0x2852
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1012cde0
sub ecx, edx
sar ecx, 1
push ecx
push 0x2852
lea ecx, [ebp - 0x420]
call fcn.10004050
call fcn.10003980
test eax, eax
je 0x1012d101
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x418]
push 0x2807
mov dword [ebp - 0x418], eax
call fcn.10004a70
test al, al
jne 0x1012ce60
mov ecx, 0x2807
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1012ce40
sub ecx, edx
sar ecx, 1
push ecx
push 0x2807
lea ecx, [ebp - 0x418]
call fcn.10004050
call fcn.10003980
test eax, eax
je 0x1012d101
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x430]
push 0x9c8d
mov dword [ebp - 0x430], eax
call fcn.10004a70
test al, al
jne 0x1012cec0
mov ecx, 0x9c8d
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1012cea0
sub ecx, edx
sar ecx, 1
push ecx
push 0x9c8d
lea ecx, [ebp - 0x430]
call fcn.10004050
call fcn.10003980
test eax, eax
je 0x1012d101
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x41c]
push 0x2852
mov dword [ebp - 0x41c], eax
call fcn.10004a70
test al, al
jne 0x1012cf20
mov ecx, 0x2852
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1012cf00
sub ecx, edx
sar ecx, 1
push ecx
push 0x2852
lea ecx, [ebp - 0x41c]
call fcn.10004050
mov edi, dword [ebp - 0x430]
lea eax, [ebp - 0x42c]
mov esi, dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x434]
push 0
push 0xffffffffffffffff
push 4
push 0
push eax
push 0
push dword [ebp - 0x420]
push dword [ebp - 0x418]
push edi
push esi
call fcn.100d6a20
mov ecx, dword [ebp - 0x434]
add esi, 0xfffffff0
mov dword [ecx + 0xc0], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1012cf7a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1012cf92
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x418]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1012cfb0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x420]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1012cfce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x42c]
test esi, esi
je 0x1012d03c
mov edi, dword [ebp - 0x428]
cmp esi, edi
je 0x1012d009
mov edx, dword [esi]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1012cffc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, edi
jne 0x1012cfe2
mov esi, dword [ebp - 0x42c]
mov ecx, dword [ebp - 0x424]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1012d032
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1012d10b
push ecx
push esi
call fcn.102134ff
add esp, 8
mov eax, dword [0x1025a378]
cmp eax, 0xffffffff
je 0x1012d080
cmp dword [0x1025a37c], 0xffffffff
je 0x1012d080
push eax
call ebx
test eax, eax
je 0x1012d080
cmp dword [0x1025a384], 0
je 0x1012d080
push dword [0x1025a37c]
call ebx
push eax
call dword [0x1025a384]
neg eax
sbb eax, eax
inc eax
push eax
push dword [0x1025a378]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp - 0x434]
lea esi, [ebx + 0xc4]
push esi
push dword [esi + 4]
push dword [esi]
call fcn.1012b440
mov eax, dword [esi]
lea ecx, [ebx + 0x500]
add esp, 0xc
mov dword [esi + 4], eax
call fcn.1012fa90
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.102134e7
push 0x104
lea eax, [ebp - 0x414]
push eax
push str._SystemRoot_infiereset.inf
call fcn.100e4de0
add esp, 0x18
lea eax, [ebp - 0x414]
mov ecx, ebx
push eax
call fcn.1012d9c0
mov ecx, ebx
call fcn.1012f4c0
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100030c0
call fcn.10200ab0
int3