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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56fa58
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
call fcn.0045adc0
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x4e0519
push 0x80004005
call fcn.0045a8f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
push dword [ebx + 0x3c]
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push dword [0x5d67e4]
push eax
call fcn.0045acb0
add esp, 0xc
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x54]
push 0x20019
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 1
call fcn.0045b220
test eax, eax
jne 0x4e0a47
mov dword [ebp - 0x30], 0xfa0
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4e059a
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, 0xfa0
or ecx, edx
mov byte [ebp - 4], 2
jge 0x4e05d0
push 0xfa0
lea ecx, [ebp - 0x18]
call fcn.0045b530
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
push ecx
push eax
push str.apnuSwitches
lea ecx, [ebp - 0x54]
call fcn.0045d730
mov ecx, dword [ebp - 0x18]
mov edi, eax
push dword [ecx - 8]
push ecx
call fcn.00526d13
mov edx, eax
add esp, 8
test edx, edx
js 0x4e09b7
mov ecx, dword [ebp - 0x18]
cmp edx, dword [ecx - 8]
jg 0x4e09b7
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov word [eax + edx*2], cx
test edi, edi
jne 0x4e06e6
lea eax, [ebp - 0x18]
push 0x57a900
push eax
call fcn.0045c220
add esp, 8
test al, al
je 0x4e06e6
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.004e1170
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
push edi
push edi
push 0x2001f
push edi
push edi
push dword [ebx + 0x40]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
push dword [ebx + 0x38]
call fcn.0045aa10
test eax, eax
mov eax, dword [ebp - 0x48]
jne 0x4e06d1
add ebx, 4
nop
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
push eax
mov ecx, ebx
call fcn.004dfee0
cmp dword [eax + 0xc], 0
je 0x4e06c5
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.004dfee0
cmp dword [eax], 0
je 0x4e06c5
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.004dfee0
mov ecx, ebx
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004dfee0
push 4
lea ecx, [ebp - 0x30]
push ecx
push 4
push 0
push dword [eax]
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
inc edi
cmp edi, 0x44
jl 0x4e0670
mov eax, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x20]
mov dword [ebx + 0x34], 1
test eax, eax
je 0x4e09f8
push eax
jmp 0x4e09f1
xor ebx, ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov byte [ebp - 4], 4
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], 0x104
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
je 0x4e050f
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov edi, dword [ebp - 0x28]
mov byte [ebp - 4], 5
test edi, edi
js 0x4e09b7
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x4e074e
push edi
lea ecx, [ebp - 0x14]
call fcn.0045b530
mov eax, dword [ebp - 0x14]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x28]
push ecx
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ecx, dword [ebp - 0x14]
mov edi, eax
push dword [ecx - 8]
push ecx
call fcn.00526d13
mov edx, eax
add esp, 8
test edx, edx
js 0x4e09b7
mov ecx, dword [ebp - 0x14]
cmp edx, dword [ecx - 8]
jg 0x4e09b7
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov word [eax + edx*2], cx
test edi, edi
jne 0x4e09c1
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ecx
jl 0x4e0930
push str.switches_
push eax
call fcn.00526d32
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x4e092d
mov eax, dword [ebp - 0x14]
sub ecx, eax
sar ecx, 1
jne 0x4e0930
mov dword [ebp - 0x30], 0x104
call fcn.0045adc0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4e050f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
mov byte [ebp - 4], 6
jge 0x4e0824
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.0045b530
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x30]
push ecx
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x54]
call fcn.0045d730
test eax, eax
mov eax, dword [ebp - 0x1c]
sete byte [ebp - 0xd]
push dword [eax - 8]
push eax
call fcn.00526d13
mov edx, eax
add esp, 8
test edx, edx
js 0x4e09b7
mov ecx, dword [ebp - 0x1c]
cmp edx, dword [ecx - 8]
jg 0x4e09b7
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov word [eax + edx*2], cx
cmp byte [ebp - 0xd], cl
je 0x4e090c
mov edi, dword [ebp - 0x20]
test ebx, ebx
jne 0x4e089a
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push dword [edi + 0x40]
lea ecx, [ebp - 0x48]
push dword [edi + 0x38]
call fcn.0045aa10
test eax, eax
jne 0x4e096f
lea eax, [ebp - 0x30]
mov ecx, 0x5d4770
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x14]
call fcn.004e0110
test eax, eax
je 0x4e090c
mov eax, dword [eax + 4]
push dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
call fcn.005275fc
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
push 4
push eax
push 4
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
lea eax, [ebp - 0x30]
push eax
lea ecx, [edi + 4]
call fcn.004dfee0
mov ecx, dword [ebp - 0x20]
push eax
call fcn.004e19c0
lea eax, [ebp - 0x30]
push eax
lea ecx, [edi + 4]
call fcn.004dfee0
mov dword [eax + 0xc], 1
mov edx, dword [ebp - 0x1c]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4e092d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4e094e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc dword [ebp - 0x24]
mov dword [ebp - 0x28], 0x104
call fcn.0045adc0
mov edx, eax
test edx, edx
je 0x4e050f
mov ebx, dword [ebp - 0x48]
jmp 0x4e0715
mov edx, dword [ebp - 0x1c]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 5
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4e0992
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4e09b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x48]
jmp 0x4e09e5
push 0x80070057
call fcn.0045a8f0
mov edx, dword [ebp - 0x14]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4e09e2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x20]
test ebx, ebx
je 0x4e0a22
mov dword [edi + 0x34], 1
push ebx
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
mov edx, dword [ebp - 0x18]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4e0a1b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, 1
jmp 0x4e0a4c
mov edx, dword [ebp - 0x18]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4e0a4a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4e0a4a
or ebx, 0xffffffff
xor edi, edi
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4e0a5a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4e0a78
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret