Function at 0x41daa0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x440e61
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x44f3d8]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44f3d8]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
push 0x104
push 0x452058
xor ebx, ebx
push ebx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x452058
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, 0x452058
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41db03
sub eax, edx
sar eax, 1
push eax
lea esi, [edi + 0xad4]
push 0x452058
call fcn.00404120
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
mov eax, dword [edi + 0x10]
cmp eax, ebx
jne 0x41de9f
mov eax, dword [edi + 0xabc]
neg eax
sbb eax, eax
and eax, 0xe
cmp eax, ebx
jne 0x41de9f
lea eax, [edi + 0x814]
push eax
call fcn.0041e9d0
cmp dword [esi + 0x18], 8
jb 0x41db63
mov eax, dword [esi + 4]
jmp 0x41db66
lea eax, [esi + 4]
push eax
push str.__Source:__s
push 0x450638
xor eax, eax
call fcn.0041ee40
add esp, 0xc
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
cmp ebp, ebx
je 0x41dc15
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebp
cmp dword [esp + 0x14], ebx
setne al
test al, al
je 0x41dc15
call fcn.00422db0
cmp eax, 0x5010100
jb 0x41dc15
cmp eax, 0xffffffff
ja 0x41dc15
push 0x104
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
cmp eax, ebx
jne 0x41dbe6
push 0x104
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.msls31.dll
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ebp, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8000
call ebp
lea edx, [esp + 0x44]
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push ebx
call ebp
xor ebx, ebx
cmp dword [esi + 0x18], 8
jb 0x41dc20
mov esi, dword [esi + 4]
jmp 0x41dc23
add esi, 4
push esi
lea eax, [esp + 0x250]
push 0x104
push eax
call fcn.004299fa
add esp, 0xc
mov edx, str.uninstall
call fcn.00401e60
test eax, eax
jne 0x41dc5a
push str.Lang
lea ecx, [esp + 0x250]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea esi, [esp + 0x24c]
call fcn.0041fb30
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
cmp dword [edi + 0xc], ebx
je 0x41dd89
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea esi, [esp + 0x28]
mov dword [esp + 0x460], ebx
call fcn.0041cef0
mov ebx, 1
mov ebp, 8
mov byte [esp + 0x460], bl
cmp dword [eax + 0x18], ebp
jb 0x41dcaf
mov eax, dword [eax + 4]
jmp 0x41dcb2
add eax, 4
push eax
push str.Error_in_command_line:__s
push 0x450638
mov eax, 2
call fcn.0041ee40
add esp, 0xc
mov byte [esp + 0x460], 0
cmp dword [esp + 0x40], ebp
jb 0x41dce5
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004286d5
add esp, 4
lea esi, [esp + 0x28]
call fcn.0041cef0
push eax
lea esi, [esp + 0x1c]
mov byte [esp + 0x464], 2
call fcn.00414a70
mov byte [esp + 0x460], 0
cmp dword [esp + 0x40], ebp
jb 0x41dd1b
mov edx, dword [esp + 0x2c]
push edx
call fcn.004286d5
add esp, 4
push 0x7f02
xor eax, eax
push 7
push 0x84
push 0x7d9
lea edx, [esp + 0x28]
lea ecx, [eax + 0x3b]
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], eax
mov word [esp + 0x3c], ax
call fcn.00423c90
add esp, 0x10
cmp eax, 7
jne 0x41dd73
mov dword [0x45065c], 0xa001
call fcn.0041ed90
lea esi, [esp + 0x18]
mov dword [edi + 0x10], ebx
call fcn.004149c0
jmp 0x41de9f
lea esi, [esp + 0x18]
mov dword [esp + 0x460], 0xffffffff
call fcn.004149c0
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov ecx, edi
call edx
mov edx, 0x447630
call fcn.00401e60
test eax, eax
je 0x41ddc1
mov eax, dword [0x451b98]
push ebx
push 0x425350
push ebx
push 0x9b
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
jmp 0x41de34
mov edx, 0x447c20
call fcn.00401e60
test eax, eax
je 0x41ddda
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
mov ecx, edi
call eax
jmp 0x41de34
mov edx, str.noinstall
call fcn.00401e60
test eax, eax
je 0x41ddf1
mov esi, edi
call fcn.0041e0a0
jmp 0x41de34
mov edx, 0x447610
call fcn.00401e60
test eax, eax
jne 0x41de34
mov edx, str.uninstall
call fcn.00401e60
test eax, eax
je 0x41de16
mov esi, edi
call fcn.0041dfe0
jmp 0x41de34
mov edx, 0x444820
call fcn.00401e60
test eax, eax
je 0x41de2d
call fcn.0041e1b0
test al, al
je 0x41de34
mov esi, edi
call fcn.0041ded0
mov edx, 0x44762c
call fcn.00401e60
test eax, eax
je 0x41de5b
call fcn.004021a0
test eax, eax
je 0x41de54
mov esi, edi
call fcn.0041e820
jmp 0x41de6f
push str.Not_in_silent_mode__ignoring__b_switch
jmp 0x41de60
push str.IIF_will_NOT_initiate_reboot
push 0x450638
xor eax, eax
call fcn.0041ee40
add esp, 8
call fcn.0041ed90
cmp dword [0x451b90], ebx
je 0x41de99
mov ecx, dword [0x451b98]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, 0x451b7c
mov dword [0x451b98], ebx
call fcn.004148c0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.00426d9a
add esp, 0x450
ret