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

Disassembly:
push 0xffffffffffffffff
push 0x50fdc0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x30]
xor ebx, ebx
mov dword [0x5487cc], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebx
mov edx, dword [0x546fac]
mov eax, dword [edx + 0xc]
mov ecx, 0x546fac
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x434815
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea ecx, [esp + 0x30]
push ecx
push 0x51e68c
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x3c], ebx
call esi
push 0x51e6c4
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x20]
call fcn.00421a80
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp - 0xc]
cmp eax, ebx
jne 0x434889
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x43485d
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.00421a80
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp - 0xc]
cmp eax, ebx
jne 0x4348ac
mov dword [0x5487d0], ebx
push 0x51e7cc
xor ebx, ebx
mov eax, 0x5487d8
call fcn.004076e0
jmp 0x4349b5
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, 0x5487d8
test eax, eax
jne 0x4348d1
mov edx, 0x51e7d0
mov dword [0x5487d0], ebx
call fcn.00407780
jmp 0x4349b5
lea eax, [esp + 0x18]
mov dword [0x5487d0], 1
call fcn.00405050
mov eax, 0x5487d8
call fcn.00415730
lea edx, [esp + 0x14]
push edx
push 0x51e7d4
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, 0x5487dc
call fcn.00421a80
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x43492b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
push ecx
push 0x51e81c
push SysReAllocString
mov dword [esp + 0x20], ebx
call esi
cmp eax, ebx
jne 0x434958
push str.ReleaseChannel
lea edx, [esp + 0x18]
push edx
mov eax, 0x5487e0
call fcn.00421a80
mov eax, dword [0x5487d8]
add eax, 0xfffffff0
call fcn.00404fe0
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 3
call fcn.00415820
mov esi, dword [esp + 0x1c]
mov edx, esi
call fcn.00431ff0
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 0x4349a6
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 0x4349b5
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 0x4349d5
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 0x4349e4
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