Function at 0x417e60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f023f
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push esi
push edi
mov eax, dword [0x535a40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 2
mov dword [ebp - 0x7c], ebx
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x64], eax
mov word [eax], cx
push 2
mov dword [ebp - 4], ecx
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
mov esi, eax
xor eax, eax
mov dword [ebp - 0xa0], esi
mov word [esi], ax
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x3c], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x48], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x60], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x5c], eax
add esp, 0x1c
mov word [eax], cx
cmp dword [ebp + 0x14], 0xffffffff
mov byte [ebp - 4], 6
jne 0x4180db
push 0x4f9d20
mov dword [ebp - 0x1c], ecx
call fcn.004c8d00
push ebx
mov dword [ebp - 0x1c], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x18], ebx
call fcn.004c8d00
push ebx
mov dword [ebp - 0x18], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x10], ebx
call fcn.004c8d00
push ebx
mov dword [ebp - 0x10], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x38], ebx
call fcn.004c8d00
push ebx
mov dword [ebp - 0x38], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x34], ebx
call fcn.004c8d00
push ebx
mov dword [ebp - 0x34], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x30], ebx
call fcn.004c8d00
push ebx
mov dword [ebp - 0x30], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x2c], ebx
call fcn.004c8d00
push ebx
mov dword [ebp - 0x2c], eax
call fcn.004c8d5f
mov eax, dword [ebp + 0x10]
mov edi, 0x4f9d20
test eax, eax
mov dword [ebp - 0x28], ebx
cmovne edi, eax
push edi
call fcn.004c8d00
push ebx
mov dword [ebp - 0x28], eax
call fcn.004c8d5f
add esp, 0x40
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x40]
push eax
call fcn.00409cf0
mov ebx, eax
push 0x4f9d20
mov dword [ebp - 0x24], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x24], eax
call fcn.004c8d5f
mov dword [ebp - 0x20], 0
push edi
call fcn.004c8d00
push 0
mov dword [ebp - 0x20], eax
call fcn.004c8d5f
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x4c]
push eax
call fcn.00409cf0
movzx ecx, byte [ebp + 0x18]
lea edx, [ebp - 0x1c]
push 0xffffffffffffffff
push 0
push 0
push edx
push ecx
push 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x12
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push ebx
push eax
mov eax, dword [ebp + 8]
push 0
push 0xffffffffffffffff
push 0
push eax
call fcn.00405550
add esp, 0x74
mov dword [ebp + 0x14], eax
push dword [ebp - 0x4c]
call fcn.004c8d5f
push dword [ebp - 0x20]
call fcn.004c8d5f
push dword [ebp - 0x24]
call fcn.004c8d5f
push dword [ebp - 0x40]
call fcn.004c8d5f
push dword [ebp - 0x28]
call fcn.004c8d5f
push dword [ebp - 0x2c]
call fcn.004c8d5f
push dword [ebp - 0x30]
call fcn.004c8d5f
push dword [ebp - 0x34]
call fcn.004c8d5f
push dword [ebp - 0x38]
call fcn.004c8d5f
push dword [ebp - 0x10]
call fcn.004c8d5f
push dword [ebp - 0x18]
call fcn.004c8d5f
push dword [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.004c8d5f
add esp, 0x30
xor ebx, ebx
lea eax, [ebp - 0x44]
push eax
push dword [0x539fd0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004086c0
add esp, 0x14
test eax, eax
jne 0x418673
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x44]
call fcn.00415050
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
test eax, eax
jne 0x41866e
nop dword [eax + eax]
push dword [0x539fd0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [ebp - 0x78]
or eax, 0x20019
push ecx
push eax
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x44]
call fcn.004086c0
add esp, 0x14
test eax, eax
jne 0x418652
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push str.Source
push dword [ebp - 0x78]
call fcn.004151a0
add esp, 0x14
test eax, eax
jne 0x41864a
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x74], eax
mov word [eax], cx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], ecx
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 0x13
push eax
push dword [ebp - 0x64]
call fcn.00408a50
add esp, 0xc
test al, al
je 0x4185ca
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x74]
push 0
push eax
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.004069d0
mov edi, dword [ebp - 0x3c]
mov ecx, 0x4f9d20
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8d00
push edi
mov dword [ebp - 0x3c], eax
call fcn.004c8d5f
push dword [ebp - 0x80]
call fcn.004c8d5f
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x3c]
push ebx
call fcn.004069c0
mov dword [ebp - 0x98], eax
mov ebx, 0x4f9d20
mov eax, dword [ebp + 0x10]
test eax, eax
mov dword [ebp - 0x10], 0
cmovne ebx, eax
push ebx
mov dword [ebp - 0x4c], ebx
call fcn.004c8d00
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8d5f
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x88]
push eax
call fcn.00409cf0
add esp, 0x44
mov edi, eax
push 0x4f9d20
mov dword [ebp - 0x18], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x18], eax
call fcn.004c8d5f
push ebx
mov dword [ebp - 0x1c], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x1c], eax
call fcn.004c8d5f
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x84]
push eax
call fcn.00409cf0
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x18
push ecx
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push edi
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00405240
add esp, 0x40
mov bl, al
push dword [ebp - 0x84]
call fcn.004c8d5f
push dword [ebp - 0x1c]
call fcn.004c8d5f
push dword [ebp - 0x18]
call fcn.004c8d5f
push dword [ebp - 0x88]
call fcn.004c8d5f
push dword [ebp - 0x10]
call fcn.004c8d5f
add esp, 0x14
test bl, bl
je 0x4185ca
cmp dword [ebp + 0x14], 0xffffffff
jne 0x4184f1
push 0x4f9d20
mov dword [ebp - 0x10], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x54], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x54], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x50], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x50], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x20], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x20], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x24], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x24], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x28], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x28], eax
call fcn.004c8d5f
push 0x4f9d20
mov dword [ebp - 0x2c], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x2c], eax
call fcn.004c8d5f
mov ebx, dword [ebp - 0x4c]
push ebx
mov dword [ebp - 0x30], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x30], eax
call fcn.004c8d5f
add esp, 0x40
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x20
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x90]
push eax
call fcn.00409cf0
mov edi, eax
push 0x4f9d20
mov dword [ebp - 0x34], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x34], eax
call fcn.004c8d5f
push ebx
mov dword [ebp - 0x38], 0
call fcn.004c8d00
mov dword [ebp - 0x38], eax
push 0
call fcn.004c8d5f
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x23
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x8c]
push eax
call fcn.00409cf0
movzx ebx, byte [ebp + 0x18]
lea ecx, [ebp - 0x10]
push 0xffffffffffffffff
push 0
push 0
push ecx
push ebx
push 0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x24
push ecx
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push edi
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
call fcn.00405550
add esp, 0x74
mov dword [ebp + 0x14], eax
push dword [ebp - 0x8c]
call fcn.004c8d5f
push dword [ebp - 0x38]
call fcn.004c8d5f
push dword [ebp - 0x34]
call fcn.004c8d5f
push dword [ebp - 0x90]
call fcn.004c8d5f
push dword [ebp - 0x30]
call fcn.004c8d5f
push dword [ebp - 0x2c]
call fcn.004c8d5f
push dword [ebp - 0x28]
call fcn.004c8d5f
push dword [ebp - 0x24]
call fcn.004c8d5f
push dword [ebp - 0x20]
call fcn.004c8d5f
push dword [ebp - 0x50]
call fcn.004c8d5f
push dword [ebp - 0x54]
call fcn.004c8d5f
push dword [ebp - 0x10]
call fcn.004c8d5f
add esp, 0x30
jmp 0x4184f5
movzx ebx, byte [ebp + 0x18]
push 0x4f9d20
mov dword [ebp - 0x10], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8d5f
mov edi, dword [ebp - 0x94]
push 0x4f9d20
mov dword [ebp - 0x40], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x40], eax
call fcn.004c8d5f
push dword [ebp - 0x4c]
mov dword [ebp - 0x58], 0
call fcn.004c8d00
push 0
mov dword [ebp - 0x58], eax
call fcn.004c8d5f
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0x27
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x9c]
push eax
call fcn.00409cf0
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x28
push ecx
push ebx
push edi
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 3
push dword [ebp + 0x14]
push dword [ebp - 0x98]
push dword [ebp + 8]
call fcn.00405550
add esp, 0x6c
push dword [ebp - 0x9c]
call fcn.004c8d5f
push dword [ebp - 0x58]
call fcn.004c8d5f
push dword [ebp - 0x40]
call fcn.004c8d5f
push dword [ebp - 0x10]
call fcn.004c8d5f
add esp, 0x10
mov edi, dword [ebp - 0x70]
mov byte [ebp - 4], 6
test edi, edi
je 0x418639
mov ebx, dword [ebp - 0x6c]
cmp edi, ebx
je 0x4185f4
nop dword [eax]
push dword [edi]
call fcn.004c8d5f
add edi, 4
add esp, 4
cmp edi, ebx
jne 0x4185e0
mov edi, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x68]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x41861a
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4186c1
push ecx
push edi
call fcn.004c34a9
add esp, 8
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
push dword [ebp - 0x74]
call fcn.004c8d5f
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
push dword [ebp - 0x78]
call edi
mov ebx, dword [ebp - 0x7c]
lea eax, [ebp - 0x14]
inc ebx
push eax
push ebx
push dword [ebp - 0x44]
mov dword [ebp - 0x7c], ebx
call fcn.00415050
add esp, 0xc
test eax, eax
je 0x418130
push dword [ebp - 0x44]
call edi
push dword [ebp - 0x5c]
call fcn.004c8d5f
push dword [ebp - 0x60]
call fcn.004c8d5f
push dword [ebp - 0x48]
call fcn.004c8d5f
push dword [ebp - 0x3c]
call fcn.004c8d5f
push esi
call fcn.004c8d5f
push dword [ebp - 0x14]
call fcn.004c8d5f
push dword [ebp - 0x64]
call fcn.004c8d5f
mov eax, dword [ebp + 0x14]
add esp, 0x1c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004c8caf
int3