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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ffd68
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x53f030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
call fcn.0043ae40
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x49afa9
push 0x80004005
call fcn.0043a9b0
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 [0x53e79c]
push eax
call fcn.0043ad30
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.0043b290
test eax, eax
jne 0x49b4d7
mov dword [ebp - 0x30], 0xfa0
call fcn.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x49b02a
push 0x80004005
call fcn.0043a9b0
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 0x49b060
push 0xfa0
lea ecx, [ebp - 0x18]
call fcn.0043b5a0
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
push ecx
push eax
push str.apnuSwitches
lea ecx, [ebp - 0x54]
call fcn.0043d750
mov ecx, dword [ebp - 0x18]
mov edi, eax
push dword [ecx - 8]
push ecx
call fcn.004d9e5f
mov edx, eax
add esp, 8
test edx, edx
js 0x49b447
mov ecx, dword [ebp - 0x18]
cmp edx, dword [ecx - 8]
jg 0x49b447
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov word [eax + edx*2], cx
test edi, edi
jne 0x49b176
lea eax, [ebp - 0x18]
push 0x507ffc
push eax
call fcn.0043c270
add esp, 8
test al, al
je 0x49b176
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.0049bd30
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.0043aa90
test eax, eax
mov eax, dword [ebp - 0x48]
jne 0x49b161
add ebx, 4
nop
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
push eax
mov ecx, ebx
call fcn.0049aa10
cmp dword [eax + 0xc], 0
je 0x49b155
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.0049aa10
cmp dword [eax], 0
je 0x49b155
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.0049aa10
mov ecx, ebx
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0049aa10
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, 0x3f
jl 0x49b100
mov eax, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x20]
mov dword [ebx + 0x34], 1
test eax, eax
je 0x49b488
push eax
jmp 0x49b481
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.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
je 0x49af9f
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 0x49b447
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x49b1de
push edi
lea ecx, [ebp - 0x14]
call fcn.0043b5a0
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.004d9e5f
mov edx, eax
add esp, 8
test edx, edx
js 0x49b447
mov ecx, dword [ebp - 0x14]
cmp edx, dword [ecx - 8]
jg 0x49b447
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov word [eax + edx*2], cx
test edi, edi
jne 0x49b451
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ecx
jl 0x49b3c0
push str.switches_
push eax
call fcn.004d9e7e
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x49b3bd
mov eax, dword [ebp - 0x14]
sub ecx, eax
sar ecx, 1
jne 0x49b3c0
mov dword [ebp - 0x30], 0x104
call fcn.0043ae40
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x49af9f
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 0x49b2b4
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.0043b5a0
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x30]
push ecx
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x54]
call fcn.0043d750
test eax, eax
mov eax, dword [ebp - 0x1c]
sete byte [ebp - 0xd]
push dword [eax - 8]
push eax
call fcn.004d9e5f
mov edx, eax
add esp, 8
test edx, edx
js 0x49b447
mov ecx, dword [ebp - 0x1c]
cmp edx, dword [ecx - 8]
jg 0x49b447
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 0x49b39c
mov edi, dword [ebp - 0x20]
test ebx, ebx
jne 0x49b32a
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push dword [edi + 0x40]
lea ecx, [ebp - 0x48]
push dword [edi + 0x38]
call fcn.0043aa90
test eax, eax
jne 0x49b3ff
lea eax, [ebp - 0x30]
mov ecx, 0x53d728
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x14]
call fcn.00497ef0
test eax, eax
je 0x49b39c
mov eax, dword [eax + 4]
push dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
call fcn.004dad74
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.0049aa10
mov ecx, dword [ebp - 0x20]
push eax
call fcn.0049c580
lea eax, [ebp - 0x30]
push eax
lea ecx, [edi + 4]
call fcn.0049aa10
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 0x49b3bd
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 0x49b3de
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.0043ae40
mov edx, eax
test edx, edx
je 0x49af9f
mov ebx, dword [ebp - 0x48]
jmp 0x49b1a5
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 0x49b422
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 0x49b442
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x48]
jmp 0x49b475
push 0x80070057
call fcn.0043a9b0
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 0x49b472
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x20]
test ebx, ebx
je 0x49b4b2
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 0x49b4ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, 1
jmp 0x49b4dc
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 0x49b4da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x49b4da
or ebx, 0xffffffff
xor edi, edi
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x49b4ea
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 0x49b508
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