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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x48348c
push eax
mov eax, 0x2228
mov dword fs:[0], esp
call fcn.0047c8c0
push ebx
push ebp
mov ebp, dword [esp + 0x2240]
push esi
push edi
mov dword [esp + 0x2c], ecx
mov edx, dword [ebp]
test edx, edx
je 0x407f9e
mov esi, dword [ebp + 4]
test esi, esi
je 0x407f9e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x407f9e
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x80
jg 0x407fa5
xor eax, eax
jmp 0x4083e0
mov ebx, dword [0x489104]
push edx
push ecx
push eax
mov eax, dword [ebp + 8]
push eax
push str.RegAppEntry
push esi
call ebx
mov eax, dword [ebp + 0xc]
mov si, word [eax]
neg si
sbb esi, esi
and esi, eax
mov eax, dword [0x498080]
test esi, esi
mov dword [esp + 0x10], eax
je 0x408023
mov ecx, esi
shr ecx, 0x10
jne 0x407fed
and esi, 0xffff
lea ecx, [esp + 0x10]
push esi
call fcn.004034d0
jmp 0x40801f
push esi
call dword [0x4891e0]
mov edi, eax
test edi, edi
je 0x40801f
push edi
lea ecx, [esp + 0x14]
call fcn.004038a0
test eax, eax
je 0x40801f
mov ecx, dword [esp + 0x10]
lea edx, [edi + edi]
push edx
lea eax, [edi + edi + 2]
push esi
push eax
push ecx
call fcn.00402de0
add esp, 0x10
mov eax, dword [esp + 0x10]
mov edx, dword [eax - 8]
mov dword [esp + 0x2240], 0
test edx, edx
jne 0x408065
mov ecx, dword [0x498084]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4083db
add eax, 0xfffffff4
push eax
call dword [0x4891e4]
test eax, eax
jg 0x4083db
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
jmp 0x4083d3
mov esi, dword [esp + 0x224c]
mov ecx, dword [esi + 0x34]
lea edi, [esi + 0x34]
cmp ecx, eax
je 0x4080b0
cmp dword [ecx - 0xc], 0
jge 0x408087
add ecx, 0xfffffff4
cmp ecx, dword [0x498084]
jne 0x40808e
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x408099
push eax
push edx
mov ecx, edi
call fcn.00403900
jmp 0x4080b0
mov ecx, edi
call fcn.00403b90
mov eax, dword [esp + 0x10]
mov dword [edi], eax
add eax, 0xfffffff4
push eax
call dword [0x4891bc]
mov ecx, dword [ebp]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 4]
push eax
push ecx
push str.RegAppPath
push edx
call ebx
mov edi, dword [ebp + 0xc]
cmp word [edi], 0
je 0x4080d8
test edi, edi
jne 0x40810e
mov eax, dword [esp + 0x10]
mov edx, dword [0x498084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x408107
add eax, 0xfffffff4
push eax
call dword [0x4891e4]
test eax, eax
jg 0x408107
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0047ab00
add esp, 4
xor eax, eax
jmp 0x4083e0
push edi
call fcn.00422620
mov cx, word [0x498bcc]
mov dword [esp + 0x24], eax
mov ax, word [0x4a3eac]
push eax
push ecx
push edi
call fcn.00422510
mov edx, dword [0x498080]
mov eax, edi
add esp, 0x10
mov dword [esp + 0x14], edx
shr eax, 0x10
jne 0x408154
mov eax, edi
lea ecx, [esp + 0x14]
and eax, 0xffff
push eax
call fcn.004034d0
jmp 0x408186
push edi
call dword [0x4891e0]
mov ebx, eax
test ebx, ebx
je 0x408186
push ebx
lea ecx, [esp + 0x18]
call fcn.004038a0
test eax, eax
je 0x408186
mov eax, dword [esp + 0x14]
lea ecx, [ebx + ebx]
push ecx
lea edx, [ebx + ebx + 2]
push edi
push edx
push eax
call fcn.00402de0
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x2240], 1
push ecx
mov ecx, dword [esp + 0x30]
call fcn.00408400
mov edx, dword [esp + 0x20]
lea ebx, [esi + 0x2c]
push ebx
push edx
push edi
mov dword [esi + 0x28], eax
call fcn.00422680
lea ecx, [esi + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push ecx
push eax
call fcn.00422680
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x250]
mov ebx, dword [ebx]
add esp, 0x18
lea edx, [esp + 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x30]
push edx
lea ecx, [esp + 0x23c]
lea edx, [esp + 0x28]
push ecx
push edx
push eax
mov eax, dword [esi + 0x28]
push ebx
push eax
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 0x1000
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [esp + 0x24], 1
jne 0x40837f
cmp word [esp + 0x238], 0
je 0x40837f
mov eax, dword [esp + 0x28]
test eax, eax
jbe 0x40837f
lea ecx, [esp + 0x238]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004093b0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push edx
lea ecx, [esp + 0x23c]
push eax
push ecx
mov byte [esp + 0x224c], 2
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea edx, [esp + 0x238]
push edx
call ebx
test eax, eax
jne 0x4082ab
lea ecx, [esp + 0x18]
mov byte [esp + 0x2240], 1
call fcn.00403870
lea ecx, [esp + 0x14]
mov byte [esp + 0x2240], 0
call fcn.00403870
lea ecx, [esp + 0x10]
mov dword [esp + 0x2240], 0xffffffff
call fcn.00403870
jmp 0x4083db
lea eax, [esp + 0x18]
lea ecx, [esi + 0x24]
push eax
mov dword [esi + 0x78], 1
call fcn.004050e0
push str.RegVersionFile
mov ecx, ebp
call fcn.00407200
push eax
lea ecx, [esp + 0x20]
call fcn.004093b0
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x2240], 3
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4082f6
lea edx, [esp + 0x10]
lea ecx, [esp + 0x1c]
push edx
call fcn.004050e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
lea edx, [esp + 0x23c]
push ecx
push edx
call edi
lea eax, [esp + 0x238]
push eax
call ebx
test eax, eax
jne 0x40832c
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push ecx
lea eax, [esp + 0x23c]
push edx
push eax
call edi
lea ecx, [esp + 0x30]
push 0x104
lea edx, [esp + 0x23c]
push ecx
push edx
call fcn.004084b0
lea eax, [esp + 0x3c]
add esp, 0xc
add esi, 0x1c
test eax, eax
je 0x40835c
lea ecx, [esp + 0x30]
push ecx
call dword [0x4891e0]
lea edx, [esp + 0x30]
mov ecx, esi
push edx
push eax
call fcn.00403900
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2240], 2
call fcn.00403870
jmp 0x408270
mov eax, dword [esp + 0x14]
mov edx, dword [0x498084]
mov esi, dword [0x4891e4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4083b0
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4083b0
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.0047ab00
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x498084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4083db
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4083db
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0047ab00
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x2238]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2234
ret 8