Function at 0x404900
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor edi, edi
push eax
push 0x20019
push edi
push 0x401840
mov ebx, ecx
mov dword [ebp - 8], edi
push SysReAllocString
mov esi, edx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4049a1
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], 4
push eax
push edi
push edi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
xor ebx, ebx
cmp dword [ebp - 0xc], ebx
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x40499e
mov eax, dword [0x40b018]
cmp eax, 0x40b018
je 0x404bf4
cmp byte [eax + 0x19], 3
jb 0x404bf4
push esi
push dword [eax + 0x14]
mov edx, 0x40167c
push dword [eax + 0x10]
push 0xe
pop ecx
call fcn.00401d8d
jmp 0x404bf4
mov ebx, dword [ebp - 0x10]
push 0x2f0
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x404bcf
push 0x2f0
push 0
push edi
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
mov edx, edi
mov dword [edi], esi
mov ecx, ebx
mov dword [edi + 4], eax
call fcn.00405a02
test eax, eax
jne 0x404a0f
mov eax, dword [0x40b018]
cmp eax, 0x40b018
je 0x404a03
cmp byte [eax + 0x19], 3
jb 0x404a03
push esi
push dword [eax + 0x14]
mov edx, 0x40167c
push dword [eax + 0x10]
push 0x10
pop ecx
call fcn.00401d8d
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x404bf4
mov eax, dword [0x40b018]
cmp eax, 0x40b018
je 0x404a35
cmp byte [eax + 0x19], 4
jb 0x404a35
push esi
push dword [eax + 0x14]
mov edx, 0x40167c
push dword [eax + 0x10]
push 0x11
pop ecx
call fcn.00401d8d
push 0x34
pop esi
push esi
lea eax, [ebp - 0x8c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x8c], esi
mov esi, dword [0x40b3a4]
lea eax, [ebp - 0x58]
xor ecx, ecx
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x84], ebx
push 0x38
push ecx
push eax
mov dword [ebp - 0x88], 0x4004
mov ebx, ecx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x78], 0x6c
mov dword [ebp - 0x7c], 0x86
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x44], esi
mov esi, dword [sym.imp.COMCTL32.dll_CreatePropertySheetPageW]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x38
mov dword [ebp - 0x48], 0x1000
push eax
mov dword [ebp - 0x40], 0x6a
mov dword [ebp - 0x24], 0x66
mov dword [ebp - 0x34], 0x404c02
mov dword [ebp - 0x30], edi
call esi
mov dword [ebp - 0x58], eax
test eax, eax
je 0x404ad6
inc ebx
inc dword [ebp - 0x74]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
je 0x404b2f
push 0x38
lea eax, [ebp - 0x4c]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [0x40b3a4]
add esp, 0xc
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x38
mov dword [ebp - 0x48], 0x1000
push eax
mov dword [ebp - 0x40], 0x6f
mov dword [ebp - 0x24], 0x66
mov dword [ebp - 0x34], 0x40545f
mov dword [ebp - 0x30], edi
call esi
mov dword [ebp + ebx*4 - 0x58], eax
test eax, eax
je 0x404b2f
inc ebx
inc dword [ebp - 0x74]
push 0x38
lea eax, [ebp - 0x4c]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [0x40b3a4]
add esp, 0xc
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x38
mov dword [ebp - 0x48], 0x1000
push eax
mov dword [ebp - 0x40], 0x70
mov dword [ebp - 0x24], 0x92
mov dword [ebp - 0x34], 0x405583
mov dword [ebp - 0x30], edi
call esi
mov dword [ebp + ebx*4 - 0x58], eax
test eax, eax
je 0x404b7f
inc ebx
inc dword [ebp - 0x74]
test ebx, ebx
je 0x404b95
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.COMCTL32.dll_PropertySheetW]
cmp eax, 0xffffffff
jne 0x404bf4
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x40b018]
cmp eax, 0x40b018
je 0x404bf4
cmp byte [eax + 0x19], 2
jb 0x404bf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x40b018]
mov edx, 0x40167c
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x12
pop ecx
call fcn.00401d64
jmp 0x404bf4
mov eax, dword [0x40b018]
cmp eax, 0x40b018
je 0x404bf4
cmp byte [eax + 0x19], 2
jb 0x404bf4
push dword [eax + 0x14]
mov edx, 0x40167c
push dword [eax + 0x10]
push 0xf
pop ecx
call fcn.00401d41
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4