Function at 0x425300
Capabilities:
Access peb ldr_data
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x49eff0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x30]
xor ebx, ebx
mov dword [0x4c57cc], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
mov edx, dword [0x4c45ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x4c45ac
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x425365
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea ecx, [esp + 0x30]
push ecx
push 0x4a82e8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x3c], ebx
call esi
push 0x4a8320
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x20]
call fcn.00419ff0
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp - 0xc]
cmp eax, ebx
jne 0x4253d9
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x4253ad
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x30]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallCDDDBD74_A033_42D2_8107_D59D96D0FE88_is1
push SysReAllocString
mov dword [esp + 0x3c], ebx
call esi
push str.Inno_Setup:_App_Path
lea ecx, [esp + 0x34]
push ecx
lea eax, [esp + 0x20]
call fcn.00419ff0
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp - 0xc]
cmp eax, ebx
jne 0x4253fc
mov dword [0x4c57d0], ebx
push 0x4a8424
xor ebx, ebx
mov eax, 0x4c57d8
call fcn.004076a0
jmp 0x425505
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, 0x4c57d8
test eax, eax
jne 0x425421
mov edx, 0x4a8428
mov dword [0x4c57d0], ebx
call fcn.00407740
jmp 0x425505
lea eax, [esp + 0x18]
mov dword [0x4c57d0], 1
call fcn.00404fc0
mov eax, 0x4c57d8
call fcn.00410c00
lea edx, [esp + 0x14]
push edx
push 0x4a842c
mov byte [esp + 0x30], 2
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], ebx
call esi
push str.Version
lea eax, [esp + 0x18]
push eax
mov eax, 0x4c57dc
call fcn.00419ff0
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x42547b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
push ecx
push 0x4a8474
push SysReAllocString
mov dword [esp + 0x20], ebx
call esi
cmp eax, ebx
jne 0x4254a8
push str.ReleaseChannel
lea edx, [esp + 0x18]
push edx
mov eax, 0x4c57e0
call fcn.00419ff0
mov eax, dword [0x4c57d8]
add eax, 0xfffffff0
call fcn.00404f50
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 3
call fcn.0046a870
mov esi, dword [esp + 0x1c]
mov edx, esi
call fcn.00422f50
lea eax, [esi - 0x10]
mov byte [esp + 0x28], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4254f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x425505
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
mov byte [esp + 0x28], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425525
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x425534
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4