Function at 0x1003bd5e
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083fc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push esi
and dword [ebp - 0x48], 0
push 0
call fcn.10040649
pop ecx
lea ecx, [ebp - 0xa4]
call fcn.1004095b
and dword [ebp - 4], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x80], 0x58382bdb
mov dword [ebp - 0x38], 0
jmp 0x1003bdb6
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 3
jge 0x1003bdcc
mov eax, dword [ebp - 0x38]
mov dword [ebp + eax*4 - 0xb0], 0xfffffffa
jmp 0x1003bdaf
mov byte [ebp - 0x16], 0
movzx eax, byte [ebp - 0x16]
test eax, eax
je 0x1003bdeb
push 0
push 0
push 0xb60
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x3c], 2
jmp 0x1003bdfb
mov eax, dword [ebp - 0x3c]
dec eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jl 0x1003bf55
mov dword [ebp - 0x34], 7
mov byte [ebp - 0x13], 0
movzx eax, byte [ebp - 0x13]
test eax, eax
je 0x1003be20
push 0
call fcn.1003ef98
pop ecx
mov dword [ebp - 0x34], 2
jmp 0x1003be30
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x1003bf50
mov dword [ebp - 0x2c], 0xc23afc37
mov dword [ebp - 0x2c], 0
jmp 0x1003be51
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 2
jg 0x1003bf4b
mov dword [ebp - 0x30], 0xb6d0374c
mov byte [ebp - 0x15], 0
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x1003be7b
push 0
push 0xf0b
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 0x30], 2
jmp 0x1003be8b
mov eax, dword [ebp - 0x30]
dec eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jl 0x1003bf46
mov dword [ebp - 0x10], 8
mov dword [ebp - 0x10], 0
jmp 0x1003beac
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jg 0x1003becd
mov byte [ebp - 0x14], 0
movzx eax, byte [ebp - 0x14]
test eax, eax
je 0x1003becb
push 0x149
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
jmp 0x1003bea5
mov dword [ebp - 0x10], 2
jmp 0x1003bedd
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x1003bf41
mov dword [ebp - 0x20], 0xcc48b164
mov dword [ebp - 0x70], 0xe75d
mov dword [ebp - 0x6c], 0xe75d
mov dword [ebp - 0x68], 0xe75d
mov dword [ebp - 0x64], 0xe75d
mov dword [ebp - 0x20], 0
jmp 0x1003bf16
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
jge 0x1003bf2c
mov eax, dword [ebp - 0x20]
mov dword [ebp + eax*4 - 0xb0], 0x2c9ebf49
jmp 0x1003bf0f
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x70]
inc eax
push 4
pop ecx
shl ecx, 1
mov dword [ebp + ecx - 0x70], eax
jmp 0x1003bed6
jmp 0x1003be84
jmp 0x1003be4a
jmp 0x1003be29
jmp 0x1003bdf4
lea eax, [ebp - 0xa4]
push eax
push 0x71e2
lea eax, [ebp + 0xc]
push eax
push 0
push 0x59ff
push 0x5673
call fcn.1003f19f
add esp, 0x18
mov dword [ebp - 0x1c], 0xf8067e30
mov dword [ebp - 0x5c], 0
push 3
lea ecx, [ebp - 0x7c]
call fcn.10027b4a
mov byte [ebp - 4], 1
mov dword [ebp - 0x28], 0
jmp 0x1003bfa5
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 3
jge 0x1003bfbe
push dword [ebp - 0x28]
lea ecx, [ebp - 0x7c]
call fcn.10027bb7
mov dword [eax], 0x60d2f38d
jmp 0x1003bf9e
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x1003bfde
push 0
push 0x7b4
push 0x77ec
call fcn.1003c179
add esp, 0xc
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], eax
jne 0x1003bfef
mov dword [ebp - 0x4c], 1
jmp 0x1003bff3
and dword [ebp - 0x4c], 0
mov dword [ebp - 0x5c], 0x9ec4279c
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x4c], eax
jl 0x1003c00b
mov dword [ebp - 0x58], 1
jmp 0x1003c00f
and dword [ebp - 0x58], 0
cmp dword [ebp - 0x1c], 1
jle 0x1003c01e
mov dword [ebp - 0x60], 1
jmp 0x1003c022
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x60]
add eax, 4
cmp dword [ebp - 0x1c], eax
jle 0x1003c036
mov dword [ebp - 0x44], 1
jmp 0x1003c03a
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x44], eax
jle 0x1003c04b
mov dword [ebp - 0x54], 1
jmp 0x1003c04f
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x54]
je 0x1003c060
mov dword [ebp - 0x50], 1
jmp 0x1003c064
and dword [ebp - 0x50], 0
mov esi, dword [ebp - 0x50]
sub esi, dword [ebp - 0x1c]
push 2
lea ecx, [ebp - 0x7c]
call fcn.10027bb7
mov dword [eax], esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.10027bb2
and dword [ebp - 0x24], 0
jmp 0x1003c08f
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp + 0xc]
jae 0x1003c140
push 1
lea ecx, [ebp - 0x8c]
call fcn.10027b4a
mov byte [ebp - 4], 2
mov dword [ebp - 0x40], 0
jmp 0x1003c0bc
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 1
jge 0x1003c0d5
push dword [ebp - 0x40]
lea ecx, [ebp - 0x8c]
call fcn.10027bb7
and dword [eax], 0
jmp 0x1003c0b5
mov byte [ebp - 0x12], 0
lea eax, [ebp - 0x12]
push eax
push 0
call fcn.1003c2b6
pop ecx
pop ecx
push 0x7fa7
push 0
call fcn.1003c266
pop ecx
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.10027bb2
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0x24]
xor edx, edx
div dword [0x106748b0]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 4]
movzx edx, byte [eax + edx]
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx]
movzx ecx, byte [ecx + eax]
call fcn.10033a9b
push eax
lea ecx, [ebp - 0xa4]
call fcn.1004098a
jmp 0x1003c088
lea eax, [ebp - 0xa4]
push eax
mov ecx, dword [ebp + 8]
call fcn.10027a52
mov eax, dword [ebp - 0x48]
or eax, 1
mov dword [ebp - 0x48], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.10027aab
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret