Function at 0x401640
Capabilities:
Copy file
Create directory
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x324
mov eax, dword [0x4231e0]
xor eax, esp
mov dword [esp + 0x320], eax
push 0x104
lea eax, [esp + 0x220]
push eax
push 0
mov dword [esp + 0x14], 0x104
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4018c3
lea ecx, [esp + 4]
push ecx
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4018c3
push ebp
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x120]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push str.ProgramFilesDir
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x4018bb
lea eax, [esp + 0x11c]
add eax, 0xffffffff
lea ebx, [ebx]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4016e0
mov ecx, dword [str.OpenAL]
mov edx, dword [0x41e3b0]
mov dword [eax], ecx
mov dword [eax + 4], edx
push 0
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x220]
push ecx
call fcn.004013c0
add esp, 4
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401720
push esi
push edi
lea edi, [esp + 0x124]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x401740
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, eax
lea edx, [esp + 0x128]
push edx
lea eax, [esp + 0x230]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0xf003f
push 0
push 0x41e334
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallOpenAL
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4018b9
lea eax, [esp + 0x124]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4017b0
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub eax, edx
push eax
lea eax, [esp + 0x12c]
push eax
push 1
push 0
push str.DisplayIcon
push ecx
call ebx
lea eax, [esp + 0x128]
mov word [esp + 0x24], 0x22
mov ecx, eax
jmp 0x4017f0
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4017f0
lea edi, [esp + 0x24]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x401804
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x24]
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x401823
mov edx, dword [str.___U]
mov cl, byte [0x41e360]
mov dword [eax], edx
mov byte [eax + 4], cl
lea eax, [esp + 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401845
sub eax, edx
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
push 1
push 0
push str.UninstallString
push eax
call ebx
mov al, byte [0x41e34a]
mov dx, word [0x41e348]
mov ecx, dword [0x41e344]
mov byte [esp + 0x2a], al
lea eax, [esp + 0x24]
mov word [esp + 0x28], dx
mov dword [esp + 0x24], ecx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401890
sub eax, edx
mov edx, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
push ecx
push 1
push 0
push str.DisplayName
push edx
call ebx
mov eax, dword [esp + 0x10]
push eax
call ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 8]
push ecx
call ebp
pop ebp
mov ecx, dword [esp + 0x320]
xor ecx, esp
call fcn.004064d4
add esp, 0x324
ret