Function at 0x43ea00
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [0x54c384]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x650], eax
cmp dword [ebx + 0x10], 0
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x654], eax
mov byte [ebp - 0x631], 0
mov dword [ebp - 0x630], 0
je 0x43ed66
cmp dword [esi + 0x10], 0
je 0x43ed66
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004c05c0
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x208
push 0
push eax
call fcn.004c05c0
add esp, 0xc
mov dword [ebp - 0x624], 1
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x628], 0x206
mov dword [ebp - 0x62c], 0x206
jb 0x43eaa8
mov ebx, dword [ebx]
lea eax, [ebp - 0x630]
push eax
push 1
push 0
push ebx
push dword [ebp - 0x650]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43ed55
mov eax, dword [ebp - 0x654]
cmp dword [eax + 0x14], 8
jb 0x43ead6
mov eax, dword [eax]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x628]
push ecx
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x624]
push ecx
push 0
push eax
push dword [ebp - 0x630]
call ebx
test eax, eax
jne 0x43ed55
cmp dword [edi + 0x10], eax
je 0x43eb39
cmp dword [edi + 0x14], 8
jb 0x43eb11
mov edi, dword [edi]
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x624]
push eax
push 0
push edi
push dword [ebp - 0x630]
call ebx
test eax, eax
jne 0x43ed55
xor eax, eax
mov dword [ebp - 0x63c], 0
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x638], 7
mov word [ebp - 0x64c], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43eb60
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x64c]
call fcn.00403e30
cmp dword [ebp - 0x63c], 0
mov edx, dword [ebp - 0x638]
sete bl
cmp edx, 8
jb 0x43ebcc
mov ecx, dword [ebp - 0x64c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43ebc2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43eda9
push edx
push ecx
call fcn.004bdd39
add esp, 8
test bl, bl
je 0x43ebe4
push 0x2a8
push str.base::RivalMonitor::CheckInstalledReg2
push str.__s__d___szInstallDir_is_empty.
jmp 0x43ed75
push 0x208
lea eax, [ebp - 0x620]
push 0
push eax
call fcn.004c05c0
add esp, 0xc
mov dword [ebp - 0x63c], 0
xor eax, eax
mov dword [ebp - 0x638], 7
lea ecx, [ebp - 0x418]
mov word [ebp - 0x64c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43ec20
sub ecx, edx
lea eax, [ebp - 0x418]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x64c]
call fcn.00403e30
cmp dword [ebp - 0x63c], 0
mov edx, dword [ebp - 0x638]
setne bl
cmp edx, 8
jb 0x43ec8c
mov ecx, dword [ebp - 0x64c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43ec82
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43eda9
push edx
push ecx
call fcn.004bdd39
add esp, 8
mov eax, dword [esi + 0x14]
test bl, bl
je 0x43ecda
cmp eax, 8
jb 0x43ec9a
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x50aca0
lea eax, [ebp - 0x620]
push 0x104
push eax
call fcn.00419550
add esp, 0x18
test eax, eax
jns 0x43ed0b
push 0x2b0
push str.base::RivalMonitor::CheckInstalledReg2
push str.__s__d____snwprintf_s_error.
jmp 0x43ed75
cmp eax, 8
jb 0x43ece1
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x43ed0b
push 0x2b5
push str.base::RivalMonitor::CheckInstalledReg2
push str.__s__d___PathCombine_error.
jmp 0x43ed75
lea eax, [ebp - 0x620]
push eax
push 0x2ba
push str.base::RivalMonitor::CheckInstalledReg2
push str.__s__d___file_path_is:__s
call fcn.0041f720
add esp, 0x10
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43ed7d
push 0x2be
push str.base::RivalMonitor::CheckInstalledReg2
push str.__s__d___file_is_exist.
call fcn.0041f720
add esp, 0xc
mov bl, 1
jmp 0x43ed83
push 0x2a3
push str.base::RivalMonitor::CheckInstalledReg2
push str.__s__d___RegOpenKey_or_RegQueryValueEx_failed.
jmp 0x43ed75
push 0x28e
push str.base::RivalMonitor::CheckInstalledReg2
push str.__s__d___root__subkey__value_filename_is_NULL.
call fcn.0041f720
add esp, 0xc
mov bl, byte [ebp - 0x631]
mov ecx, dword [ebp - 0x630]
test ecx, ecx
je 0x43ed94
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bdaf8
mov esp, ebp
pop ebp
ret 0x18
call fcn.004c8da3
int3