Function at 0x40df30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef2f4
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push esi
push edi
mov eax, dword [0x535a40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 2
call fcn.004c8d7a
mov edi, eax
xor eax, eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x38], edi
mov word [edi], ax
push 2
mov dword [ebp - 4], eax
call fcn.004c8d7a
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x20], ebx
mov word [ebx], ax
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x54], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x78], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x50], eax
add esp, 0x14
mov word [eax], cx
cmp dword [ebp + 0x1c], 0xffffffff
mov byte [ebp - 4], 4
jne 0x40e173
push 0x4f9d20
call fcn.004c8d00
push 0
mov dword [ebp - 0x40], eax
call fcn.004c8d5f
push 0x4f9d20
call fcn.004c8d00
push 0
mov dword [ebp - 0x18], eax
call fcn.004c8d5f
push 0x4f9d20
call fcn.004c8d00
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8d5f
push 0x4f9d20
call fcn.004c8d00
push 0
mov dword [ebp - 0x3c], eax
call fcn.004c8d5f
push 0x4f9d20
call fcn.004c8d00
push 0
mov dword [ebp - 0x1c], eax
call fcn.004c8d5f
push 0x4f9d20
call fcn.004c8d00
push 0
mov dword [ebp - 0x24], eax
call fcn.004c8d5f
push 0x4f9d20
call fcn.004c8d00
push 0
mov dword [ebp - 0x28], eax
call fcn.004c8d5f
mov eax, dword [ebp + 0x10]
mov esi, 0x4f9d20
test eax, eax
cmovne esi, eax
push esi
call fcn.004c8d00
push 0
mov dword [ebp - 0x2c], eax
call fcn.004c8d5f
add esp, 0x40
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.00409cf0
mov ebx, eax
mov edx, dword [ebp + 0x14]
mov ecx, 0x4f9d20
test edx, edx
cmovne ecx, edx
push ecx
call fcn.004c8d00
mov edi, eax
push 0
mov dword [ebp + 0x1c], edi
call fcn.004c8d5f
push esi
call fcn.004c8d00
mov esi, eax
push 0
mov dword [ebp - 0x48], esi
call fcn.004c8d5f
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push eax
call fcn.00409cf0
movzx ecx, byte [ebp + 0x20]
lea edx, [ebp - 0x40]
push 0xffffffffffffffff
push 0
push 0
push edx
push ecx
push 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x10
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push ebx
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
call fcn.00405550
add esp, 0x74
mov dword [ebp + 0x1c], eax
push dword [ebp - 0x34]
call fcn.004c8d5f
push esi
call fcn.004c8d5f
push edi
call fcn.004c8d5f
push dword [ebp - 0x10]
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 - 0x1c]
call fcn.004c8d5f
push dword [ebp - 0x3c]
call fcn.004c8d5f
push dword [ebp - 0x14]
call fcn.004c8d5f
push dword [ebp - 0x18]
call fcn.004c8d5f
push dword [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.004c8d5f
mov ebx, dword [ebp - 0x30]
add esp, 0x30
mov edi, dword [ebp - 0x44]
lea eax, [ebp - 0x74]
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 0x40e70c
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x2c], eax
mov word [eax], cx
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x11
push eax
push ecx
push ecx
push dword [ebp + 0x14]
push dword [ebp - 0x74]
call fcn.004151a0
add esp, 0x18
test eax, eax
jne 0x40e6f8
mov eax, dword [ebp - 0x2c]
mov edx, eax
lea esi, [edx + 2]
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40e1e0
sub edx, esi
sar edx, 1
je 0x40e6f8
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
push 0
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x12
push ecx
push dword [ebp + 0x18]
push eax
call fcn.00408bb0
mov eax, dword [ebp - 0x80]
add esp, 0x10
mov esi, dword [ebp - 0x84]
sub eax, esi
sar eax, 4
mov dword [ebp - 0x48], 0
test eax, eax
je 0x40e6ed
mov edx, dword [ebp + 0x14]
mov eax, 0x4f9d20
mov ecx, dword [ebp + 0x10]
test edx, edx
cmovne eax, edx
test ecx, ecx
mov dword [ebp - 0x24], eax
mov eax, 0x4f9d20
cmovne eax, ecx
xor edx, edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], edx
nop dword [eax + eax]
mov eax, dword [esi + edx + 4]
mov ecx, 0x4f9d20
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8d00
push ebx
mov dword [ebp - 0x20], eax
call fcn.004c8d5f
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], ecx
mov word [eax], cx
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x68]
push ecx
mov byte [ebp - 4], 0x13
mov eax, dword [esi + eax + 4]
push dword [eax]
call fcn.00408a50
add esp, 0x10
lea ecx, [ebp - 0x68]
mov eax, esp
push 0
push 0
push ecx
push dword [ebp + 8]
push eax
call fcn.00408f50
add esp, 0x14
lea eax, [ebp - 0x40]
push eax
call fcn.0040a6b0
mov eax, dword [ebp - 0x40]
mov ecx, 0x4f9d20
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8d00
push edi
mov dword [ebp - 0x38], eax
call fcn.004c8d5f
push dword [ebp - 0x40]
call fcn.004c8d5f
mov esi, dword [ebp - 0x24]
push esi
call fcn.004c8d00
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8d5f
push dword [ebp - 0x1c]
call fcn.004c8d00
push 0
mov dword [ebp - 0x18], eax
call fcn.004c8d5f
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x8c]
push eax
call fcn.00409cf0
mov ebx, eax
push esi
call fcn.004c8d00
mov edi, eax
push 0
mov dword [ebp - 0x34], edi
call fcn.004c8d5f
push dword [ebp - 0x1c]
call fcn.004c8d00
add esp, 0x40
mov esi, eax
mov dword [ebp - 0x10], esi
push 0
call fcn.004c8d5f
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x88]
push eax
call fcn.00409cf0
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0x19
push ecx
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push ebx
push eax
push dword [ebp + 8]
call fcn.00405240
push dword [ebp - 0x88]
mov bl, al
call fcn.004c8d5f
push esi
call fcn.004c8d5f
push edi
call fcn.004c8d5f
add esp, 0x40
push dword [ebp - 0x8c]
call fcn.004c8d5f
push dword [ebp - 0x18]
call fcn.004c8d5f
push dword [ebp - 0x14]
call fcn.004c8d5f
add esp, 0xc
test bl, bl
je 0x40e64a
cmp dword [ebp + 0x1c], 0xffffffff
jne 0x40e594
push 0x4f9d20
call fcn.004c8d00
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8d5f
push 0x4f9d20
call fcn.004c8d00
push 0
mov dword [ebp - 0x30], eax
call fcn.004c8d5f
push 0x4f9d20
call fcn.004c8d00
push 0
mov dword [ebp - 0x44], eax
call fcn.004c8d5f
push 0x4f9d20
call fcn.004c8d00
push 0
mov dword [ebp - 0x70], eax
call fcn.004c8d5f
push 0x4f9d20
call fcn.004c8d00
push 0
mov dword [ebp - 0x6c], eax
call fcn.004c8d5f
push 0x4f9d20
call fcn.004c8d00
push 0
mov dword [ebp - 0x3c], eax
call fcn.004c8d5f
push 0x4f9d20
call fcn.004c8d00
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8d5f
mov esi, dword [ebp - 0x1c]
push esi
call fcn.004c8d00
push 0
mov dword [ebp - 0x18], eax
call fcn.004c8d5f
add esp, 0x40
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x94]
push eax
call fcn.00409cf0
mov ebx, eax
mov eax, dword [ebp - 0x24]
push eax
call fcn.004c8d00
mov edi, eax
push 0
mov dword [ebp + 0x1c], edi
call fcn.004c8d5f
push esi
call fcn.004c8d00
mov esi, eax
push 0
mov dword [ebp - 0x4c], esi
call fcn.004c8d5f
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x90]
push eax
call fcn.00409cf0
movzx ecx, byte [ebp + 0x20]
lea edx, [ebp - 0x10]
push 0xffffffffffffffff
push 0
push 0
push edx
push ecx
push 0
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x25
push ecx
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push ebx
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
call fcn.00405550
add esp, 0x74
mov dword [ebp + 0x1c], eax
push dword [ebp - 0x90]
call fcn.004c8d5f
push esi
call fcn.004c8d5f
push edi
call fcn.004c8d5f
push dword [ebp - 0x94]
call fcn.004c8d5f
push dword [ebp - 0x18]
call fcn.004c8d5f
push dword [ebp - 0x14]
call fcn.004c8d5f
push dword [ebp - 0x3c]
call fcn.004c8d5f
push dword [ebp - 0x6c]
call fcn.004c8d5f
push dword [ebp - 0x70]
call fcn.004c8d5f
push dword [ebp - 0x44]
call fcn.004c8d5f
push dword [ebp - 0x30]
call fcn.004c8d5f
push dword [ebp - 0x10]
call fcn.004c8d5f
add esp, 0x30
jmp 0x40e59b
movzx eax, byte [ebp + 0x20]
mov dword [ebp - 0x34], eax
mov esi, dword [ebp - 0x24]
push esi
call fcn.004c8d00
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8d5f
mov ebx, dword [ebp - 0x98]
push esi
call fcn.004c8d00
mov edi, eax
push 0
mov dword [ebp - 0x4c], edi
call fcn.004c8d5f
push dword [ebp - 0x1c]
call fcn.004c8d00
mov esi, eax
push 0
mov dword [ebp - 0x30], esi
call fcn.004c8d5f
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x58]
push eax
call fcn.00409cf0
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x29
push ecx
push dword [ebp - 0x34]
lea ecx, [ebp - 0x20]
push ebx
push ecx
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
push 1
push dword [ebp + 0x1c]
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00405550
add esp, 0x6c
push dword [ebp - 0x58]
call fcn.004c8d5f
push esi
call fcn.004c8d5f
push edi
call fcn.004c8d5f
push dword [ebp - 0x10]
call fcn.004c8d5f
add esp, 0x10
mov edi, dword [ebp - 0x64]
mov byte [ebp - 4], 0x12
test edi, edi
je 0x40e6b6
mov ebx, dword [ebp - 0x60]
mov esi, edi
cmp esi, ebx
je 0x40e671
nop
push dword [esi]
call fcn.004c8d5f
add esi, 4
add esp, 4
cmp esi, ebx
jne 0x40e660
mov ecx, dword [ebp - 0x5c]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x40e697
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e748
push ecx
push edi
call fcn.004c34a9
add esp, 8
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
push dword [ebp - 0x68]
call fcn.004c8d5f
mov eax, dword [ebp - 0x80]
add esp, 4
mov ecx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x84]
inc ecx
mov edx, dword [ebp - 0x28]
sub eax, esi
mov edi, dword [ebp - 0x38]
add edx, 0x10
mov ebx, dword [ebp - 0x20]
sar eax, 4
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x28], edx
cmp ecx, eax
jb 0x40e270
lea ecx, [ebp - 0x84]
call fcn.00403390
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x2c]
call fcn.004c8d5f
add esp, 4
push dword [ebp - 0x50]
call fcn.004c8d5f
push dword [ebp - 0x78]
call fcn.004c8d5f
push dword [ebp - 0x54]
call fcn.004c8d5f
push ebx
call fcn.004c8d5f
push edi
call fcn.004c8d5f
mov eax, dword [ebp + 0x1c]
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.004c8caf
int3