Function at 0x413de0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x113c
call fcn.0047a9b0
mov eax, dword [0x49f008]
xor eax, esp
mov dword [esp + 0x1138], eax
push ebx
push esi
push edi
mov ecx, 0x800
lea eax, [esp + 0x140]
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x413e10
cmp byte [0x4a1e78], cl
jne 0x413e30
mov eax, str._ProgramFiles__
cmp byte [0x4a1e79], cl
je 0x413e35
mov eax, str._ProgramFiles_x86___
push eax
lea eax, [esp + 0x7c]
push 0x64
push eax
call fcn.0046b918
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x7c]
add esp, 0xc
mov eax, 0x4a1dc8
cmp dword [0x4a1ddc], 8
cmovae eax, dword [0x4a1dc8]
push ecx
push 0xf023f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x413ecd
lea eax, [esp + 0x74]
mov dword [esp + 0x74], 0x800
push eax
lea eax, [esp + 0x144]
push eax
push 0
push 0
push str.Inno_Setup:_App_Path
push dword [esp + 0x84]
call edi
test eax, eax
jne 0x413ebd
lea ecx, [esp + 0x140]
call fcn.00413330
test al, al
jne 0x413ec7
xor eax, eax
mov word [esp + 0x140], ax
push dword [esp + 0x70]
call esi
lea ecx, [esp + 0x140]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413ed7
sub ecx, edx
sar ecx, 1
jne 0x413f5e
cmp dword [0x4a1dc4], 8
lea ecx, [esp + 0x70]
push ecx
push 0xf023f
mov eax, 0x4a1db0
cmovae eax, dword [0x4a1db0]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x413f5e
lea eax, [esp + 0x74]
mov dword [esp + 0x74], 0x800
push eax
lea eax, [esp + 0x144]
push eax
push 0
push 0
push str.Inno_Setup:_App_Path
push dword [esp + 0x84]
call edi
test eax, eax
jne 0x413f4e
lea ecx, [esp + 0x140]
call fcn.00413330
test al, al
jne 0x413f58
xor eax, eax
mov word [esp + 0x140], ax
push dword [esp + 0x70]
call esi
lea ecx, [esp + 0x140]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413f70
sub ecx, edx
sar ecx, 1
jne 0x413ff7
cmp dword [0x4a1dac], 8
lea ecx, [esp + 0x70]
push ecx
push 0xf023f
mov eax, 0x4a1d98
cmovae eax, dword [0x4a1d98]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x413ff7
lea eax, [esp + 0x74]
mov dword [esp + 0x74], 0x800
push eax
lea eax, [esp + 0x144]
push eax
push 0
push 0
push str.Inno_Setup:_App_Path
push dword [esp + 0x84]
call edi
test eax, eax
jne 0x413fe7
lea ecx, [esp + 0x140]
call fcn.00413330
test al, al
jne 0x413ff1
xor eax, eax
mov word [esp + 0x140], ax
push dword [esp + 0x70]
call esi
lea ecx, [esp + 0x140]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414001
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
sub ecx, edx
sar ecx, 1
jne 0x4140d2
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x944]
push 0x400
push eax
call fcn.0046b918
add esp, 0xc
lea eax, [esp + 0x10]
mov ecx, 0x4a1d28
push 0
push eax
call fcn.0040bc00
cmp dword [eax + 0x14], 8
jb 0x41404f
mov eax, dword [eax]
push eax
lea eax, [esp + 0x944]
push 0x400
push eax
call fcn.0046b97c
mov edx, dword [esp + 0x30]
add esp, 0xc
cmp edx, 8
jb 0x4140a1
mov ecx, dword [esp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414097
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414317
push edx
push ecx
call fcn.004632e1
add esp, 8
push 0x400
lea eax, [esp + 0x144]
push eax
lea eax, [esp + 0x948]
push eax
call esi
lea ecx, [esp + 0x140]
call fcn.00413330
test al, al
jne 0x4140d2
xor eax, eax
mov word [esp + 0x140], ax
lea ecx, [esp + 0x140]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4140e0
sub ecx, edx
sar ecx, 1
jne 0x4141ab
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x944]
push 0x400
push eax
call fcn.0046b918
add esp, 0xc
lea eax, [esp + 0x28]
mov ecx, 0x4a1d18
push 0
push eax
call fcn.0040bc00
cmp dword [eax + 0x14], 8
jb 0x414128
mov eax, dword [eax]
push eax
lea eax, [esp + 0x944]
push 0x400
push eax
call fcn.0046b97c
mov edx, dword [esp + 0x48]
add esp, 0xc
cmp edx, 8
jb 0x41417a
mov ecx, dword [esp + 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414170
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41431c
push edx
push ecx
call fcn.004632e1
add esp, 8
push 0x400
lea eax, [esp + 0x144]
push eax
lea eax, [esp + 0x948]
push eax
call esi
lea ecx, [esp + 0x140]
call fcn.00413330
test al, al
jne 0x4141ab
xor eax, eax
mov word [esp + 0x140], ax
lea ecx, [esp + 0x140]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4141b5
sub ecx, edx
sar ecx, 1
jne 0x4142d0
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x944]
push 0x400
push eax
call fcn.0046b918
add esp, 0xc
cmp dword [0x4a2780], 3
push 0
jne 0x414254
lea eax, [esp + 0x44]
mov ecx, 0x4a1d28
push eax
call fcn.0040bc00
cmp dword [eax + 0x14], 8
jb 0x414206
mov eax, dword [eax]
push eax
lea eax, [esp + 0x944]
push 0x400
push eax
call fcn.0046b97c
mov edx, dword [esp + 0x60]
add esp, 0xc
cmp edx, 8
jb 0x4142b9
mov ecx, dword [esp + 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4142af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414321
jmp 0x4142af
lea eax, [esp + 0x5c]
mov ecx, 0x4a1d08
push eax
call fcn.0040bc00
cmp dword [eax + 0x14], 8
jb 0x41426b
mov eax, dword [eax]
push eax
lea eax, [esp + 0x944]
push 0x400
push eax
call fcn.0046b97c
mov edx, dword [esp + 0x78]
add esp, 0xc
cmp edx, 8
jb 0x4142b9
mov ecx, dword [esp + 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4142af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414326
push edx
push ecx
call fcn.004632e1
add esp, 8
push 0x400
lea eax, [esp + 0x144]
push eax
lea eax, [esp + 0x948]
push eax
call esi
lea ecx, [esp + 0x140]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4142e0
sub ecx, edx
lea eax, [esp + 0x140]
sar ecx, 1
push ecx
push eax
mov ecx, 0x4a2030
call fcn.00402380
mov ecx, dword [esp + 0x1144]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004632a0
mov esp, ebp
pop ebp
ret
call fcn.0046851b
call fcn.0046851b
call fcn.0046851b
call fcn.0046851b
int3