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

Disassembly:
push 0xffffffffffffffff
push 0x43bfc5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push ebp
push esi
push edi
mov ebx, dword [esp + 0x144]
lea ecx, [esp + 0x10]
push ebx
mov dword [esp + 0x13c], 1
xor ebp, ebp
xor esi, esi
call fcn.0042e803
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x138], 2
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41a726
push 0x45a9a0
lea ecx, [esp + 0x14]
call fcn.0042c5e0
cmp eax, 0xffffffff
je 0x41a703
push 0x45a9a0
lea ecx, [esp + 0x14]
call fcn.0042c5e0
mov edi, dword [esp + 0x10]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x18]
sub ecx, edx
dec ecx
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.0042c4ca
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 3
call fcn.0042e882
lea ecx, [esp + 0x18]
mov byte [esp + 0x138], 2
call fcn.0042e795
jmp 0x41a711
push 0x45e768
lea ecx, [esp + 0x14]
call fcn.0042e8d2
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x41a69b
lea ecx, [esi*4 + 4]
push ecx
call fcn.0042ebbe
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebp
mov byte [esp + 0x138], 4
je 0x41a764
push fcn.0042e795
push 0x40f730
lea edi, [eax + 4]
push esi
push 4
push edi
mov dword [eax], esi
call fcn.0041de11
mov dword [esp + 0x18], edi
jmp 0x41a768
mov dword [esp + 0x18], ebp
push ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 2
call fcn.0042e8d2
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41a873
mov esi, dword [esp + 0x18]
mov bl, 6
push 0x45a9a0
lea ecx, [esp + 0x14]
call fcn.0042c5e0
cmp eax, 0xffffffff
je 0x41a841
push 0x45a9a0
lea ecx, [esp + 0x14]
call fcn.0042c5e0
lea edx, [esp + 0x20]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.0042c546
mov ecx, esi
push eax
mov byte [esp + 0x13c], 5
inc ebp
add esi, 4
call fcn.0042e882
lea ecx, [esp + 0x20]
mov byte [esp + 0x138], 2
call fcn.0042e795
push 0x45a9a0
lea ecx, [esp + 0x14]
call fcn.0042c5e0
mov edi, dword [esp + 0x10]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x1c]
sub ecx, edx
dec ecx
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.0042c4ca
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], bl
call fcn.0042e882
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 2
call fcn.0042e795
jmp 0x41a85f
lea edx, [esp + 0x10]
mov ecx, esi
push edx
inc ebp
add esi, 4
call fcn.0042e882
push 0x45e768
lea ecx, [esp + 0x14]
call fcn.0042e8d2
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x41a794
push 0x45e768
lea ecx, [esp + 0x14]
xor edi, edi
call fcn.0042e8d2
test ebp, ebp
jle 0x41a8e3
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x140]
push esi
lea ecx, [esp + 0x14]
call fcn.0042eaba
mov edx, dword [esp + 0x144]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0xf003f
push 0
push str.RegApp_Settings
push 0
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41a939
cmp edi, ebp
je 0x41a8db
push 0x45a9a0
lea ecx, [esp + 0x14]
call fcn.0042ea7e
inc edi
add esi, 4
cmp edi, ebp
jl 0x41a892
cmp edi, ebp
jne 0x41a939
mov eax, dword [esp + 0x14c]
sub eax, 0
je 0x41abf4
dec eax
je 0x41a992
dec eax
jne 0x41ac23
mov ecx, dword [esp + 0x148]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x150]
push 4
push eax
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x41ac23
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x138], 1
call fcn.0042e795
lea ecx, [esp + 0x154]
mov byte [esp + 0x138], 0
call fcn.0042e795
lea ecx, [esp + 0x158]
mov dword [esp + 0x138], 0xffffffff
call fcn.0042e795
xor eax, eax
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret 0x1c
mov edi, dword [esp + 0x154]
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x148]
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x41aba3
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push edx
push eax
push 0
push ebp
push ecx
mov dword [esp + 0x34], 0xff
mov dword [esp + 0x38], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41a939
lea edx, [esp + 0x30]
lea ecx, [esp + 0x154]
push edx
call fcn.0042e8d2
lea ecx, [esp + 0x154]
call fcn.0042c9c5
lea ecx, [esp + 0x154]
call fcn.0042c979
mov edi, dword [esp + 0x158]
mov esi, 0x45a458
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41aa44
test cl, cl
je 0x41aa40
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41aa44
add eax, 2
add esi, 2
test cl, cl
jne 0x41aa1c
xor eax, eax
jmp 0x41aa49
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41aac3
lea eax, [esp + 0x18]
push 1
push eax
lea ecx, [esp + 0x15c]
call fcn.0042c4ca
mov eax, dword [eax]
mov esi, 0x45a458
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41aa8f
test cl, cl
je 0x41aa8b
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41aa8f
add eax, 2
add esi, 2
test cl, cl
jne 0x41aa67
xor eax, eax
jmp 0x41aa94
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x18]
setne bl
call fcn.0042e795
test bl, bl
je 0x41aba3
lea eax, [esp + 0x158]
lea ecx, [esp + 0x154]
push eax
call fcn.0042eaba
jmp 0x41aba3
mov esi, 0x45a98c
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41aaf2
test cl, cl
je 0x41aaee
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41aaf2
add eax, 2
add esi, 2
test cl, cl
jne 0x41aaca
xor eax, eax
jmp 0x41aaf7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41aba3
lea eax, [esp + 0x28]
push 1
push eax
lea ecx, [esp + 0x15c]
call fcn.0042c4ca
mov eax, dword [eax]
mov esi, 0x45a458
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41ab41
test cl, cl
je 0x41ab3d
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41ab41
add eax, 2
add esi, 2
test cl, cl
jne 0x41ab19
xor eax, eax
jmp 0x41ab46
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x28]
sete bl
call fcn.0042e795
test bl, bl
je 0x41aba3
mov edi, dword [esp + 0x154]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
lea eax, [esp + 0x24]
push ecx
push eax
lea ecx, [esp + 0x15c]
call fcn.0042c546
push eax
lea ecx, [esp + 0x158]
mov byte [esp + 0x13c], 7
call fcn.0042e882
lea ecx, [esp + 0x24]
mov byte [esp + 0x138], 2
call fcn.0042e795
mov ecx, dword [esp + 0x154]
mov esi, dword [ecx - 8]
push esi
call fcn.0042ebbe
add esp, 4
xor ecx, ecx
test esi, esi
jle 0x41abd0
mov edx, dword [esp + 0x154]
inc ecx
cmp ecx, esi
mov dl, byte [ecx + edx - 1]
mov byte [ecx + eax - 1], dl
jl 0x41abbc
push esi
push eax
mov byte [ecx + eax], 0
mov eax, dword [esp + 0x1c]
push 1
push 0
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x41ac23
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x41a933
mov eax, dword [esp + 0x148]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x150]
push 4
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x41ac23
mov edx, dword [esp + 0x14]
push edx
jmp 0x41a933
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x138], 1
call fcn.0042e795
lea ecx, [esp + 0x154]
mov byte [esp + 0x138], 0
call fcn.0042e795
lea ecx, [esp + 0x158]
mov dword [esp + 0x138], 0xffffffff
call fcn.0042e795
mov eax, 1
jmp 0x41a977