Function at 0x4176e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x53000c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov byte [ebp - 0x23d], 0
call fcn.0049a740
push 0x20a
cmp eax, 3
mov dword [ebp - 0x23c], 0
push 0
lea eax, [ebp - 0x21c]
push eax
jl 0x4178b3
call fcn.004bcaf0
add esp, 0xc
lea ecx, [ebp - 0x23c]
cmp dword [0x53c8a8], 8
mov eax, 0x53c894
cmovae eax, dword [0x53c894]
push ecx
push 0x20019
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x417790
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x220], 0x104
push ecx
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0
push 0x51c81c
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp word [ebp - 0x21c], 0
je 0x4179e2
xor eax, eax
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4177c4
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.0041a5b0
cmp byte [ebp + 0x10], 0
mov eax, dword [esi + 0x14]
je 0x41782e
mov edx, esi
cmp eax, 8
jb 0x4177f8
mov edx, dword [esi]
push dword [esi + 0x10]
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x238]
mov ebx, dword [ebp - 0x238]
push edx
mov edx, dword [ebp - 0x228]
cmovae ecx, ebx
push 0
call fcn.0041b200
add esp, 0xc
cmp eax, 0xffffffff
setne byte [ebp - 0x23d]
jmp 0x417878
mov ecx, esi
cmp eax, 8
jb 0x417837
mov ecx, dword [esi]
cmp dword [ebp - 0x224], 8
lea edi, [ebp - 0x238]
mov ebx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x228]
cmovae edi, ebx
cmp edx, dword [esi + 0x10]
jne 0x417878
test edx, edx
je 0x417871
sub edi, ecx
nop
mov ax, word [ecx + edi]
cmp ax, word [ecx]
jne 0x417878
add ecx, 2
sub edx, 1
jne 0x417860
mov byte [ebp - 0x23d], 1
mov eax, dword [ebp - 0x224]
cmp eax, 8
jb 0x4179e2
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x4178ac
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4179fb
push ecx
push ebx
jmp 0x4179da
call fcn.004bcaf0
add esp, 0xc
lea ecx, [ebp - 0x23c]
cmp dword [0x53c8c0], 8
mov eax, 0x53c8ac
cmovae eax, dword [0x53c8ac]
push ecx
push 0x20019
push 0
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x41791a
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x220], 0x104
push ecx
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0
push 0x51c79c
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp word [ebp - 0x21c], 0
je 0x4179e2
xor eax, eax
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417950
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.0041a5b0
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x41797c
mov eax, dword [edi]
push dword [edi + 0x10]
mov ebx, dword [ebp - 0x224]
lea ecx, [ebp - 0x238]
mov esi, dword [ebp - 0x238]
cmp ebx, 8
mov edx, dword [ebp - 0x228]
push eax
cmovae ecx, esi
push 0
call fcn.0041b200
add esp, 0xc
cmp eax, 0xffffffff
setne byte [ebp - 0x23d]
cmp ebx, 8
jb 0x4179e2
lea ecx, [ebx*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x4179d8
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417a00
push ecx
push esi
call fcn.0048e9ad
add esp, 8
mov ecx, dword [ebp - 8]
mov al, byte [ebp - 0x23d]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0048e99c
mov esp, ebp
pop ebp
ret 0xc
call fcn.004c5929
call fcn.004c5929
int3