Function at 0x478ce0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x511fee
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x569080]
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 eax, dword [ebp + 0x214]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], 0
call fcn.004047f0
mov edi, eax
test edi, edi
je 0x479237
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
mov eax, str.SoftwareCaphyonAdvanced_UpdaterSettings
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x478d73
movzx eax, ax
push eax
call fcn.004043d0
jmp 0x478d7f
push 0x2a
push str.SoftwareCaphyonAdvanced_UpdaterSettings
call fcn.00403870
mov dword [ebp - 4], 2
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], eax
call fcn.004047f0
mov edi, eax
test edi, edi
je 0x479237
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
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.00409df0
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 ebx, 0xffffffff
mov ecx, dword [ebp - 0x10]
mov eax, ebx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x478e1b
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
call fcn.004047f0
mov edi, eax
test edi, edi
je 0x479237
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 9
call fcn.004047f0
mov edi, eax
test edi, edi
je 0x479237
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0xa
mov eax, str.ConfigFilePath
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x478e89
movzx eax, ax
push eax
call fcn.004043d0
jmp 0x478e95
push 0xe
push str.ConfigFilePath
call fcn.00403870
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x478f30
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 0x478f30
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x478f30
mov ecx, 2
mul ecx
cmovb eax, ebx
push eax
call fcn.004d4097
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x2c]
push eax
push edi
push 0
push 0
push esi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x478f1c
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478f03
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x14]
call fcn.00403870
mov byte [ebp - 4], 0xb
push edi
call fcn.004d4092
mov dword [ebp - 0x18], 0
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [esi - 0x10]
mov eax, ebx
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x478f57
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
lea ecx, [ebp - 0x14]
call fcn.0040f3f0
test al, al
je 0x478ff6
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402800
mov ecx, dword [ebp - 0x28]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 6
mov eax, ebx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x478faf
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov dword [ebp - 4], 0x10
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x478fc4
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 ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x47920f
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
jmp 0x479203
push 0x104
lea eax, [ebp]
push eax
push dword [0x56b0cc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.004047f0
mov edi, eax
test edi, edi
je 0x479237
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0x12
lea eax, [ebp]
test eax, 0xffff0000
jne 0x47904d
movzx eax, ax
lea ecx, [ebp - 0x10]
push eax
call fcn.004043d0
jmp 0x47906f
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479053
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00403870
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.00409df0
mov byte [ebp - 4], 9
mov eax, ebx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4790a9
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
push 0x2e
push dword [ebp - 0x14]
call fcn.004d5420
add esp, 8
test eax, eax
je 0x47916e
sub eax, dword [ebp - 0x14]
sar eax, 1
cmp eax, 0xffffffff
je 0x47916e
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040b420
mov byte [ebp - 4], 0x19
mov edx, eax
mov ecx, dword [ebp - 0x28]
push str..ini
call fcn.0042d270
add esp, 4
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 9
mov eax, ebx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x479120
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov byte [ebp - 4], 6
mov eax, ebx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x47914a
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov dword [ebp - 4], 0x1c
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x47915f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
jmp 0x478fce
push 4
push str..ini
lea ecx, [ebp - 0x14]
call fcn.00402660
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402800
mov ecx, dword [ebp - 0x28]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 6
mov eax, ebx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4791c5
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov dword [ebp - 4], 0x17
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4791da
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], ebx
dec ebx
test ebx, ebx
jg 0x47920f
mov edi, dword [eax]
push eax
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x28]
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.004d3ce9
lea esp, [ebp + 0x20c]
pop ebp
ret 4
push 0x80004005
call fcn.004027d0
int3