Function at 0x478714
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push 1
call fcn.0047920d
add esp, 4
test eax, eax
jne 0x478732
xor eax, eax
jmp 0x4789d3
mov dword [ebp - 0x134], 0x80
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00478c74
add esp, 0xc
test eax, eax
jne 0x478761
xor eax, eax
jmp 0x4789d3
push 3
push str.EN_IsValidVoucherPath__EN_GetVoucherPathVerify
mov eax, dword [0x50bd20]
mov edx, dword [eax]
mov ecx, dword [0x50bd20]
call dword [edx + 8]
lea eax, [ebp - 0x13c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x478799
xor eax, eax
jmp 0x4789d3
push 3
push str.EN_IsValidVoucherPath_RegOpenKey
mov edx, dword [0x50bd20]
mov eax, dword [edx]
mov ecx, dword [0x50bd20]
call dword [eax + 8]
mov dword [ebp - 0x130], 0x80
mov dword [ebp - 0x10c], 0
lea ecx, [ebp - 0x130]
push ecx
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0x10c]
push eax
push 0
push 0x504940
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x478806
mov edx, dword [ebp - 0x13c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4789d3
push 3
push str.EN_IsValidVoucherPath__RegQueryValueEx_code
mov eax, dword [0x50bd20]
mov edx, dword [eax]
mov ecx, dword [0x50bd20]
call dword [edx + 8]
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x138], 4
mov dword [ebp - 0x10c], 4
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x10c]
push edx
push 0
push 0x504974
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x47887c
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4789d3
mov edx, dword [ebp - 0x13c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
push str.EN_IsValidVoucherPath__RegQueryValueEx_type
mov eax, dword [0x50bd20]
mov edx, dword [eax]
mov ecx, dword [0x50bd20]
call dword [edx + 8]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x130]
push eax
call fcn.004a7fba
add esp, 4
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x88], ecx
xor edx, edx
cmp dword [ebp - 0x110], 1
sete dl
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 0x114]
push eax
push 1
push 0x18
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00476ab0
add esp, 0x10
cmp eax, 0x18
jne 0x4789b5
push 3
push str.EN_IsValidVoucherPath__EN_GetReaderKey
mov edx, dword [0x50bd20]
mov eax, dword [edx]
mov ecx, dword [0x50bd20]
call dword [eax + 8]
push 0x1e
push str.yuan_deng_shan_yuan_deng_shan
mov ecx, dword [ebp - 0x88]
push ecx
mov edx, dword [ebp - 0x130]
push edx
lea eax, [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
push 0x18
lea edx, [ebp - 0x12c]
push edx
call fcn.00473984
add esp, 0x20
test eax, eax
jle 0x4789b5
push 3
push str.EN_IsValidVoucherPath__b_DecryptDataByRightKey
mov eax, dword [0x50bd20]
mov edx, dword [eax]
mov ecx, dword [0x50bd20]
call dword [edx + 8]
mov eax, dword [ebp - 0x134]
add eax, 1
cmp dword [ebp - 0x130], eax
jne 0x4789b5
mov ecx, dword [ebp - 0x134]
push ecx
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x88]
push eax
call fcn.00490170
add esp, 0xc
test eax, eax
jne 0x4789b5
mov dword [ebp - 4], 1
push 3
push str.EN_IsValidVoucherPath__is_ok
mov ecx, dword [0x50bd20]
mov edx, dword [ecx]
mov ecx, dword [0x50bd20]
call dword [edx + 8]
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
push ecx
call fcn.004a7fe3
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret