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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1025b450]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x428], edi
cmp eax, 0xffffffff
je 0x1011c2f5
cmp dword [0x1025b454], 0xffffffff
je 0x1011c2f5
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x41c], 0
test eax, eax
jne 0x1011c2f5
mov eax, dword [0x1025b458]
test eax, eax
je 0x1011c2f5
lea ecx, [ebp - 0x41c]
push ecx
call eax
push eax
push dword [0x1025b450]
call ebx
push dword [ebp - 0x41c]
push dword [0x1025b454]
call ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.101f9fcf
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str._SystemRoot__system32GroupPolicyUserMICROSOFTIEAKinstall.ins
call fcn.100da210
push 0x104
add edi, 0xd0
push 0
push edi
call fcn.101f9fcf
lea esi, [ebp - 0x20c]
add esp, 0x24
mov edx, 0x104
mov ecx, edi
sub esi, edi
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1011c363
movzx eax, word [esi + ecx]
test ax, ax
je 0x1011c363
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x1011c343
jmp 0x1011c367
test edx, edx
jne 0x1011c36a
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.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1011c391
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xe
call fcn.10003680
add esp, 4
test eax, eax
je 0x1011c3aa
lea ecx, [ebp - 0x20c]
push ecx
call eax
jmp 0x1011c3b7
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
test esi, esi
je 0x1011c3c4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 0xffffffff
je 0x1011c7dd
test bl, 0x10
jne 0x1011c7dd
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10023e80
test al, al
jne 0x1011c452
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
jmp 0x1011c430
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1011c430
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x418]
call fcn.10003740
mov edi, dword [ebp - 0x430]
mov esi, dword [ebp - 0x418]
cmp dword [ebp - 0x42c], edi
je 0x1011c480
lea eax, [esi - 0x10]
push eax
call fcn.10002a60
add eax, 0x10
add esp, 4
mov dword [edi], eax
add dword [ebp - 0x430], 4
jmp 0x1011c493
lea eax, [ebp - 0x418]
push eax
push edi
lea ecx, [ebp - 0x434]
call fcn.1001ddd0
or edi, 0xffffffff
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1011c4ad
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.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10202940
mov dword [esi], eax
call fcn.10023e80
test al, al
jne 0x1011c4e3
push 0
push 0x10202940
mov ecx, esi
call fcn.10003740
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov esi, esp
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10202940
mov dword [esi], eax
call fcn.10023e80
test al, al
jne 0x1011c51b
push 0
push 0x10202940
mov ecx, esi
call fcn.10003740
push ecx
mov esi, esp
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10202940
mov dword [esi], eax
call fcn.10023e80
test al, al
jne 0x1011c54d
push 0
push 0x10202940
mov ecx, esi
call fcn.10003740
push ecx
mov esi, esp
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov ecx, esi
push 0x10202940
mov dword [esi], eax
call fcn.10023e80
test al, al
jne 0x1011c57f
push 0
push 0x10202940
mov ecx, esi
call fcn.10003740
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x424]
push 0x10202940
mov dword [ebp - 0x424], eax
call fcn.10023e80
test al, al
jne 0x1011c5ba
push 0
push 0x10202940
lea ecx, [ebp - 0x424]
call fcn.10003740
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x440]
push 0x2852
push eax
call fcn.100053d0
add esp, 0xc
mov esi, dword [eax]
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x41c]
push 0x2807
mov dword [ebp - 0x41c], eax
call fcn.10023e80
test al, al
jne 0x1011c630
mov ecx, 0x2807
lea edx, [ecx + 2]
jmp 0x1011c610
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1011c610
sub ecx, edx
sar ecx, 1
push ecx
push 0x2807
lea ecx, [ebp - 0x41c]
call fcn.10003740
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x420]
push 0x10202940
mov dword [ebp - 0x420], eax
call fcn.10023e80
test al, al
jne 0x1011c66b
push 0
push 0x10202940
lea ecx, [ebp - 0x420]
call fcn.10003740
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x43c]
push 0x9c8d
push eax
call fcn.100053d0
add esp, 0xc
mov ebx, dword [eax]
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x418]
push 0x10202940
mov dword [ebp - 0x418], eax
call fcn.10023e80
test al, al
jne 0x1011c6c3
push 0
push 0x10202940
lea ecx, [ebp - 0x418]
call fcn.10003740
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x438]
push 0x2852
push eax
call fcn.100053d0
add esp, 0xc
lea ecx, [ebp - 0x434]
push 0
push 0xffffffffffffffff
push 4
push 0
push ecx
push 0
push esi
mov esi, dword [ebp - 0x41c]
push esi
push ebx
push dword [eax]
mov ebx, dword [ebp - 0x428]
mov ecx, ebx
call fcn.100cd930
mov edx, dword [ebp - 0x438]
mov dword [ebx + 0xc0], eax
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1011c72a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x418]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1011c747
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x43c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1011c764
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x420]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1011c781
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1011c798
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x440]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1011c7b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x1011c7d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x434]
call fcn.1002a3c0
jmp 0x1011c7e3
mov ebx, dword [ebp - 0x428]
mov eax, dword [0x1025b450]
cmp eax, 0xffffffff
je 0x1011c82d
cmp dword [0x1025b454], 0xffffffff
je 0x1011c82d
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
je 0x1011c82d
cmp dword [0x1025b45c], 0
je 0x1011c82d
push dword [0x1025b454]
call esi
push eax
call dword [0x1025b45c]
neg eax
sbb eax, eax
inc eax
push eax
push dword [0x1025b450]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea esi, [ebx + 0xc4]
push esi
push dword [esi + 4]
push dword [esi]
call fcn.1011b0b0
mov eax, dword [esi]
lea ecx, [ebx + 0x500]
add esp, 0xc
mov dword [esi + 4], eax
call fcn.1011ed30
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.101f9fcf
push 0x104
lea eax, [ebp - 0x414]
push eax
push str._SystemRoot_infiereset.inf
call fcn.100da210
add esp, 0x18
lea eax, [ebp - 0x414]
mov ecx, ebx
push eax
call fcn.1011d060
mov ecx, ebx
call fcn.1011e7b0
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret