Function at 0x497570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d712e
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x510a84]
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 dword [ebp - 0x14], ecx
mov byte [ebp - 0x15], 0
mov word [ebp - 0x224], 0
lea ecx, [ebp - 0x230]
call fcn.004a5470
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x23c]
call fcn.004a5470
mov byte [ebp - 4], 1
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + 0x78]
call edx
mov eax, dword [ebp - 0x14]
push eax
push 0x497ba0
call fcn.004a6580
add esp, 8
push 0x511908
lea eax, [ebp - 0x224]
push eax
call dword [0x4dc684]
add esp, 8
lea eax, [ebp - 0x224]
push eax
call dword [0x4dc6a0]
add esp, 4
test eax, eax
jbe 0x497694
push 0
mov eax, dword [ebp - 0x14]
add eax, 0x50
push eax
lea ecx, [ebp - 0x224]
push ecx
call fcn.004a5e90
add esp, 0xc
movzx edx, al
test edx, edx
je 0x497694
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x50
call fcn.004a56b0
movzx ecx, al
test ecx, ecx
je 0x497681
lea edx, [ebp - 0x23c]
push edx
mov ecx, dword [ebp - 0x14]
add ecx, 0x50
call fcn.004a5690
movzx eax, al
test eax, eax
je 0x497681
mov dword [ebp - 0x2ac], 1
jmp 0x49768b
mov dword [ebp - 0x2ac], 0
mov cl, byte [ebp - 0x2ac]
mov byte [ebp - 0x15], cl
movzx eax, byte [ebp - 0x15]
test eax, eax
jne 0x497884
lea ecx, [ebp - 0x244]
call dword [0x4dc3b4]
mov byte [ebp - 4], 2
lea eax, [ebp - 0x244]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 0x7c]
call eax
lea eax, [ebp - 0x240]
push eax
push 1
push 0
lea ecx, [ebp - 0x244]
call dword [0x4dc3a0]
push eax
push 0x80000002
call dword [0x4dc04c]
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
jne 0x497874
mov dword [ebp - 0x250], 0x104
mov word [ebp - 0x224], 0
lea ecx, [ebp - 0x254]
call dword [0x4dc3b4]
mov byte [ebp - 4], 3
lea eax, [ebp - 0x254]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 0x80]
call eax
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x24c]
push edx
push 0
lea ecx, [ebp - 0x254]
call dword [0x4dc3a0]
push eax
mov eax, dword [ebp - 0x240]
push eax
call dword [0x4dc048]
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
jne 0x497857
lea eax, [ebp - 0x224]
push eax
call dword [0x4dc6a0]
add esp, 4
movzx ecx, word [ebp + eax*2 - 0x226]
cmp ecx, 0x5c
je 0x4977aa
push 0x4dd0e8
lea eax, [ebp - 0x224]
push eax
call dword [0x4dc640]
add esp, 8
lea ecx, [ebp - 0x258]
call dword [0x4dc3b4]
mov byte [ebp - 4], 4
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x2a8]
call dword [0x4dc310]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2a8]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + 0x90]
call edx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2a8]
call dword [0x4dc30c]
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 0x94]
call eax
lea ecx, [ebp - 0x258]
call dword [0x4dc3a0]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [0x4dc640]
add esp, 8
push 0
mov eax, dword [ebp - 0x14]
add eax, 0x50
push eax
lea ecx, [ebp - 0x224]
push ecx
call fcn.004a5e90
add esp, 0xc
mov byte [ebp - 0x15], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x258]
call dword [0x4dc30c]
mov eax, dword [ebp - 0x240]
push eax
call dword [0x4dc044]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x254]
call dword [0x4dc30c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x244]
call dword [0x4dc30c]
movzx eax, byte [ebp - 0x15]
test eax, eax
jne 0x4978c4
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x50
call fcn.00413270
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x23c]
call fcn.004a5490
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.004a5490
jmp 0x497980
push 0x5c
lea eax, [ebp - 0x224]
push eax
call fcn.00420a10
add esp, 8
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0
je 0x4978f0
mov eax, dword [ebp - 0x25c]
mov word [eax + 2], 0
push 0x4dca1c
lea ecx, [ebp - 0x2a4]
call dword [0x4dc310]
mov byte [ebp - 4], 6
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x2a0]
call dword [0x4dc310]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2a4]
push ecx
lea edx, [ebp - 0x2a0]
push edx
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 0x1c]
call eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2a0]
call dword [0x4dc30c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a4]
call dword [0x4dc30c]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x23c]
call fcn.004a5490
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.004a5490
xor eax, eax
jne 0x4975a1
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.004c9dd8
mov esp, ebp
pop ebp
ret