Function at 0x421b20
Capabilities:
Get thread local storage value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab4fa
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x4dc6e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5b4], eax
push 2
mov dword [ebp - 4], 0
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x5a0], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
mov edi, eax
xor eax, eax
mov dword [ebp - 0x608], edi
mov word [edi], ax
push 2
call fcn.0048fb2f
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x610], ebx
mov word [ebx], ax
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x5c4], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x5d0], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x5dc], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
mov esi, eax
xor eax, eax
mov dword [ebp - 0x618], esi
mov word [esi], ax
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x5f0], eax
mov word [eax], cx
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x5ac], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x5b8], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x5c0], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x5b0], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x5a8], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x5bc], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x594], eax
push 0x4af9b8
call fcn.0048faa4
add esp, 0x40
mov dword [ebp - 0x5a4], eax
lea eax, [ebp - 0x594]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x5c8]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00407620
mov dword [ebp - 0x5d4], eax
lea eax, [ebp - 0x5a4]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x5cc]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00407620
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x5ac]
mov byte [ebp - 4], 0x12
push ecx
push 1
push 0
lea ecx, [ebp - 0x5b8]
push ecx
lea ecx, [ebp - 0x5c0]
push ecx
lea ecx, [ebp - 0x5b0]
push ecx
lea ecx, [ebp - 0x5a8]
push ecx
lea ecx, [ebp - 0x5bc]
push ecx
push dword [ebp - 0x5d4]
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp - 0x5b4]
call fcn.00403eb0
add esp, 0x64
mov dword [ebp - 0x5e8], eax
push dword [ebp - 0x5cc]
call fcn.0048faf7
push dword [ebp - 0x5c8]
call fcn.0048faf7
push dword [ebp - 0x5a4]
call fcn.0048faf7
push dword [ebp - 0x594]
call fcn.0048faf7
push dword [ebp - 0x5bc]
call fcn.0048faf7
push dword [ebp - 0x5a8]
call fcn.0048faf7
push dword [ebp - 0x5b0]
call fcn.0048faf7
push dword [ebp - 0x5c0]
call fcn.0048faf7
push dword [ebp - 0x5b8]
call fcn.0048faf7
push dword [ebp - 0x5ac]
mov byte [ebp - 4], 8
call fcn.0048faf7
lea eax, [ebp - 0x5d8]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [section..data]
call fcn.00406320
add esp, 0x3c
test eax, eax
je 0x421dfc
push dword [ebp - 0x5f0]
call fcn.0048faf7
push esi
call fcn.0048faf7
push dword [ebp - 0x5dc]
call fcn.0048faf7
push dword [ebp - 0x5d0]
call fcn.0048faf7
push dword [ebp - 0x5c4]
call fcn.0048faf7
push ebx
call fcn.0048faf7
push edi
call fcn.0048faf7
push dword [ebp - 0x5a0]
call fcn.0048faf7
add esp, 0x20
jmp 0x4224c7
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x598], eax
mov word [eax], cx
lea eax, [ebp - 0x598]
mov byte [ebp - 4], 0x13
push eax
push ecx
push dword [ebp - 0x5d8]
call fcn.00410500
add esp, 0x10
test eax, eax
jne 0x422464
mov edi, dword [ebp - 0x5b4]
xor ebx, ebx
jmp 0x421e40
mov esi, dword [ebp - 0x598]
lea eax, [ebp - 0x5e0]
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push esi
push dword [ebp - 0x5d8]
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x422433
lea eax, [ebp - 0x62c]
mov dword [ebp - 0x62c], 0x378
push eax
lea eax, [ebp - 0x590]
push eax
push 0
push 0
push 0x4b54ec
push dword [ebp - 0x5e0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422427
lea eax, [ebp - 0x590]
push eax
lea ecx, [ebp - 0x5b4]
call fcn.00419410
mov eax, dword [eax]
test eax, eax
je 0x421ecb
mov eax, dword [eax]
test eax, eax
jne 0x421ed0
mov eax, 0x4af9b8
push eax
call fcn.0048faa4
add esp, 4
mov dword [ebp - 0x5a4], eax
mov esi, dword [ebp - 0x5b4]
test esi, esi
je 0x421f38
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x421f2e
test esi, esi
je 0x421f2e
mov eax, dword [esi]
test eax, eax
je 0x421f0e
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x421f25
push eax
call fcn.0049243b
add esp, 4
mov dword [esi + 4], 0
push esi
call fcn.0048f453
add esp, 4
mov dword [ebp - 0x5b4], 0
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x63c], eax
mov word [eax], cx
mov dword [ebp - 0x638], ecx
mov dword [ebp - 0x634], ecx
mov dword [ebp - 0x630], ecx
lea eax, [ebp - 0x63c]
mov byte [ebp - 4], 0x15
push eax
push dword [ebp - 0x5a4]
call fcn.00406840
push 0
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x624]
push edi
push eax
call fcn.00404cf0
mov esi, dword [ebp - 0x5a0]
push dword [eax]
call fcn.0048faa4
push esi
mov dword [ebp - 0x5a0], eax
call fcn.0048faf7
push dword [ebp - 0x624]
call fcn.0048faf7
lea eax, [ebp - 0x5d0]
push eax
lea eax, [ebp - 0x5c4]
push eax
push dword [ebp - 0x5a0]
push edi
call fcn.00404ce0
push dword [ebp - 0x598]
mov dword [ebp - 0x5fc], eax
call fcn.0048faa4
mov dword [ebp - 0x594], eax
lea eax, [ebp - 0x594]
mov byte [ebp - 4], 0x16
push eax
push 0
push 0
push 0x4b5510
push dword [ebp - 0x5e0]
call fcn.00410620
add esp, 0x50
test eax, eax
jne 0x42210b
mov eax, dword [ebp - 0x594]
cmp word [eax], 0x40
jne 0x42210b
push eax
call fcn.0048faa4
mov esi, eax
mov dword [ebp - 0x5e4], esi
push 0x2c
push esi
mov byte [ebp - 4], 0x17
mov dword [ebp - 0x5ac], 0
call fcn.0049110f
add esp, 0xc
test eax, eax
je 0x422066
push 0x2c
push esi
call fcn.0049110f
xor ecx, ecx
mov word [eax], cx
add eax, 2
push eax
call fcn.00492994
cdq
add esp, 0xc
xor eax, edx
sub eax, edx
mov dword [ebp - 0x5ac], eax
lea ecx, [esi + 2]
push ecx
lea eax, [ebp - 0x628]
push eax
call fcn.00410090
push dword [eax]
call fcn.0048faa4
push dword [ebp - 0x5e4]
mov esi, eax
call fcn.0048faf7
push dword [ebp - 0x628]
call fcn.0048faf7
add esp, 0x14
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x5f8], eax
test eax, eax
je 0x422102
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x5ac]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x4220f6
mov eax, dword [ebp - 0x594]
mov dword [ebp - 0x5e4], eax
lea eax, [ebp - 0x218]
push eax
call fcn.0048faa4
push dword [ebp - 0x5e4]
mov dword [ebp - 0x594], eax
call fcn.0048faf7
add esp, 8
push dword [ebp - 0x5f8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call fcn.0048faf7
add esp, 4
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x5b8], eax
lea eax, [ebp - 0x598]
mov byte [ebp - 4], 0x18
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x61c]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x5b8]
mov byte [ebp - 4], 0x19
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x604]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00407620
lea ecx, [ebp - 0x614]
mov byte [ebp - 4], 0x1a
push ecx
lea ecx, [ebp - 0x5dc]
push ecx
lea ecx, [ebp - 0x5c4]
push ecx
lea ecx, [ebp - 0x5a0]
push ecx
push esi
push eax
lea eax, [ebp - 0x598]
push eax
push edi
call fcn.00403c00
add esp, 0x44
mov byte [ebp - 0x599], al
push dword [ebp - 0x604]
call fcn.0048faf7
push dword [ebp - 0x61c]
call fcn.0048faf7
push dword [ebp - 0x5b8]
call fcn.0048faf7
add esp, 0xc
cmp byte [ebp - 0x599], 0
je 0x4223fc
cmp dword [ebp - 0x5e8], 0xffffffff
jne 0x422358
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x5cc], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x5c8], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x5ec], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x5f4], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x5bc], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x5a8], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x5b0], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x5c0], eax
lea eax, [ebp - 0x5b0]
mov byte [ebp - 4], 0x22
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x620]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x5c0]
mov byte [ebp - 4], 0x23
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x60c]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00407620
add esp, 0x40
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x5cc]
mov byte [ebp - 4], 0x24
push ecx
push 1
push 0
lea ecx, [ebp - 0x5c8]
push ecx
lea ecx, [ebp - 0x5ec]
push ecx
lea ecx, [ebp - 0x5f4]
push ecx
lea ecx, [ebp - 0x5bc]
push ecx
lea ecx, [ebp - 0x5a8]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push edi
call fcn.00403eb0
push dword [ebp - 0x60c]
mov dword [ebp - 0x5e8], eax
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x620]
call fcn.0048faf7
push dword [ebp - 0x5c0]
call fcn.0048faf7
push dword [ebp - 0x5b0]
call fcn.0048faf7
push dword [ebp - 0x5a8]
call fcn.0048faf7
push dword [ebp - 0x5bc]
call fcn.0048faf7
push dword [ebp - 0x5f4]
call fcn.0048faf7
push dword [ebp - 0x5ec]
call fcn.0048faf7
push dword [ebp - 0x5c8]
call fcn.0048faf7
push dword [ebp - 0x5cc]
call fcn.0048faf7
add esp, 0x24
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x5d4], eax
lea eax, [ebp - 0x598]
mov byte [ebp - 4], 0x25
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x600]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00407620
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x5d4]
mov byte [ebp - 4], 0x26
push ecx
push 1
push dword [ebp - 0x614]
lea ecx, [ebp - 0x5a4]
push ecx
lea ecx, [ebp - 0x5dc]
push ecx
lea ecx, [ebp - 0x5d0]
push ecx
lea ecx, [ebp - 0x5c4]
push ecx
lea ecx, [ebp - 0x5a0]
push ecx
push eax
lea eax, [ebp - 0x594]
push eax
push 0xb
push dword [ebp - 0x5e8]
push dword [ebp - 0x5fc]
push edi
call fcn.00403eb0
add esp, 0x58
push dword [ebp - 0x600]
call fcn.0048faf7
push dword [ebp - 0x5d4]
call fcn.0048faf7
add esp, 8
push dword [ebp - 0x594]
call fcn.0048faf7
add esp, 4
lea ecx, [ebp - 0x63c]
call fcn.00402130
push dword [ebp - 0x5a4]
mov byte [ebp - 4], 0x13
call fcn.0048faf7
add esp, 4
push dword [ebp - 0x5e0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x598]
inc ebx
push eax
push ebx
push dword [ebp - 0x5d8]
call fcn.00410500
add esp, 0xc
test eax, eax
je 0x421e40
mov edi, dword [ebp - 0x608]
mov ebx, dword [ebp - 0x610]
mov esi, dword [ebp - 0x618]
push dword [ebp - 0x5d8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x598]
call fcn.0048faf7
push dword [ebp - 0x5f0]
call fcn.0048faf7
push esi
call fcn.0048faf7
push dword [ebp - 0x5dc]
call fcn.0048faf7
push dword [ebp - 0x5d0]
call fcn.0048faf7
push dword [ebp - 0x5c4]
call fcn.0048faf7
push ebx
call fcn.0048faf7
push edi
call fcn.0048faf7
push dword [ebp - 0x5a0]
call fcn.0048faf7
add esp, 0x24
push dword [ebp + 0xc]
call fcn.0048faf7
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret