Function at 0x46cca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x4d10ee
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x507074]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x214]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x30], 0
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x46d148
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
push str.SoftwareCaphyonAdvanced_UpdaterSettings
call fcn.00403470
test al, al
jne 0x46cd2d
push 0x2a
push str.SoftwareCaphyonAdvanced_UpdaterSettings
lea ecx, [ebp - 0x10]
call fcn.004035e0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], eax
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x46d148
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], SysStringLen
call fcn.00409440
lea eax, [ebp - 0x20]
push eax
push 0x20019
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov byte [ebp - 4], 6
or edi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46cdb1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x46d148
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 9
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x46d148
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x10]
push str.ConfigFilePath
call fcn.00403470
test al, al
jne 0x46ce0d
push 0xe
push str.ConfigFilePath
lea ecx, [ebp - 0x10]
call fcn.004035e0
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x46ceb1
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push ecx
push 0
push 0
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46ceb1
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x46ceb1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00496973
mov ebx, eax
add esp, 4
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0
push 0
push esi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46ce9a
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46ce81
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x14]
call fcn.004035e0
mov byte [ebp - 4], 0xb
push ebx
call fcn.0049696e
mov ebx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 9
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46cecc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x14]
call fcn.0040e940
test al, al
je 0x46cf5c
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004025a0
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 6
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46cf15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0x10
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x46cf2a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x46d121
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x46d121
push 0x104
lea eax, [ebp]
push eax
push dword [0x508e2c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x46d148
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0x12
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403470
test al, al
jne 0x46cfc1
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46cfa5
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004035e0
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.00409440
mov byte [ebp - 4], 9
mov eax, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46cfef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x2e
push dword [ebp - 0x14]
call fcn.00497ba3
add esp, 8
test eax, eax
je 0x46d09b
sub eax, dword [ebp - 0x14]
sar eax, 1
cmp eax, 0xffffffff
je 0x46d09b
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040a8d0
mov byte [ebp - 4], 0x19
mov edx, eax
push str..ini
mov ecx, ebx
call fcn.0042aeb0
add esp, 4
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 9
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46d059
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46d077
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0x1c
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x46d08c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x28], eax
jmp 0x46cf34
push 4
push str..ini
lea ecx, [ebp - 0x14]
call fcn.00402420
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004025a0
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 6
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46d0e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0x17
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x46d0f8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x46d121
mov ecx, dword [eax]
push eax
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 + 0x208]
xor ecx, ebp
call fcn.004965ce
lea esp, [ebp + 0x20c]
pop ebp
ret 4
push 0x80004005
call fcn.00402570
int3