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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x28]
mov esi, 1
push ebx
sub esp, 0x7c
mov dword [esp + 8], eax
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sym._parse_registry_key
test eax, eax
je 0x404e13
cmp dword [ebp + 8], 3
jle 0x405090
xor esi, esi
mov dword [ebp - 0x44], 0
mov edi, 3
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x52], si
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
lea eax, [edi*4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax + edi*4]
movzx eax, word [esi]
and eax, 0xfffffffd
cmp ax, 0x2d
jne case.0x404fa1.1
lea ebx, [esi + 2]
mov dword [esp + 4], 0x409000
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x404f10
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x404e20
mov dword [esp], 0x69
mov esi, 1
call sym._output_message
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsupr]
mov dword [esp], 0x6a
mov dword [esp + 4], eax
call sym._output_message
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x3c], 1
inc edi
cmp dword [ebp + 8], edi
jg 0x404da1
mov eax, dword [ebp - 0x4c]
test eax, eax
setne al
test byte [ebp - 0x3c], al
jne case.0x404fa1.1
cmp dword [ebp - 0x44], 0x300
je case.0x404fa1.1
lea eax, [ebp - 0x20]
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 0x10], 0
or eax, 0x2001f
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x24
test eax, eax
jne 0x405285
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x405700
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x40556a
mov ebx, dword [sym.imp.ucrtbase.dll__wcsicmp]
xor edi, edi
lea esi, [esi]
mov eax, dword [edi*8 + 0x4098c4]
mov dword [esp + 4], esi
mov dword [esp], eax
call ebx
test eax, eax
je 0x405188
inc edi
cmp edi, 9
jne 0x404ec0
mov eax, dword [ebp - 0x24]
mov esi, 1
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp + 4], eax
mov dword [esp], 0xcc
call sym._output_message
jmp 0x404e13
mov dword [esp + 4], 0x409006
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x404f40
mov eax, dword [ebp - 0x44]
test ah, 2
jne case.0x404fa1.1
or ah, 2
mov dword [ebp - 0x44], eax
jmp 0x404e27
mov dword [esp + 4], 0x409014
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x404f70
mov eax, dword [ebp - 0x44]
test ah, 1
jne case.0x404fa1.1
or ah, 1
mov dword [ebp - 0x44], eax
jmp 0x404e27
movzx eax, word [esi + 2]
test ax, ax
je case.0x404fa1.1
cmp word [esi + 4], 0
jne case.0x404fa1.1
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_towlower]
sub eax, 0x64
cmp ax, 0x12
ja case.0x404fa1.1
movzx eax, ax
jmp dword [eax*4 + 0x409024]
mov edx, dword [ebp - 0x50]
test edx, edx
jne case.0x404fa1.1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x40]
inc edi
mov eax, dword [eax + edx + 4]
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x404e27
jmp case.0x404fa1.1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x40]
inc edi
cmp word [ebp - 0x52], 0
mov ecx, dword [eax + edx + 4]
jne case.0x404fa1.1
test ecx, ecx
je case.0x404fa1.1
movzx eax, word [ecx]
mov word [ebp - 0x52], ax
test ax, ax
je case.0x404fa1.1
mov eax, ecx
add eax, 2
cmp word [eax], 0
jne 0x405000
sub eax, ecx
cmp eax, 2
je 0x404e27
jmp case.0x404fa1.1
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
jne case.0x404fa1.1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x40]
inc edi
mov eax, dword [eax + edx + 4]
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x404e27
jmp case.0x404fa1.1
mov eax, dword [ebp - 0x58]
test eax, eax
jne case.0x404fa1.1
mov dword [ebp - 0x58], 1
jmp 0x404e27
mov eax, dword [ebp - 0x48]
test eax, eax
jne case.0x404fa1.1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x40]
inc edi
mov eax, dword [eax + edx + 4]
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x404e27
jmp case.0x404fa1.1
lea eax, [ebp - 0x20]
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x14], 0x2001f
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x24
test eax, eax
jne 0x405285
cmp dword [ebp - 0x20], 2
jne 0x40560b
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x52], ax
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x404eaa
mov eax, dword [ebp - 0x4c]
mov dword [esp], 0xcd
mov dword [esp + 4], eax
call sym._ask_confirm
mov esi, eax
test eax, eax
jne 0x404eaa
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push edi
mov dword [esp], 0x6d
call sym._output_message
jmp 0x404e13
mov edi, dword [edi*8 + 0x4098c0]
mov esi, eax
cmp edi, 0xffffffff
je 0x404ede
lea eax, [edi - 4]
cmp eax, 1
ja 0x40529b
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x405689
mov ebx, dword [ebp - 0x48]
movzx eax, word [ebx + 2]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_towlower]
mov edx, 0xa
mov dword [esp], ebx
cmp ax, 0x78
mov eax, 0x10
cmovne eax, edx
mov dword [esp + 8], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_wcstoul]
mov ebx, eax
mov eax, dword [ebp - 0x1c]
cmp word [eax], 0
jne 0x40565b
mov eax, dword [ebp - 0x48]
cmp word [eax], 0x2d
je 0x40565b
cmp ebx, 0xffffffff
je 0x4056ac
mov dword [esp], 4
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x3c], 4
mov dword [eax], ebx
mov ecx, eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x10], ecx
mov dword [ebp - 0x3c], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x3c]
sub esp, 0x18
mov esi, eax
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test esi, esi
jne 0x405285
mov dword [esp], 0x6c
call sym._output_message
jmp 0x404e13
mov dword [esp], 0x6b
mov esi, 1
call sym._output_message
jmp 0x404e13
mov ecx, dword [ebp - 0x48]
test ecx, ecx
jne 0x40555a
cmp edi, 0xb
ja case.0x4052ab.6
jmp dword [edi*4 + 0x409070]
mov dword [ebp - 0x3c], 2
xor ebx, ebx
mov dword [ebp - 0x48], 0x409730
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x48]
mov ecx, eax
xor eax, eax
jmp 0x4052db
movzx ebx, word [edx + eax]
mov word [ecx + eax], bx
add eax, 2
test bx, bx
jne 0x4052d7
jmp 0x405223
mov dword [ebp - 0x48], 0x409730
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], edi
mov dword [esp], 0xcb
mov dword [esp + 8], eax
call sym._output_message
mov dword [ebp - 0x3c], 0
xor ecx, ecx
jmp 0x405223
mov dword [ebp - 0x48], 0x409730
jmp case.0x405563.4
mov dword [ebp - 0x48], 0x409730
mov eax, dword [ebp - 0x48]
movzx ebx, word [eax]
test bx, bx
je 0x405669
add eax, 2
cmp word [eax], 0
jne 0x40533a
mov ecx, dword [ebp - 0x48]
mov edi, eax
sub edi, ecx
sar edi, 1
cmp eax, ecx
je 0x405669
mov eax, edi
mov ecx, 2
mov dword [ebp - 0x40], edi
cdq
idiv ecx
mov eax, edi
add eax, edx
cdq
idiv ecx
mov dword [ebp - 0x3c], eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, eax
mov eax, edi
test al, 1
je 0x4053ad
lea eax, [ebx - 0x30]
cmp ax, 9
jbe 0x4056ec
lea eax, [ebx - 0x61]
cmp ax, 5
jbe 0x4056e4
lea eax, [ebx - 0x41]
cmp ax, 5
ja 0x4055dd
sub ebx, 0x37
mov byte [ecx], bl
mov esi, 1
lea eax, [esi + 1]
cmp eax, dword [ebp - 0x40]
jge 0x405727
mov dword [ebp - 0x44], ecx
lea ebx, [ecx + esi]
mov ecx, dword [ebp - 0x48]
jmp 0x405434
lea edx, [eax - 0x61]
cmp dx, 5
jbe 0x4055a7
lea edx, [eax - 0x41]
sub eax, 0x37
cmp dx, 6
mov edx, 0xffffffff
cmovae eax, edx
movzx edx, word [ecx + esi*2 + 2]
lea edi, [edx - 0x30]
cmp di, 9
jbe 0x40559f
lea edi, [edx - 0x61]
cmp di, 5
jbe 0x4055af
lea edi, [edx - 0x41]
cmp di, 5
ja 0x4055da
sub edx, 0x37
cmp al, 0xff
je 0x4055da
shl eax, 4
inc ebx
or eax, edx
mov byte [ebx - 1], al
lea eax, [esi + 2]
add esi, 3
cmp dword [ebp - 0x40], esi
jle 0x40567c
mov esi, eax
movzx eax, word [ecx + esi*2]
lea edx, [eax - 0x30]
cmp dx, 9
ja 0x4053c4
sub eax, 0x30
jmp 0x4053e3
mov dword [ebp - 0x48], 0x409730
mov ebx, dword [ebp - 0x48]
movzx eax, word [ebx + 2]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_towlower]
mov edx, 0xa
mov dword [esp], ebx
cmp ax, 0x78
mov eax, 0x10
cmovne eax, edx
mov dword [esp + 8], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll__wcstoui64]
mov esi, eax
mov eax, dword [ebp - 0x1c]
mov ebx, edx
cmp word [eax], 0
jne 0x40565b
cmp edx, 0xffffffff
je 0x405643
mov dword [esp], 8
mov edi, 0xb
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x3c], 8
mov dword [eax], esi
mov ecx, eax
mov dword [eax + 4], ebx
jmp 0x405223
mov dword [ebp - 0x48], 0x409730
mov edi, dword [ebp - 0x48]
movzx ebx, word [edi]
test bx, bx
je 0x40570f
add edi, 2
cmp word [edi], 0
jne 0x4054d7
sub edi, dword [ebp - 0x48]
mov eax, edi
sar eax, 1
mov dword [ebp - 0x3c], eax
lea eax, [edi + 4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, eax
test edi, edi
jle 0x40571e
movzx edi, word [ebp - 0x52]
xor eax, eax
jmp 0x405542
mov word [ecx + eax*2], bx
test eax, eax
je 0x40552c
cmp word [ecx + eax*2 - 2], 0
jne 0x40552c
cmp word [ecx + eax*2], 0
je 0x40562c
cmp eax, 1
je 0x40562c
inc esi
lea edx, [eax + 1]
cmp dword [ebp - 0x3c], esi
jle 0x4056bd
mov eax, dword [ebp - 0x48]
movzx ebx, word [eax + esi*2]
mov eax, edx
test di, di
jne 0x40554d
cmp bx, 0x5c
je 0x4055b7
cmp bx, di
jne 0x405508
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x40550c
cmp edi, 0xb
ja case.0x405563.6
jmp dword [edi*4 + 0x4090a0]
cmp dword [ebp - 0x48], 0
mov edi, 1
je 0x405612
mov eax, dword [ebp - 0x48]
movzx ebx, word [eax]
test bx, bx
je 0x4056f4
add eax, 2
cmp word [eax], 0
jne 0x405588
sub eax, dword [ebp - 0x48]
add eax, 2
mov dword [ebp - 0x3c], eax
jmp 0x4052c2
sub edx, 0x30
jmp 0x405412
sub eax, 0x57
jmp 0x4053e3
sub edx, 0x57
jmp 0x405412
lea edx, [esi + 1]
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x48]
cmp word [edx + esi*2 + 2], 0x30
jne 0x405508
mov word [ecx + eax*2], 0
mov esi, dword [ebp - 0x40]
jmp 0x40550c
mov ecx, dword [ebp - 0x44]
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], 0xc9
call sym._output_message
mov eax, dword [ebp - 0x24]
mov esi, 1
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x404e13
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x3c], 2
xor ebx, ebx
mov edi, 1
mov dword [ebp - 0x48], 0x409730
jmp 0x4052c2
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], 0xca
call sym._output_message
jmp 0x4055f2
cmp esi, 0xffffffff
jne 0x40549c
call dword [sym.imp.ucrtbase.dll__errno]
cmp dword [eax], 0x22
jne 0x40549c
mov dword [esp], 0xc8
call sym._output_message
jmp 0x4055f2
mov dword [ebp - 0x3c], 0
mov edi, 3
xor ecx, ecx
jmp 0x405223
mov ecx, dword [ebp - 0x44]
mov edi, 3
jmp 0x405223
mov eax, dword [ebp - 0x24]
mov esi, 1
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push ebx
mov dword [esp], 0xce
call sym._output_message
jmp 0x404e13
call dword [sym.imp.ucrtbase.dll__errno]
cmp dword [eax], 0x22
jne 0x40520b
jmp 0x40565b
mov word [ecx + edx*2], 0
cmp word [ecx + eax*2], 0
je 0x4056d3
lea edx, [eax + 2]
mov word [ecx + edx*2], 0
inc edx
mov edi, 7
lea eax, [edx + edx]
mov dword [ebp - 0x3c], eax
jmp 0x405223
sub ebx, 0x57
jmp 0x4053a6
sub ebx, 0x30
jmp 0x4053a6
mov dword [ebp - 0x3c], 2
jmp 0x4052c2
cmp dword [ebp - 0x20], 2
jne 0x404eaa
jmp 0x405109
mov dword [esp], 4
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, eax
mov word [ecx], 0
xor edx, edx
jmp 0x4056d3
mov edi, 3
jmp 0x405223