Function at 0x40ab30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eecb6
mov eax, dword fs:[0]
push eax
sub esp, 0x84
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
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.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
mov word [eax], cx
push 2
call fcn.004c8d7a
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 0x40ad67
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 - 0x2c], eax
call fcn.004c8d5f
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 - 0x18], eax
call fcn.004c8d5f
push 0x4f9d20
call fcn.004c8d00
push 0
mov dword [ebp - 0x20], 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 - 0x1c], 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 - 0x38], eax
call fcn.004c8d5f
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.00409cf0
mov ebx, eax
push 0x4f9d20
call fcn.004c8d00
mov edi, eax
push 0
mov dword [ebp + 0x14], edi
call fcn.004c8d5f
push esi
call fcn.004c8d00
mov esi, eax
push 0
mov dword [ebp - 0x34], esi
call fcn.004c8d5f
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.00409cf0
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.00405550
add esp, 0x74
mov dword [ebp + 0x14], eax
push dword [ebp - 0x48]
call fcn.004c8d5f
push esi
call fcn.004c8d5f
push edi
call fcn.004c8d5f
push dword [ebp - 0x30]
call fcn.004c8d5f
push dword [ebp - 0x38]
call fcn.004c8d5f
push dword [ebp - 0x1c]
call fcn.004c8d5f
push dword [ebp - 0x24]
call fcn.004c8d5f
push dword [ebp - 0x20]
call fcn.004c8d5f
push dword [ebp - 0x18]
call fcn.004c8d5f
push dword [ebp - 0x10]
call fcn.004c8d5f
push dword [ebp - 0x2c]
call fcn.004c8d5f
push dword [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.004c8d5f
mov edi, dword [ebp - 0x28]
add esp, 0x30
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x4c]
push eax
push dword [0x539fd0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push dword [ebp + 0x10]
push ebx
call fcn.004086c0
add esp, 0x14
test eax, eax
jne 0x40b5f5
push 2
mov dword [ebp - 0x38], eax
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov word [ebx], ax
push 2
call fcn.004c8d7a
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 0x40b5cd
nop
push dword [0x539fd0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [ebp - 0x10]
cmp eax, 0x200
jne 0x40ae1d
push str.Wow6432Node_
jmp 0x40ae22
push 0x4f9d20
call fcn.004c8d00
add esp, 4
mov dword [ebp - 0x10], eax
push esi
call fcn.004c8d5f
push str.CLSID_
call fcn.004c8d00
push 0
mov esi, eax
call fcn.004c8d5f
test esi, esi
mov ecx, 0x4f9d20
cmovne ecx, esi
push ecx
call fcn.004c8d00
push 0
mov dword [ebp - 0x28], eax
call fcn.004c8d5f
add esp, 0x14
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18]
call fcn.004050e0
push esi
call fcn.004c8d5f
push 0x4faa3c
call fcn.004c8d00
push 0
mov esi, eax
call fcn.004c8d5f
mov ecx, dword [ebp - 0x28]
mov eax, 0x4f9d20
test ecx, ecx
cmovne eax, ecx
push eax
call fcn.004c8d00
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8d5f
add esp, 0x14
lea ecx, [ebp - 0x14]
push esi
call fcn.004050e0
push esi
call fcn.004c8d5f
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 0x40aec1
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 0x40aef0
sub edx, dword [ebp - 0x34]
sar edx, 1
mov dword [ebp - 0x14], edx
test edx, edx
jle 0x40af21
lea ecx, [edx + ebx]
lea ecx, [ecx*2 + 4]
push ecx
push eax
call fcn.004c8d85
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.004c4e20
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.004c4e20
push esi
call fcn.004c8d5f
push dword [ebp - 0x28]
call fcn.004c8d5f
push str.HKCRCLSID_
call fcn.004c8d00
push 0
mov esi, eax
call fcn.004c8d5f
test esi, esi
mov ecx, 0x4f9d20
cmovne ecx, esi
push ecx
call fcn.004c8d00
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8d5f
add esp, 0x30
lea ecx, [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.004050e0
push esi
call fcn.004c8d5f
mov ebx, dword [ebp - 0x14]
mov eax, 0x4f9d20
test ebx, ebx
mov esi, edi
cmovne eax, ebx
push eax
call fcn.004c8d00
mov edi, eax
push esi
mov dword [ebp - 0x28], edi
call fcn.004c8d5f
push ebx
call fcn.004c8d5f
add esp, 0x10
push dword [0x539fd0]
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.004086c0
add esp, 0x14
test eax, eax
jne 0x40b53c
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4f9d20
push dword [ebp - 0x20]
call fcn.004151a0
add esp, 0x14
test eax, eax
jne 0x40b533
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x10]
call fcn.00408e30
add esp, 4
lea ecx, [ebp - 0x64]
mov eax, esp
push 0
push 0
push ecx
push dword [ebp + 8]
push eax
call fcn.00408f50
add esp, 0x14
lea eax, [ebp - 0x68]
push eax
call fcn.0040a6b0
mov eax, dword [ebp - 0x68]
mov ecx, 0x4f9d20
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8d00
push dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
call fcn.004c8d5f
push dword [ebp - 0x68]
call fcn.004c8d5f
add esp, 0x14
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.CLSID_
call fcn.004c8d00
push 0
mov ebx, eax
call fcn.004c8d5f
test ebx, ebx
mov ecx, 0x4f9d20
cmovne ecx, ebx
push ecx
call fcn.004c8d00
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8d5f
add esp, 0x10
lea ecx, [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.004050e0
mov edi, dword [ebp - 0x14]
mov eax, 0x4f9d20
mov esi, dword [ebp - 0x10]
test edi, edi
cmovne eax, edi
push eax
call fcn.004c8d00
push esi
mov dword [ebp - 0x10], eax
call fcn.004c8d5f
push edi
call fcn.004c8d5f
push ebx
call fcn.004c8d5f
mov eax, dword [ebp - 0x18]
mov ecx, 0x4f9d20
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8d00
push dword [ebp - 0x3c]
mov edi, eax
mov dword [ebp - 0x40], edi
call fcn.004c8d5f
add esp, 0x18
push dword [0x539fd0]
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.004086c0
add esp, 0x14
test eax, eax
jne 0x40b189
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4f9d20
push dword [ebp - 0x20]
call fcn.004151a0
add esp, 0x14
test eax, eax
jne 0x40b180
mov edx, dword [ebp - 0x10]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b153
sub ecx, esi
sar ecx, 1
je 0x40b180
test edx, edx
mov eax, 0x4f9d20
cmovne eax, edx
push eax
call fcn.004c8d00
push edi
mov dword [ebp - 0x40], eax
call fcn.004c8d5f
add esp, 8
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x10]
mov esi, 0x4f9d20
test eax, eax
cmovne esi, eax
push esi
mov dword [ebp - 0x48], esi
call fcn.004c8d00
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8d5f
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.00409cf0
mov ebx, eax
push 0x4f9d20
call fcn.004c8d00
mov edi, eax
push 0
mov dword [ebp - 0x34], edi
call fcn.004c8d5f
push esi
call fcn.004c8d00
mov esi, eax
push 0
mov dword [ebp - 0x30], esi
call fcn.004c8d5f
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x80]
push eax
call fcn.00409cf0
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.00405240
add esp, 0x58
mov bl, al
push dword [ebp - 0x80]
call fcn.004c8d5f
push esi
call fcn.004c8d5f
push edi
call fcn.004c8d5f
push dword [ebp - 0x84]
call fcn.004c8d5f
push dword [ebp - 0x14]
call fcn.004c8d5f
add esp, 0x14
test bl, bl
je 0x40b4a7
cmp dword [ebp + 0x14], 0xffffffff
jne 0x40b408
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 - 0x74], 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 - 0x1c], 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 - 0x2c], eax
call fcn.004c8d5f
mov esi, dword [ebp - 0x48]
push esi
call fcn.004c8d00
push 0
mov dword [ebp - 0x14], eax
call fcn.004c8d5f
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.00409cf0
mov ebx, eax
push 0x4f9d20
call fcn.004c8d00
mov edi, eax
push 0
mov dword [ebp + 0x14], edi
call fcn.004c8d5f
push esi
call fcn.004c8d00
mov esi, eax
push 0
mov dword [ebp - 0x44], esi
call fcn.004c8d5f
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x88]
push eax
call fcn.00409cf0
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.00405550
add esp, 0x74
mov dword [ebp + 0x14], eax
push dword [ebp - 0x88]
call fcn.004c8d5f
push esi
call fcn.004c8d5f
push edi
call fcn.004c8d5f
push dword [ebp - 0x8c]
call fcn.004c8d5f
push dword [ebp - 0x14]
call fcn.004c8d5f
push dword [ebp - 0x2c]
call fcn.004c8d5f
push dword [ebp - 0x3c]
call fcn.004c8d5f
push dword [ebp - 0x1c]
call fcn.004c8d5f
push dword [ebp - 0x6c]
call fcn.004c8d5f
push dword [ebp - 0x70]
call fcn.004c8d5f
push dword [ebp - 0x74]
call fcn.004c8d5f
push dword [ebp - 0x30]
call fcn.004c8d5f
add esp, 0x30
jmp 0x40b40f
movzx eax, byte [ebp + 0x18]
mov dword [ebp - 0x34], eax
push 0x4f9d20
call fcn.004c8d00
mov edi, eax
push 0
mov dword [ebp - 0x30], edi
call fcn.004c8d5f
push dword [ebp - 0x48]
mov ebx, dword [ebp - 0x90]
call fcn.004c8d00
mov esi, eax
push 0
mov dword [ebp - 0x44], esi
call fcn.004c8d5f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x7c]
push eax
call fcn.00409cf0
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.00405550
add esp, 0x64
push dword [ebp - 0x7c]
call fcn.004c8d5f
push esi
call fcn.004c8d5f
push edi
call fcn.004c8d5f
add esp, 0xc
mov edi, dword [ebp - 0x60]
mov byte [ebp - 4], 0x13
test edi, edi
je 0x40b508
mov ebx, dword [ebp - 0x5c]
mov esi, edi
cmp esi, ebx
je 0x40b4d1
nop dword [eax + eax]
push dword [esi]
call fcn.004c8d5f
add esi, 4
add esp, 4
cmp esi, ebx
jne 0x40b4c0
mov eax, dword [ebp - 0x58]
sub eax, edi
sar eax, 2
lea ecx, [eax*4]
mov eax, edi
cmp ecx, 0x1000
jb 0x40b4fe
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b633
push ecx
push edi
call fcn.004c34a9
add esp, 8
push dword [ebp - 0x64]
call fcn.004c8d5f
push dword [ebp - 0x24]
call fcn.004c8d5f
push dword [ebp - 0x18]
call fcn.004c8d5f
push dword [ebp - 0x10]
call fcn.004c8d5f
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
jmp 0x40b55c
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x64]
call fcn.004c8d5f
push dword [ebp - 0x1c]
call fcn.004c8d5f
push dword [ebp - 0x18]
call fcn.004c8d5f
push dword [ebp - 0x10]
call fcn.004c8d5f
inc dword [ebp - 0x38]
add esp, 0x10
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov word [eax], cx
push 2
call fcn.004c8d7a
mov ebx, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x24], ebx
mov word [ebx], ax
push 2
call fcn.004c8d7a
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 0x40ae00
push esi
call fcn.004c8d5f
push ebx
call fcn.004c8d5f
push dword [ebp - 0x18]
call fcn.004c8d5f
push dword [ebp - 0x10]
call fcn.004c8d5f
add esp, 0x10
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.004c8d5f
push dword [ebp - 0x50]
call fcn.004c8d5f
push dword [ebp - 0x78]
call fcn.004c8d5f
push dword [ebp - 0x54]
call fcn.004c8d5f
push dword [ebp - 0x3c]
call fcn.004c8d5f
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.004c8caf
int3