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

Disassembly:
push 0xffffffffffffffff
push 0x50f560
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x30]
xor ebx, ebx
mov dword [0x5467cc], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
mov edx, dword [0x544fac]
mov eax, dword [edx + 0xc]
mov ecx, 0x544fac
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x4340c5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea ecx, [esp + 0x30]
push ecx
push 0x51d65c
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x3c], ebx
call esi
push 0x51d694
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x20]
call fcn.00421430
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp - 0xc]
cmp eax, ebx
jne 0x434139
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x43410d
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.00421430
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp - 0xc]
cmp eax, ebx
jne 0x43415c
mov dword [0x5467d0], ebx
push 0x51d79c
xor ebx, ebx
mov eax, 0x5467d8
call fcn.00407680
jmp 0x434265
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, 0x5467d8
test eax, eax
jne 0x434181
mov edx, 0x51d7a0
mov dword [0x5467d0], ebx
call fcn.00407720
jmp 0x434265
lea eax, [esp + 0x18]
mov dword [0x5467d0], 1
call fcn.00404f20
mov eax, 0x5467d8
call fcn.004151d0
lea edx, [esp + 0x14]
push edx
push 0x51d7a4
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, 0x5467dc
call fcn.00421430
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4341db
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
push ecx
push 0x51d7ec
push SysReAllocString
mov dword [esp + 0x20], ebx
call esi
cmp eax, ebx
jne 0x434208
push str.ReleaseChannel
lea edx, [esp + 0x18]
push edx
mov eax, 0x5467e0
call fcn.00421430
mov eax, dword [0x5467d8]
add eax, 0xfffffff0
call fcn.00404eb0
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 3
call fcn.004152c0
mov esi, dword [esp + 0x1c]
mov edx, esi
call fcn.00431a00
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 0x434256
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 0x434265
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 0x434285
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 0x434294
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