Function at 0x4187c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1e9e
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x53ba20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push 2
mov dword [ebp - 0x29c], edi
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x274], ebx
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x238], eax
mov word [eax], cx
push 2
mov dword [ebp - 4], ecx
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x25c], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x280], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x27c], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x258], eax
add esp, 0x14
mov word [eax], cx
cmp dword [ebp + 0x14], 0xffffffff
mov byte [ebp - 4], 4
jne 0x418ae7
push 0x4fbd20
mov dword [ebp - 0x244], ecx
call fcn.004c8c20
push 0
mov dword [ebp - 0x244], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x240], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x240], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x220], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x220], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x23c], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x23c], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x21c], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x21c], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x224], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x224], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x228], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x228], eax
call fcn.004c8c7f
test edi, edi
mov dword [ebp - 0x22c], 0
mov esi, 0x4fbd20
cmovne esi, edi
push esi
call fcn.004c8c20
push 0
mov dword [ebp - 0x22c], eax
call fcn.004c8c7f
add esp, 0x40
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x24c]
push ebx
push eax
call fcn.00409d10
mov edi, eax
push 0x4fbd20
mov dword [ebp - 0x230], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x230], eax
call fcn.004c8c7f
push esi
mov dword [ebp - 0x234], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x234], eax
call fcn.004c8c7f
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x250]
push ebx
push eax
call fcn.00409d10
movzx ecx, byte [ebp + 0x18]
lea edx, [ebp - 0x244]
push 0xffffffffffffffff
push 0
push 0
push edx
push ecx
push 0
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0x10
push ecx
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x224]
push ecx
push edi
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp - 0x248]
call fcn.00405510
add esp, 0x74
mov dword [ebp + 0x14], eax
push dword [ebp - 0x250]
call fcn.004c8c7f
push dword [ebp - 0x234]
call fcn.004c8c7f
push dword [ebp - 0x230]
call fcn.004c8c7f
push dword [ebp - 0x24c]
call fcn.004c8c7f
push dword [ebp - 0x22c]
call fcn.004c8c7f
push dword [ebp - 0x228]
call fcn.004c8c7f
push dword [ebp - 0x224]
call fcn.004c8c7f
push dword [ebp - 0x21c]
call fcn.004c8c7f
push dword [ebp - 0x23c]
call fcn.004c8c7f
push dword [ebp - 0x220]
call fcn.004c8c7f
push dword [ebp - 0x240]
call fcn.004c8c7f
push dword [ebp - 0x244]
mov byte [ebp - 4], 4
call fcn.004c8c7f
mov edi, dword [ebp - 0x29c]
add esp, 0x30
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea eax, [ebp - 0x254]
push eax
push dword [0x540000]
call esi
or eax, 0x20019
push eax
push 0
push edi
push ebx
call fcn.00408690
add esp, 0x14
test eax, eax
jne 0x418cea
xor edi, edi
push 2
mov dword [ebp - 0x234], edi
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x228], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x230], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x21c], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x224], eax
mov word [eax], cx
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 0x14
push eax
push ecx
push dword [ebp - 0x254]
call fcn.00415050
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x1c
test eax, eax
jne 0x418cb3
nop
push dword [0x540000]
call esi
lea ecx, [ebp - 0x22c]
or eax, 0x20019
push ecx
push eax
push 0
push dword [ebp - 0x228]
push dword [ebp - 0x254]
call fcn.00408690
add esp, 0x14
test eax, eax
jne 0x418c13
lea eax, [ebp - 0x238]
push eax
push 0
push 0
push 0x50191c
push dword [ebp - 0x22c]
call fcn.004151a0
add esp, 0x14
test eax, eax
je 0x418d43
lea eax, [ebp - 0x238]
push eax
push 0
push 0
push 0x501930
push dword [ebp - 0x22c]
call fcn.004151a0
add esp, 0x14
test eax, eax
je 0x418d43
push dword [ebp - 0x22c]
call ebx
push dword [ebp - 0x224]
call fcn.004c8c7f
push dword [ebp - 0x21c]
call fcn.004c8c7f
push dword [ebp - 0x230]
call fcn.004c8c7f
push dword [ebp - 0x228]
call fcn.004c8c7f
add esp, 0x10
inc edi
push 2
mov dword [ebp - 0x234], edi
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x228], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x230], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x21c], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x224], eax
mov word [eax], cx
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 0x14
push eax
push edi
push dword [ebp - 0x254]
invalid
invalid