Function at 0x4121f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9027
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push esi
push edi
mov eax, dword [0x4dc6e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x38], eax
mov word [eax], cx
push 2
mov dword [ebp - 4], ecx
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x48], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x4c], eax
add esp, 0xc
mov word [eax], cx
cmp dword [ebp + 0x14], 0xffffffff
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov byte [ebp - 4], 2
jne 0x4123c8
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x34], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x2c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x30], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x28], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x10], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x14], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x18], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x20], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x1c], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.00407620
add esp, 0x48
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xe
push ecx
movzx ecx, byte [ebp + 0x18]
push ecx
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push esi
push eax
mov eax, dword [ebp + 8]
push 0
push 0xffffffffffffffff
push 0
push eax
call fcn.00403eb0
push dword [ebp - 0x3c]
mov dword [ebp + 0x14], eax
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x40]
call fcn.0048faf7
push dword [ebp - 0x24]
call fcn.0048faf7
push dword [ebp - 0x1c]
call fcn.0048faf7
push dword [ebp - 0x20]
call fcn.0048faf7
push dword [ebp - 0x18]
call fcn.0048faf7
push dword [ebp - 0x14]
call fcn.0048faf7
push dword [ebp - 0x10]
call fcn.0048faf7
push dword [ebp - 0x28]
call fcn.0048faf7
push dword [ebp - 0x30]
call fcn.0048faf7
push dword [ebp - 0x2c]
call fcn.0048faf7
push dword [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.0048faf7
add esp, 0x2c
lea eax, [ebp - 0x44]
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push edi
push ebx
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x412a27
push 2
mov dword [ebp - 0x3c], eax
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x20], eax
mov word [eax], cx
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0x13
push eax
push ecx
push dword [ebp - 0x44]
call fcn.00410500
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x20
test eax, eax
jne 0x4129f7
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push esi
push dword [ebp - 0x44]
call fcn.00406320
add esp, 0x14
test eax, eax
je 0x4124ba
push dword [ebp - 0x20]
call fcn.0048faf7
push dword [ebp - 0x18]
call fcn.0048faf7
push dword [ebp - 0x10]
call fcn.0048faf7
push dword [ebp - 0x1c]
call fcn.0048faf7
push dword [ebp - 0x14]
call fcn.0048faf7
jmp 0x412986
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0x4b4c58
push dword [ebp - 0x24]
call fcn.00410620
add esp, 0x14
push dword [ebp - 0x24]
test eax, eax
je 0x4124dd
call ebx
jmp 0x41248d
call ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x7c]
push 0x4afac0
push eax
call fcn.00417070
push 0x4b0594
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.00418660
mov esi, dword [ebp - 0x10]
push dword [eax]
call fcn.0048faa4
push esi
mov dword [ebp - 0x10], eax
call fcn.0048faf7
push dword [ebp - 0x94]
call fcn.0048faf7
push dword [ebp - 0x7c]
call fcn.0048faf7
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xa0]
push 0x4b05b4
push eax
call fcn.00417070
mov esi, dword [ebp - 0x20]
push dword [eax]
call fcn.0048faa4
push esi
mov dword [ebp - 0x20], eax
call fcn.0048faf7
push dword [ebp - 0xa0]
call fcn.0048faf7
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x24]
add esp, 0x40
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push esi
push SysReAllocStringLen
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x41248d
mov esi, dword [ebp - 0x10]
push 0x4af9b8
call fcn.0048faa4
push esi
mov dword [ebp - 0x10], eax
call fcn.0048faf7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4af9b8
push dword [ebp - 0x24]
call fcn.00410620
add esp, 0x1c
push dword [ebp - 0x24]
call ebx
mov eax, dword [ebp - 0x10]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4125d0
sub eax, edx
sar eax, 1
je 0x41248d
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0xb0], eax
mov word [eax], cx
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xa4], ecx
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 0x14
push eax
push dword [ebp - 0x10]
call fcn.00406bd0
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xb0]
push 0
push eax
lea eax, [ebp - 0x88]
push ebx
push eax
call fcn.00404cf0
mov esi, dword [ebp - 0x18]
push dword [eax]
call fcn.0048faa4
push esi
mov dword [ebp - 0x18], eax
call fcn.0048faf7
push dword [ebp - 0x88]
call fcn.0048faf7
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x18]
push ebx
call fcn.00404ce0
test edi, edi
mov dword [ebp - 0x74], eax
mov ecx, 0x4af9b8
cmovne ecx, edi
push ecx
call fcn.0048faa4
mov dword [ebp - 0x30], eax
push 0x4af9b8
call fcn.0048faa4
add esp, 0x40
mov dword [ebp - 0x2c], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp - 0x90]
push ebx
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x18
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x98]
push ebx
push eax
call fcn.00407620
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push esi
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00403c00
add esp, 0x44
mov bl, al
push dword [ebp - 0x98]
call fcn.0048faf7
push dword [ebp - 0x90]
call fcn.0048faf7
push dword [ebp - 0x34]
call fcn.0048faf7
push dword [ebp - 0x2c]
call fcn.0048faf7
push dword [ebp - 0x30]
call fcn.0048faf7
add esp, 0x14
test bl, bl
je 0x41294d
cmp dword [ebp + 0x14], 0xffffffff
jne 0x4128ae
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x58], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x54], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x64], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x6c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x50], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x78], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x70], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x68], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x5c], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 0x23
push eax
lea eax, [ebp - 0x84]
push ebx
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 0x24
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00407620
add esp, 0x48
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x25
push ecx
movzx ecx, byte [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x54]
push 0
push ecx
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
call fcn.00403eb0
push dword [ebp - 0x80]
mov dword [ebp + 0x14], eax
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x84]
call fcn.0048faf7
push dword [ebp - 0x28]
call fcn.0048faf7
push dword [ebp - 0x5c]
call fcn.0048faf7
push dword [ebp - 0x68]
call fcn.0048faf7
push dword [ebp - 0x70]
call fcn.0048faf7
push dword [ebp - 0x78]
call fcn.0048faf7
push dword [ebp - 0x50]
call fcn.0048faf7
push dword [ebp - 0x6c]
call fcn.0048faf7
push dword [ebp - 0x64]
call fcn.0048faf7
push dword [ebp - 0x54]
call fcn.0048faf7
push dword [ebp - 0x58]
call fcn.0048faf7
add esp, 0x2c
jmp 0x4128b1
mov ebx, dword [ebp + 0xc]
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x40], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0x27
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x9c]
push ebx
push eax
call fcn.00407620
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x28
push ecx
movzx ecx, byte [ebp + 0x18]
push ecx
push dword [ebp - 0x8c]
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 3
push dword [ebp + 0x14]
push dword [ebp - 0x74]
push dword [ebp + 8]
call fcn.00403eb0
add esp, 0x5c
push dword [ebp - 0x9c]
call fcn.0048faf7
push dword [ebp - 0x60]
call fcn.0048faf7
push dword [ebp - 0x40]
call fcn.0048faf7
add esp, 0xc
lea ecx, [ebp - 0xb0]
call fcn.00402130
push dword [ebp - 0x20]
call fcn.0048faf7
push dword [ebp - 0x18]
call fcn.0048faf7
push dword [ebp - 0x10]
call fcn.0048faf7
push dword [ebp - 0x1c]
call fcn.0048faf7
push dword [ebp - 0x14]
call fcn.0048faf7
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x3c]
add esp, 0x14
inc esi
mov dword [ebp - 0x3c], esi
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x20], eax
mov word [eax], cx
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0x13
push eax
push esi
push dword [ebp - 0x44]
call fcn.00410500
add esp, 0x20
test eax, eax
je 0x412462
push dword [ebp - 0x20]
call fcn.0048faf7
push dword [ebp - 0x18]
call fcn.0048faf7
push dword [ebp - 0x10]
call fcn.0048faf7
push dword [ebp - 0x1c]
call fcn.0048faf7
push dword [ebp - 0x14]
call fcn.0048faf7
add esp, 0x14
push dword [ebp - 0x44]
call ebx
push dword [ebp - 0x4c]
call fcn.0048faf7
push dword [ebp - 0x48]
call fcn.0048faf7
push dword [ebp - 0x38]
call fcn.0048faf7
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret