Function at 0x40ab70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0716
mov eax, dword fs:[0]
push eax
sub esp, 0x84
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 - 0x3c], eax
mov dword [ebp - 0x40], eax
mov word [eax], cx
push 2
mov dword [ebp - 4], ecx
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x54], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x78], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x50], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
mov edi, eax
add esp, 0x14
xor eax, eax
mov dword [ebp - 0x28], edi
mov word [edi], ax
cmp dword [ebp + 0x14], 0xffffffff
mov ebx, dword [ebp + 0xc]
mov byte [ebp - 4], 4
jne 0x40ada7
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x2c], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x18], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x20], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x24], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x1c], eax
call fcn.004c8c7f
mov eax, dword [ebp + 0x10]
mov esi, 0x4fbd20
test eax, eax
cmovne esi, eax
push esi
call fcn.004c8c20
push 0
mov dword [ebp - 0x38], eax
call fcn.004c8c7f
add esp, 0x40
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.00409d10
mov ebx, eax
push 0x4fbd20
call fcn.004c8c20
mov edi, eax
push 0
mov dword [ebp + 0x14], edi
call fcn.004c8c7f
push esi
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x34], esi
call fcn.004c8c7f
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00409d10
movzx ecx, byte [ebp + 0x18]
lea edx, [ebp - 0x14]
push 0xffffffffffffffff
push 0
push 0
push edx
push ecx
push 0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x10
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push ebx
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
call fcn.00405510
add esp, 0x74
mov dword [ebp + 0x14], eax
push dword [ebp - 0x48]
call fcn.004c8c7f
push esi
call fcn.004c8c7f
push edi
call fcn.004c8c7f
push dword [ebp - 0x30]
call fcn.004c8c7f
push dword [ebp - 0x38]
call fcn.004c8c7f
push dword [ebp - 0x1c]
call fcn.004c8c7f
push dword [ebp - 0x24]
call fcn.004c8c7f
push dword [ebp - 0x20]
call fcn.004c8c7f
push dword [ebp - 0x18]
call fcn.004c8c7f
push dword [ebp - 0x10]
call fcn.004c8c7f
push dword [ebp - 0x2c]
call fcn.004c8c7f
push dword [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.004c8c7f
mov edi, dword [ebp - 0x28]
add esp, 0x30
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x4c]
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 0x40b635
push 2
mov dword [ebp - 0x38], eax
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov word [ebx], ax
push 2
call fcn.004c8c9a
mov esi, eax
xor eax, eax
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov word [esi], ax
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x14
push eax
push 0
push dword [ebp - 0x4c]
call fcn.00415050
add esp, 0x1c
test eax, eax
jne 0x40b60d
nop
push dword [0x540000]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [ebp - 0x10]
cmp eax, 0x200
jne 0x40ae5d
push 0x4fca20
jmp 0x40ae62
push 0x4fbd20
call fcn.004c8c20
add esp, 4
mov dword [ebp - 0x10], eax
push esi
call fcn.004c8c7f
push 0x4fbe8c
call fcn.004c8c20
push 0
mov esi, eax
call fcn.004c8c7f
test esi, esi
mov ecx, 0x4fbd20
cmovne ecx, esi
push ecx
call fcn.004c8c20
push 0
mov dword [ebp - 0x28], eax
call fcn.004c8c7f
add esp, 0x14
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18]
call fcn.00405090
push esi
call fcn.004c8c7f
push 0x4fca3c
call fcn.004c8c20
push 0
mov esi, eax
call fcn.004c8c7f
mov ecx, dword [ebp - 0x28]
mov eax, 0x4fbd20
test ecx, ecx
cmovne eax, ecx
push eax
call fcn.004c8c20
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8c7f
add esp, 0x14
lea ecx, [ebp - 0x14]
push esi
call fcn.00405090
push esi
call fcn.004c8c7f
mov eax, dword [ebp - 0x10]
add esp, 4
mov ebx, eax
lea edx, [ebx + 2]
mov cx, word [ebx]
add ebx, 2
test cx, cx
jne 0x40af01
mov esi, dword [ebp - 0x14]
sub ebx, edx
sar ebx, 1
mov ecx, CreateSecurityPage
cmp ebx, ecx
mov edx, esi
cmovb ecx, ebx
mov dword [ebp - 0x2c], ecx
lea ecx, [edx + 2]
mov dword [ebp - 0x34], ecx
nop dword [eax + eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40af30
sub edx, dword [ebp - 0x34]
sar edx, 1
mov dword [ebp - 0x14], edx
test edx, edx
jle 0x40af61
lea ecx, [edx + ebx]
lea ecx, [ecx*2 + 4]
push ecx
push eax
call fcn.004c8ca5
mov edx, dword [ebp - 0x14]
add esp, 8
mov dword [ebp - 0x10], eax
sub ebx, dword [ebp - 0x2c]
lea ecx, [ebx*2 + 2]
mov ebx, dword [ebp - 0x2c]
push ecx
lea ecx, [eax + ebx*2]
push ecx
lea ecx, [ebx + edx]
lea eax, [eax + ecx*2]
push eax
call fcn.004c4d40
mov eax, dword [ebp - 0x14]
add eax, eax
push eax
mov eax, dword [ebp - 0x10]
push esi
lea eax, [eax + ebx*2]
push eax
call fcn.004c4d40
push esi
call fcn.004c8c7f
push dword [ebp - 0x28]
call fcn.004c8c7f
push 0x4fca5c
call fcn.004c8c20
push 0
mov esi, eax
call fcn.004c8c7f
test esi, esi
mov ecx, 0x4fbd20
cmovne ecx, esi
push ecx
call fcn.004c8c20
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8c7f
add esp, 0x30
lea ecx, [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00405090
push esi
call fcn.004c8c7f
mov ebx, dword [ebp - 0x14]
mov eax, 0x4fbd20
test ebx, ebx
mov esi, edi
cmovne eax, ebx
push eax
call fcn.004c8c20
mov edi, eax
push esi
mov dword [ebp - 0x28], edi
call fcn.004c8c7f
push ebx
call fcn.004c8c7f
add esp, 0x10
push dword [0x540000]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [ebp - 0x20]
or eax, 0x20019
push ecx
push eax
push 0
push dword [ebp - 0x10]
push SysReAllocStringLen
call fcn.00408690
add esp, 0x14
test eax, eax
jne 0x40b57c
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4fbd20
push dword [ebp - 0x20]
call fcn.004151a0
add esp, 0x14
test eax, eax
jne 0x40b573
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x10]
call fcn.00408e00
add esp, 4
lea ecx, [ebp - 0x64]
mov eax, esp
push 0
push 0
push ecx
push dword [ebp + 8]
push eax
call fcn.00408f10
add esp, 0x14
lea eax, [ebp - 0x68]
push eax
call fcn.0040a6e0
mov eax, dword [ebp - 0x68]
mov ecx, 0x4fbd20
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8c20
push dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
call fcn.004c8c7f
push dword [ebp - 0x68]
call fcn.004c8c7f
add esp, 0x14
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4fbe8c
call fcn.004c8c20
push 0
mov ebx, eax
call fcn.004c8c7f
test ebx, ebx
mov ecx, 0x4fbd20
cmovne ecx, ebx
push ecx
call fcn.004c8c20
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8c7f
add esp, 0x10
lea ecx, [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00405090
mov edi, dword [ebp - 0x14]
mov eax, 0x4fbd20
mov esi, dword [ebp - 0x10]
test edi, edi
cmovne eax, edi
push eax
call fcn.004c8c20
push esi
mov dword [ebp - 0x10], eax
call fcn.004c8c7f
push edi
call fcn.004c8c7f
push ebx
call fcn.004c8c7f
mov eax, dword [ebp - 0x18]
mov ecx, 0x4fbd20
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8c20
push dword [ebp - 0x3c]
mov edi, eax
mov dword [ebp - 0x40], edi
call fcn.004c8c7f
add esp, 0x18
push dword [0x540000]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [ebp - 0x20]
or eax, 0x20019
push ecx
push eax
push 0
push dword [ebp - 0x10]
push SysReAllocStringLen
call fcn.00408690
add esp, 0x14
test eax, eax
jne 0x40b1c9
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4fbd20
push dword [ebp - 0x20]
call fcn.004151a0
add esp, 0x14
test eax, eax
jne 0x40b1c0
mov edx, dword [ebp - 0x10]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b193
sub ecx, esi
sar ecx, 1
je 0x40b1c0
test edx, edx
mov eax, 0x4fbd20
cmovne eax, edx
push eax
call fcn.004c8c20
push edi
mov dword [ebp - 0x40], eax
call fcn.004c8c7f
add esp, 8
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x10]
mov esi, 0x4fbd20
test eax, eax
cmovne esi, eax
push esi
mov dword [ebp - 0x48], esi
call fcn.004c8c20
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8c7f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00409d10
mov ebx, eax
push 0x4fbd20
call fcn.004c8c20
mov edi, eax
push 0
mov dword [ebp - 0x34], edi
call fcn.004c8c7f
push esi
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x30], esi
call fcn.004c8c7f
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x80]
push eax
call fcn.00409d10
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x19
push ecx
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push ebx
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 8]
call fcn.00405200
add esp, 0x58
mov bl, al
push dword [ebp - 0x80]
call fcn.004c8c7f
push esi
call fcn.004c8c7f
push edi
call fcn.004c8c7f
push dword [ebp - 0x84]
call fcn.004c8c7f
push dword [ebp - 0x14]
call fcn.004c8c7f
add esp, 0x14
test bl, bl
je 0x40b4e7
cmp dword [ebp + 0x14], 0xffffffff
jne 0x40b448
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x30], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x74], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x70], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x6c], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x1c], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x3c], eax
call fcn.004c8c7f
push 0x4fbd20
call fcn.004c8c20
push 0
mov dword [ebp - 0x2c], eax
call fcn.004c8c7f
mov esi, dword [ebp - 0x48]
push esi
call fcn.004c8c20
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8c7f
add esp, 0x40
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x8c]
push eax
call fcn.00409d10
mov ebx, eax
push 0x4fbd20
call fcn.004c8c20
mov edi, eax
push 0
mov dword [ebp + 0x14], edi
call fcn.004c8c7f
push esi
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x44], esi
call fcn.004c8c7f
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x88]
push eax
call fcn.00409d10
movzx ecx, byte [ebp + 0x18]
lea edx, [ebp - 0x30]
push 0xffffffffffffffff
push 0
push 0
push edx
push ecx
push 0
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x25
push ecx
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push ebx
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
call fcn.00405510
add esp, 0x74
mov dword [ebp + 0x14], eax
push dword [ebp - 0x88]
call fcn.004c8c7f
push esi
call fcn.004c8c7f
push edi
call fcn.004c8c7f
push dword [ebp - 0x8c]
call fcn.004c8c7f
push dword [ebp - 0x14]
call fcn.004c8c7f
push dword [ebp - 0x2c]
call fcn.004c8c7f
push dword [ebp - 0x3c]
call fcn.004c8c7f
push dword [ebp - 0x1c]
call fcn.004c8c7f
push dword [ebp - 0x6c]
call fcn.004c8c7f
push dword [ebp - 0x70]
call fcn.004c8c7f
push dword [ebp - 0x74]
call fcn.004c8c7f
push dword [ebp - 0x30]
call fcn.004c8c7f
add esp, 0x30
jmp 0x40b44f
movzx eax, byte [ebp + 0x18]
mov dword [ebp - 0x34], eax
push 0x4fbd20
call fcn.004c8c20
mov edi, eax
push 0
mov dword [ebp - 0x30], edi
call fcn.004c8c7f
push dword [ebp - 0x48]
mov ebx, dword [ebp - 0x90]
call fcn.004c8c20
mov esi, eax
push 0
mov dword [ebp - 0x44], esi
call fcn.004c8c7f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x7c]
push eax
call fcn.00409d10
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x28
push ecx
push dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
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 - 0x24]
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
push 3
push dword [ebp + 0x14]
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00405510
add esp, 0x64
push dword [ebp - 0x7c]
call fcn.004c8c7f
push esi
call fcn.004c8c7f
push edi
call fcn.004c8c7f
add esp, 0xc
mov edi, dword [ebp - 0x60]
mov byte [ebp - 4], 0x13
test edi, edi
je 0x40b548
mov ebx, dword [ebp - 0x5c]
mov esi, edi
cmp esi, ebx
je 0x40b511
nop dword [eax + eax]
push dword [esi]
call fcn.004c8c7f
add esi, 4
add esp, 4
cmp esi, ebx
jne 0x40b500
mov eax, dword [ebp - 0x58]
sub eax, edi
sar eax, 2
lea ecx, [eax*4]
mov eax, edi
cmp ecx, 0x1000
jb 0x40b53e
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b673
push ecx
push edi
call fcn.004c3279
add esp, 8
push dword [ebp - 0x64]
call fcn.004c8c7f
push dword [ebp - 0x24]
call fcn.004c8c7f
push dword [ebp - 0x18]
call fcn.004c8c7f
push dword [ebp - 0x10]
call fcn.004c8c7f
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
jmp 0x40b59c
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x64]
call fcn.004c8c7f
push dword [ebp - 0x1c]
call fcn.004c8c7f
push dword [ebp - 0x18]
call fcn.004c8c7f
push dword [ebp - 0x10]
call fcn.004c8c7f
inc dword [ebp - 0x38]
add esp, 0x10
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov word [eax], cx
push 2
call fcn.004c8c9a
mov ebx, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x24], ebx
mov word [ebx], ax
push 2
call fcn.004c8c9a
mov esi, eax
xor eax, eax
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov word [esi], ax
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x14
push eax
mov eax, dword [ebp - 0x38]
push eax
push dword [ebp - 0x4c]
call fcn.00415050
add esp, 0x1c
test eax, eax
je 0x40ae40
push esi
call fcn.004c8c7f
push ebx
call fcn.004c8c7f
push dword [ebp - 0x18]
call fcn.004c8c7f
push dword [ebp - 0x10]
call fcn.004c8c7f
add esp, 0x10
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.004c8c7f
push dword [ebp - 0x50]
call fcn.004c8c7f
push dword [ebp - 0x78]
call fcn.004c8c7f
push dword [ebp - 0x54]
call fcn.004c8c7f
push dword [ebp - 0x3c]
call fcn.004c8c7f
mov eax, dword [ebp + 0x14]
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