Function at 0x51a624
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x30
push 0
push 0
dec ecx
jne 0x51a62d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x51ad47
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00404ab8
lea eax, [ebp - 8]
push eax
mov edx, dword [ebp - 0xc]
mov eax, 0x51ad60
call fcn.00405024
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00404f40
mov al, byte [0x51ad64]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x128]
mov ecx, 0x51ad60
mov edx, dword [ebp - 8]
call fcn.00404d2c
mov edx, dword [ebp - 0x128]
xor ecx, ecx
mov eax, dword [ebp - 0xc]
call fcn.0040e9b0
mov edx, dword [ebp - 0x124]
lea eax, [ebp - 0xc]
call fcn.00404ab8
mov eax, dword [ebp - 8]
call fcn.00579944
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404ee0
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne case.0x51a7d1.0
mov dword [ebp - 0x18], pe_nt_image_headers32
lea eax, [ebp - 0x10]
mov edx, esi
call fcn.00404ab8
mov eax, dword [ebp - 0x10]
mov edx, 0x51ad70
call fcn.00404e2c
jne 0x51a750
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x138], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x130], 0xb
lea edx, [ebp - 0x13c]
mov ecx, 1
mov eax, 0x51ad80
call fcn.0040a520
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp case.0x51a7d1.0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 0x10]
call fcn.00404ee0
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne case.0x51a7d1.0
lea eax, [ebp - 0x140]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x138], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x130], 0xb
lea edx, [ebp - 0x13c]
mov ecx, 1
mov eax, 0x51ad80
call fcn.0040a520
mov edx, dword [ebp - 0x140]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x14]
cmp eax, 7
ja case.0x51a7d1.0
jmp dword [eax*4 + 0x51a7d8]
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x120]
mov ecx, pe_nt_image_headers32
call fcn.00404c90
mov eax, dword [ebp - 0x1c]
call fcn.00404ce0
mov ebx, eax
lea eax, [ebp - 0x1c]
call fcn.00404a20
mov esi, ebx
dec esi
test esi, esi
jl 0x51a85e
inc esi
lea ebx, [ebp - 0x120]
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x144]
xor eax, eax
mov al, byte [ebx]
mov edx, 2
call fcn.004095b4
push dword [ebp - 0x144]
push 0x51ad90
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404da0
inc ebx
dec esi
jne 0x51a82b
mov eax, dword [ebp - 0x1c]
call fcn.00404ce0
mov edx, eax
lea eax, [ebp - 0x1c]
mov ecx, 1
call fcn.00404f80
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x138], 0xb
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x130], 0xb
lea edx, [ebp - 0x13c]
mov ecx, 1
mov eax, 0x51ad9c
call fcn.0040a520
mov edx, dword [ebp - 0x148]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp case.0x51a7d1.0
lea eax, [ebp - 0x1c]
call fcn.00404a20
mov esi, dword [ebp - 0x18]
test esi, esi
jl 0x51a914
inc esi
lea ebx, [ebp - 0x120]
mov al, byte [ebx]
test al, al
je 0x51a910
mov edi, eax
and edi, 0xff
mov eax, edi
and eax, 0xff
lea ecx, [ebp - 0x14c]
mov edx, 2
call fcn.004095b4
mov edx, dword [ebp - 0x14c]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
call fcn.00404d2c
inc ebx
dec esi
jne 0x51a8da
lea eax, [ebp - 0x150]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x138], 0xb
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x130], 0xb
lea edx, [ebp - 0x13c]
mov ecx, 1
mov eax, 0x51adb0
call fcn.0040a520
mov edx, dword [ebp - 0x150]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp case.0x51a7d1.0
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x120]
mov ecx, pe_nt_image_headers32
call fcn.00404c90
mov ebx, 1
lea eax, [ebp - 0x1c]
call fcn.00404a20
jmp 0x51aa50
mov eax, dword [ebp - 0x20]
mov al, byte [eax + ebx - 1]
push eax
call sub.kernel32.dll_IsDBCSLeadByte
test eax, eax
je 0x51aa15
lea eax, [ebp - 0x15c]
mov edx, dword [ebp - 0x20]
mov dl, byte [edx + ebx - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x15c]
lea eax, [ebp - 0x160]
call fcn.00403138
lea eax, [ebp - 0x164]
mov edx, dword [ebp - 0x20]
mov dl, byte [edx + ebx]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x164]
lea eax, [ebp - 0x160]
mov cl, 2
call fcn.00403108
lea edx, [ebp - 0x160]
lea eax, [ebp - 0x158]
call fcn.00404c84
mov eax, dword [ebp - 0x158]
lea edx, [ebp - 0x154]
call fcn.0057aac4
mov edx, dword [ebp - 0x154]
lea eax, [ebp - 0x1c]
call fcn.00404ce8
inc ebx
jmp 0x51aa4f
mov eax, dword [ebp - 0x20]
movzx edi, byte [eax + ebx - 1]
push dword [ebp - 0x1c]
mov eax, edi
and eax, 0xff
lea ecx, [ebp - 0x168]
mov edx, 2
call fcn.004095b4
push dword [ebp - 0x168]
push 0x51adc8
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404da0
inc ebx
mov eax, dword [ebp - 0x20]
call fcn.00404ce0
cmp ebx, eax
jle 0x51a988
mov eax, dword [ebp - 0x1c]
call fcn.00404ce0
mov edx, eax
lea eax, [ebp - 0x1c]
mov ecx, 1
call fcn.00404f80
lea eax, [ebp - 0x16c]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x138], 0xb
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x130], 0xb
lea edx, [ebp - 0x13c]
mov ecx, 1
mov eax, 0x51add8
call fcn.0040a520
mov edx, dword [ebp - 0x16c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp case.0x51a7d1.0
xor ebx, ebx
lea eax, [ebp - 0x1c]
call fcn.00404a20
jmp 0x51abdb
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [ebp - 0x18]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x51aaf2
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x51abdb
jmp 0x51aafa
pop edx
pop eax
jle 0x51abdb
cmp byte [ebp + ebx - 0x120], 0
jne 0x51ab12
cmp byte [ebp + ebx - 0x11f], 0
je 0x51ac00
mov al, byte [ebp + ebx - 0x120]
push eax
call sub.kernel32.dll_IsDBCSLeadByte
test eax, eax
je 0x51aba0
lea eax, [ebp - 0x15c]
mov dl, byte [ebp + ebx - 0x120]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x15c]
lea eax, [ebp - 0x160]
call fcn.00403138
lea eax, [ebp - 0x164]
mov dl, byte [ebp + ebx - 0x11f]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x164]
lea eax, [ebp - 0x160]
mov cl, 2
call fcn.00403108
lea edx, [ebp - 0x160]
lea eax, [ebp - 0x174]
call fcn.00404c84
mov eax, dword [ebp - 0x174]
lea edx, [ebp - 0x170]
call fcn.0057aac4
mov edx, dword [ebp - 0x170]
lea eax, [ebp - 0x1c]
call fcn.00404ce8
inc ebx
jmp 0x51abda
movzx edi, byte [ebp + ebx - 0x120]
push dword [ebp - 0x1c]
mov eax, edi
and eax, 0xff
lea ecx, [ebp - 0x178]
mov edx, 2
call fcn.004095b4
push dword [ebp - 0x178]
push 0x51adc8
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404da0
inc ebx
mov eax, ebx
cdq
push edx
push eax
mov eax, dword [ebp - 0x18]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x51abf8
cmp eax, dword [esp]
pop edx
pop eax
jae 0x51aad5
jmp 0x51ac00
pop edx
pop eax
jge 0x51aad5
lea eax, [ebp - 0x1c]
mov edx, 0x51adf0
call fcn.00404ce8
lea eax, [ebp - 0x17c]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x138], 0xb
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x130], 0xb
lea edx, [ebp - 0x13c]
mov ecx, 1
mov eax, 0x51ae04
call fcn.0040a520
mov edx, dword [ebp - 0x17c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp case.0x51a7d1.0
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x120]
mov ecx, pe_nt_image_headers32
call fcn.00404c90
mov al, byte [0x51ad64]
push eax
lea eax, [ebp - 0x180]
push eax
mov ecx, 0x51ae1c
mov edx, 0x51ad60
mov eax, dword [ebp - 0x1c]
call fcn.0040e9b0
mov edx, dword [ebp - 0x180]
lea eax, [ebp - 0x1c]
call fcn.00404ab8
lea eax, [ebp - 0x184]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 0x138], 0xb
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x134], eax
mov byte [ebp - 0x130], 0xb
lea edx, [ebp - 0x13c]
mov ecx, 1
mov eax, 0x51ae28
call fcn.0040a520
mov edx, dword [ebp - 0x184]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51ad4e
lea eax, [ebp - 0x184]
mov edx, 8
call fcn.00404a44
lea eax, [ebp - 0x158]
mov edx, 7
call fcn.00404a44
lea eax, [ebp - 0x12c]
mov edx, 3
call fcn.00404a44
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404a44
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404a44
ret