Function at 0x4035f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4efe5c
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push esi
push edi
mov eax, dword [0x53ba20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x68], eax
mov word [eax], cx
push 2
mov dword [ebp - 4], ecx
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x3c], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x40], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x64], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x60], eax
add esp, 0x14
mov word [eax], cx
cmp dword [ebp + 0x18], 0xffffffff
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 4
jne 0x403872
push 0x4fbd20
mov dword [ebp - 0x34], ecx
call fcn.004c8c20
push 0
mov dword [ebp - 0x34], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x30], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x30], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x2c], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x2c], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x28], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x28], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x24], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x24], eax
call fcn.004c8c7f
mov eax, dword [ebp + 0x14]
mov edi, 0x4fbd20
test eax, eax
mov dword [ebp - 0x20], 0
cmovne edi, eax
push edi
call fcn.004c8c20
push 0
mov dword [ebp - 0x20], eax
call fcn.004c8c7f
mov eax, dword [ebp + 0x10]
mov esi, 0x4fbd20
test eax, eax
mov dword [ebp - 0x1c], 0
cmovne esi, eax
push esi
call fcn.004c8c20
push 0
mov dword [ebp - 0x1c], eax
call fcn.004c8c7f
add esp, 0x40
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.00409d10
mov ebx, eax
push edi
mov dword [ebp - 0x18], 0
call fcn.004c8c20
mov dword [ebp - 0x18], eax
push 0
call fcn.004c8c7f
push esi
mov dword [ebp - 0x14], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8c7f
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00409d10
movzx ecx, byte [ebp + 0x1c]
lea edx, [ebp - 0x34]
push 0xffffffffffffffff
push 0
push 0
push edx
push ecx
push 0
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x10
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push ebx
push eax
push 0
push 0xffffffffffffffff
push 0
push esi
call fcn.00405510
add esp, 0x74
mov dword [ebp + 0x18], eax
push dword [ebp - 0x44]
call fcn.004c8c7f
push dword [ebp - 0x14]
call fcn.004c8c7f
push dword [ebp - 0x18]
call fcn.004c8c7f
push dword [ebp - 0x38]
call fcn.004c8c7f
push dword [ebp - 0x1c]
call fcn.004c8c7f
push dword [ebp - 0x20]
call fcn.004c8c7f
push dword [ebp - 0x24]
call fcn.004c8c7f
push dword [ebp - 0x28]
call fcn.004c8c7f
push dword [ebp - 0x10]
call fcn.004c8c7f
push dword [ebp - 0x2c]
call fcn.004c8c7f
push dword [ebp - 0x30]
call fcn.004c8c7f
push dword [ebp - 0x34]
mov byte [ebp - 4], 4
call fcn.004c8c7f
mov ebx, dword [ebp + 0xc]
add esp, 0x30
lea eax, [ebp - 0x80]
push eax
push dword [0x540000]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push dword [ebp + 0x10]
push ebx
call fcn.00408690
add esp, 0x14
test eax, eax
jne 0x403e65
mov ebx, dword [ebp + 0x14]
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push ebx
push dword [ebp - 0x80]
call int.004151a0
add esp, 0x14
test eax, eax
jne 0x403e5c
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
push 0x20
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 0x11
push eax
push 0x2c
push dword [ebp - 0x68]
call fcn.00408b80
mov edx, dword [ebp - 0x78]
add esp, 0x10
mov ecx, dword [ebp - 0x7c]
mov eax, edx
sub eax, ecx
mov dword [ebp - 0x38], edx
sar eax, 4
xor edi, edi
test eax, eax
je 0x403d9d
mov edx, dword [ebp + 0x10]
test ebx, ebx
mov eax, 0x4fbd20
cmovne eax, ebx
test edx, edx
mov dword [ebp - 0x50], eax
mov eax, 0x4fbd20
cmovne eax, edx
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x44], ebx
nop dword [eax]
lea eax, [ecx + ebx]
push 0
push eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.004069a0
mov esi, dword [ebp - 0x3c]
mov ecx, 0x4fbd20
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8c20
push esi
mov dword [ebp - 0x3c], eax
call fcn.004c8c7f
push dword [ebp - 0x84]
call fcn.004c8c7f
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3c]
mov eax, dword [ebp + 8]
push eax
call fcn.00406990
mov ebx, dword [ebp - 0x50]
push ebx
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
push dword [ebp - 0x14]
mov dword [ebp - 0x2c], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x2c], eax
call fcn.004c8c7f
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00409d10
add esp, 0x4c
mov esi, eax
push ebx
mov dword [ebp - 0x30], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x30], eax
call fcn.004c8c7f
push dword [ebp - 0x14]
mov dword [ebp - 0x34], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x34], eax
call fcn.004c8c7f
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x88]
push eax
call fcn.00409d10
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x17
push ecx
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push dword [ebp - 0x38]
push esi
mov esi, dword [ebp + 8]
push eax
push esi
call fcn.00405200
add esp, 0x40
mov bl, al
push dword [ebp - 0x88]
call fcn.004c8c7f
push dword [ebp - 0x34]
call fcn.004c8c7f
push dword [ebp - 0x30]
call fcn.004c8c7f
push dword [ebp - 0x8c]
call fcn.004c8c7f
push dword [ebp - 0x2c]
call fcn.004c8c7f
push dword [ebp - 0x10]
mov byte [ebp - 4], 0x11
call fcn.004c8c7f
add esp, 0x18
test bl, bl
je 0x403d7b
cmp dword [ebp + 0x18], 0xffffffff
jne 0x403c7c
push 0x4fbd20
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x4c], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x4c], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x48], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x48], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x70], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x70], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x6c], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x6c], eax
call fcn.004c8c7f
push 0x4fbd20
mov dword [ebp - 0x18], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x18], eax
call fcn.004c8c7f
mov ebx, dword [ebp - 0x50]
push ebx
mov dword [ebp - 0x1c], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x1c], eax
call fcn.004c8c7f
push dword [ebp - 0x14]
mov dword [ebp - 0x20], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x20], eax
call fcn.004c8c7f
add esp, 0x40
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0x1f
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x94]
push eax
call fcn.00409d10
mov esi, eax
push ebx
mov dword [ebp - 0x24], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x24], eax
call fcn.004c8c7f
push dword [ebp - 0x14]
mov dword [ebp - 0x28], 0
call fcn.004c8c20
mov dword [ebp - 0x28], eax
push 0
call fcn.004c8c7f
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x22
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x90]
push eax
call fcn.00409d10
movzx ebx, byte [ebp + 0x1c]
lea ecx, [ebp - 0x10]
push 0xffffffffffffffff
push 0
push 0
push ecx
push ebx
push 0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x23
push ecx
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push esi
push eax
mov eax, dword [ebp + 8]
push 0
push 0xffffffffffffffff
push 0
push eax
call fcn.00405510
add esp, 0x74
mov dword [ebp + 0x18], eax
push dword [ebp - 0x90]
call fcn.004c8c7f
push dword [ebp - 0x28]
call fcn.004c8c7f
push dword [ebp - 0x24]
call fcn.004c8c7f
push dword [ebp - 0x94]
call fcn.004c8c7f
push dword [ebp - 0x20]
call fcn.004c8c7f
push dword [ebp - 0x1c]
call fcn.004c8c7f
push dword [ebp - 0x18]
call fcn.004c8c7f
push dword [ebp - 0x6c]
call fcn.004c8c7f
push dword [ebp - 0x70]
call fcn.004c8c7f
push dword [ebp - 0x48]
call fcn.004c8c7f
push dword [ebp - 0x4c]
call fcn.004c8c7f
push dword [ebp - 0x10]
call fcn.004c8c7f
add esp, 0x30
jmp 0x403c80
movzx ebx, byte [ebp + 0x1c]
push 0x4fbd20
mov dword [ebp - 0x10], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
mov esi, dword [ebp - 0x98]
push 0x4fbd20
mov dword [ebp - 0x5c], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x5c], eax
call fcn.004c8c7f
mov eax, dword [ebp - 0x50]
push eax
mov dword [ebp - 0x58], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x58], eax
call fcn.004c8c7f
push dword [ebp - 0x14]
mov dword [ebp - 0x54], 0
call fcn.004c8c20
push 0
mov dword [ebp - 0x54], eax
call fcn.004c8c7f
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0x27
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409d10
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x28
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push eax
push dword [ebp - 0x38]
push 5
push dword [ebp + 0x18]
push dword [ebp - 0x9c]
push esi
call fcn.00405510
add esp, 0x74
push dword [ebp - 0xa0]
call fcn.004c8c7f
push dword [ebp - 0x54]
call fcn.004c8c7f
push dword [ebp - 0x58]
call fcn.004c8c7f
push dword [ebp - 0x5c]
call fcn.004c8c7f
push dword [ebp - 0x10]
mov byte [ebp - 4], 0x11
call fcn.004c8c7f
add esp, 0x14
mov edx, dword [ebp - 0x78]
inc edi
mov ecx, dword [ebp - 0x7c]
mov eax, edx
mov ebx, dword [ebp - 0x44]
sub eax, ecx
add ebx, 0x10
sar eax, 4
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x38], edx
cmp edi, eax
jb 0x403920
test ecx, ecx
je 0x403e5c
cmp ecx, edx
je 0x403e30
lea edi, [ecx + 4]
mov esi, dword [edi]
test esi, esi
je 0x403e17
mov ebx, dword [edi + 4]
cmp esi, ebx
je 0x403dd1
nop dword [eax]
push dword [esi]
call fcn.004c8c7f
add esi, 4
add esp, 4
cmp esi, ebx
jne 0x403dc0
mov ecx, dword [edi + 8]
mov eax, dword [edi]
sub ecx, eax
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x403df9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ea5
mov eax, edx
push ecx
push eax
call fcn.004c3279
mov dword [edi], 0
add esp, 8
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push dword [edi - 4]
call fcn.004c8c7f
add edi, 0x10
add esp, 4
lea eax, [edi - 4]
cmp eax, dword [ebp - 0x38]
jne 0x403db0
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x74]
mov eax, ecx
sub edx, ecx
and edx, 0xfffffff0
cmp edx, 0x1000
jb 0x403e52
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ea5
push edx
push ecx
call fcn.004c3279
add esp, 8
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x60]
call fcn.004c8c7f
push dword [ebp - 0x64]
call fcn.004c8c7f
push dword [ebp - 0x40]
call fcn.004c8c7f
push dword [ebp - 0x3c]
call fcn.004c8c7f
push dword [ebp - 0x68]
call fcn.004c8c7f
mov eax, dword [ebp + 0x18]
add esp, 0x14
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.004c8bcf
int3