Function at 0x417d40
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd068
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x633ef8]
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 eax, ecx
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
or edi, 0xffffffff
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0x28], 1
cmp byte [eax + 0x2c], bl
je 0x4180e4
mov dword [ebp - 0xf0], 0x104
call fcn.004555ae
mov ecx, eax
test ecx, ecx
jne 0x417db9
push 0x80004005
call fcn.00416970
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xf0]
test edx, edx
jns 0x417ddf
push 0x80070057
call fcn.00416970
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x417dfc
push edx
lea ecx, [ebp - 0x14]
call fcn.004165b0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0xf0]
push eax
push esi
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x10c]
push dword [ebp - 0x108]
push dword [eax + 0x28]
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
push dword [esi - 8]
mov dword [ebp - 0x18], eax
push esi
call fcn.0059ea3d
add esp, 8
test eax, eax
js 0x417dd5
cmp eax, dword [esi - 8]
jg 0x417dd5
cmp dword [ebp - 0x18], 0
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
je 0x417e51
mov ebx, 1
jmp 0x4180bc
cmp dword [esi - 0xc], 0xc
jl 0x4180bc
push 4
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
lea ecx, [ebp - 0x14]
call fcn.00419890
push 2
push 4
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], 0
call fcn.00419890
push 2
push 6
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
call fcn.00419890
push 2
push 8
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x38], 0
call fcn.00419890
push 2
push 0xa
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x34], 0
call fcn.00419890
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x34]
push edi
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
mov ebx, dword [ebp - 0x38]
push ebx
mov dword [ebp - 0xf4], eax
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
push dword [ebp - 0x1c]
mov dword [ebp - 0x100], eax
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
push dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
push dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
mov dword [ebp - 0xf8], eax
cmp eax, 0x76c
jge 0x417f3a
push 0x80004005
call fcn.00416970
mov ecx, dword [ebp - 0x2c]
dec ecx
cmp ecx, 0xb
jbe 0x417f4d
push 0x80004005
call fcn.00416970
mov eax, dword [ebp - 0x18]
dec eax
cmp eax, 0x1e
jbe 0x417f60
push 0x80004005
call fcn.00416970
mov edx, dword [ebp - 0x100]
cmp edx, 0x17
jbe 0x417f75
push 0x80004005
call fcn.00416970
mov eax, dword [ebp - 0xf4]
cmp eax, 0x3b
jbe 0x417f8a
push 0x80004005
call fcn.00416970
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0xf8]
add eax, 0xfffff894
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x3c], 0xffffffff
call fcn.005a2a0e
mov ecx, edx
mov dword [ebp - 0xf4], eax
and eax, ecx
mov dword [ebp - 0xf8], ecx
add esp, 4
cmp eax, 0xffffffff
jne 0x417fe0
push 0x80070057
call fcn.00416970
lea ecx, [ebp - 0x104]
call fcn.0041a3a0
mov ecx, 0x3c
mov eax, 0xf0
imul ecx
mov ecx, dword [ebp - 0x104]
sub ecx, eax
mov eax, dword [ebp - 0x100]
sbb eax, edx
cmp eax, dword [ebp - 0xf8]
jl 0x418023
jg 0x418019
cmp ecx, dword [ebp - 0xf4]
jbe 0x418023
mov dword [ebp - 0xfc], 1
lea edx, [edi - 0x10]
mov byte [ebp - 4], 4
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418041
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add ebx, 0xfffffff0
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x41805c
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41807a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418098
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4180b6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0xfc]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4180da
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x418226
jmp 0x4180ec
mov ebx, 1
mov byte [eax + 0x2c], bl
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x28], 1
call fcn.0041a3a0
call fcn.004555ae
mov ecx, eax
test ecx, ecx
jne 0x418110
push 0x80004005
call fcn.00416970
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 6
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0059d76e
test eax, eax
mov ecx, edi
lea eax, [ebp - 0x30]
cmove ecx, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0xf8], ecx
push eax
call fcn.0059d76e
test eax, eax
mov ecx, edi
lea eax, [ebp - 0x30]
cmove ecx, dword [ebp - 0x78]
push eax
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xf4], ecx
push eax
call fcn.0059d76e
xor ecx, ecx
test eax, eax
lea eax, [ebp - 0x30]
cmove ecx, dword [ebp - 0x98]
push eax
lea eax, [ebp - 0xc8]
mov dword [ebp - 0x100], ecx
push eax
call fcn.0059d76e
add esp, 0x20
test eax, eax
jne 0x418199
mov esi, dword [ebp - 0xb8]
inc esi
jmp 0x41819b
xor esi, esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xec]
push eax
call fcn.0059d76e
add esp, 8
test eax, eax
jne 0x4181bf
mov eax, dword [ebp - 0xd8]
add eax, 0x76c
jmp 0x4181c1
xor eax, eax
push dword [ebp - 0xf8]
push dword [ebp - 0xf4]
push dword [ebp - 0x100]
push esi
push eax
lea eax, [ebp - 0x18]
push str._4.4d_2.2d_2.2d_2.2d_2.2d
push eax
call fcn.00415ec0
mov esi, dword [ebp - 0x18]
add esp, 0x1c
mov eax, dword [ebp - 0x10c]
push dword [esi - 0xc]
push esi
push dword [ebp - 0x28]
push dword [ebp - 0x108]
push dword [eax + 0x28]
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x418226
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.005892bc
mov esp, ebp
pop ebp
ret 8