Function at 0x404480
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x758
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItemTextA]
lea eax, [ebp - 0x2b4]
push edi
push 0x104
push eax
mov ebx, ecx
push 0x44f
push ebx
mov dword [ebp - 0x72c], ebx
call esi
push 0x104
lea eax, [ebp - 0x724]
push eax
push 0x452
push ebx
call esi
mov esi, dword [sym.imp.USER32.dll_IsDlgButtonChecked]
push 0x453
push ebx
call esi
cmp eax, 1
lea edx, [ebp - 0x734]
mov ecx, 0x4196dc
mov edi, 0x41964d
cmovne ecx, edi
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4044f2
push 0x454
push ebx
call esi
cmp eax, 1
lea edx, [ebp - 0x73c]
mov ecx, 0x4196dc
cmovne ecx, edi
sub edx, ecx
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x404520
push 0x455
push ebx
call esi
cmp eax, 1
lea edx, [ebp - 0x740]
mov ecx, 0x4196dc
cmovne ecx, edi
sub edx, ecx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x404550
push 0x456
push ebx
call esi
cmp eax, 1
mov edx, 0x4196e0
mov ecx, 0x4196dc
cmovne ecx, edx
lea edx, [ebp - 0x744]
sub edx, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x404580
push 0x457
push ebx
call esi
cmp eax, 1
lea edx, [ebp - 0x738]
mov ecx, 0x4196dc
cmovne ecx, edi
sub edx, ecx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4045b0
xor ecx, ecx
nop
mov al, byte [ecx + str.groupwise.msi]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x45], al
test al, al
jne 0x4045c0
xor ecx, ecx
nop dword [eax]
nop word [eax + eax]
mov al, byte [ecx + 0x41c918]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x41d], al
test al, al
jne 0x4045e0
lea edx, [ebp - 0x44]
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x404600
lea edi, [ebp - 0x41c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404610
mov ecx, edx
lea eax, [ebp - 0x1b0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x1b0]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404641
sub ecx, edx
mov al, byte [ebp + ecx - 0x1b1]
lea edi, [ebp + ecx - 0x1b1]
cmp al, 0x5c
je 0x404674
cmp al, 0x2f
je 0x404674
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x404661
mov ax, word [0x419610]
mov word [edi], ax
lea edx, [ebp - 0x44]
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x404680
lea edi, [ebp - 0x1b0]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404690
mov ecx, edx
lea eax, [ebp - 0x1b0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, edx
push eax
and ecx, 3
lea eax, [ebp - 0x41c]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
xor ecx, ecx
nop
mov al, byte [ebp + ecx - 0x41c]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x521], al
test al, al
jne 0x4046c0
lea ecx, [ebp - 0x520]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4046e0
lea eax, [ebp - 0x728]
sub ecx, edx
push eax
push 1
lea eax, [ebp - 0x1b0]
push eax
mov byte [ebp + ecx - 0x521], 0x74
call dword [sym.imp.msi.dll_MsiOpenProductA]
test eax, eax
je 0x40474e
push eax
push 0
lea eax, [ebp - 0x620]
push 0x41d5d0
push eax
call fcn.00401010
add esp, 0x10
lea eax, [ebp - 0x620]
push 0
push 0x41c388
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404db8
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x2b4]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404757
sub ecx, edx
mov al, byte [ebp + ecx - 0x2b5]
lea edi, [ebp + ecx - 0x2b5]
cmp al, 0x5c
je 0x40478a
cmp al, 0x2f
je 0x40478a
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x404777
mov ax, word [0x419610]
mov word [edi], ax
lea eax, [ebp - 0x2b4]
mov edx, str.SELECT__FROM_Property_Where_Property__GROUPWISEDIR
push eax
push ecx
mov ecx, dword [ebp - 0x728]
push str.GROUPWISEDIR
call fcn.00401e40
add esp, 0xc
test eax, eax
jne 0x404738
lea eax, [ebp - 0x2b4]
mov edx, str.SELECT__FROM_Property_Where_Property__INSTALLDIR
push eax
push ecx
mov ecx, dword [ebp - 0x728]
push str.INSTALLDIR
call fcn.00401e40
add esp, 0xc
test eax, eax
jne 0x404738
lea eax, [ebp - 0x2b4]
mov edx, str.SELECT__FROM_Property_Where_Property__TARGETDIR
push eax
push ecx
mov ecx, dword [ebp - 0x728]
push str.TARGETDIR
call fcn.00401e40
add esp, 0xc
test eax, eax
jne 0x404738
lea eax, [ebp - 0x724]
mov edx, str.SELECT__FROM_Property_Where_Property__PROGRAMFOLDER
push eax
push ecx
mov ecx, dword [ebp - 0x728]
push str.PROGRAMFOLDER
call fcn.00401e40
add esp, 0xc
test eax, eax
jne 0x404738
lea eax, [ebp - 0x734]
mov edx, str.SELECT__FROM_Property_Where_Property__GROUPWISEDESKTOP
push eax
push ecx
mov ecx, dword [ebp - 0x728]
push str.GROUPWISEDESKTOP
call fcn.00401e40
add esp, 0xc
test eax, eax
jne 0x404738
lea eax, [ebp - 0x738]
mov edx, str.SELECT__FROM_Property_Where_Property__GROUPWISESTARTMENUICONS
push eax
push ecx
mov ecx, dword [ebp - 0x728]
push str.GROUPWISESTARTMENUICONS
call fcn.00401e40
add esp, 0xc
test eax, eax
jne 0x404738
lea eax, [ebp - 0x73c]
mov edx, str.SELECT__FROM_Property_Where_Property__GROUPWISEQUICKLAUNCH
push eax
push ecx
mov ecx, dword [ebp - 0x728]
push str.GROUPWISEQUICKLAUNCH
call fcn.00401e40
add esp, 0xc
test eax, eax
jne 0x404738
lea eax, [ebp - 0x740]
mov edx, str.SELECT__FROM_Property_Where_Property__NOTIFYSTARTUP
push eax
push ecx
mov ecx, dword [ebp - 0x728]
push str.NOTIFYSTARTUP
call fcn.00401e40
add esp, 0xc
test eax, eax
jne 0x404738
lea eax, [ebp - 0x744]
mov edx, str.SELECT__FROM_Property_Where_Property__MAILTO
push eax
push ecx
mov ecx, dword [ebp - 0x728]
push str.MAILTO
call fcn.00401e40
add esp, 0xc
test eax, eax
jne 0x404738
movaps xmm0, xmmword [0x419a50]
push 0x4b3
mov byte [ebp - 0xa], 0x20
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0xc], 0x2020
movq qword [ebp - 0x14], xmm0
mov byte [ebp - 0xa], al
call ebx
push 0
push 0
mov edi, eax
push 0x18b
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
xor esi, esi
mov dword [ebp - 0x730], eax
test eax, eax
je 0x404981
nop word [eax + eax]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x78]
push eax
push esi
push 0x189
push edi
call ebx
push 0
push esi
push 0x199
push edi
call ebx
test eax, eax
lea ecx, [ebp - 0x78]
setne bl
add bl, 0x30
call fcn.004033d0
inc esi
mov byte [ebp + eax - 0x24], bl
cmp esi, dword [ebp - 0x730]
jb 0x404940
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
lea eax, [ebp - 0x24]
mov edx, str.SELECT__FROM_Property_Where_Property__LANGUAGES
push eax
push ecx
mov ecx, dword [ebp - 0x728]
push str.LANGUAGES
call fcn.00401e40
add esp, 0xc
test eax, eax
jne 0x404738
push 0x517
push dword [ebp - 0x72c]
call ebx
push 0
push 0
mov edi, eax
push 0x18b
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x4049ec
nop dword [eax]
push 0
push esi
push 0x199
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x404a90
inc esi
cmp esi, ebx
jb 0x4049d0
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0x57e
push dword [ebp - 0x72c]
call dword [sym.imp.USER32.dll_GetDlgItem]
xor esi, esi
mov edi, eax
mov ecx, 0x41cc20
mov dword [ebp - 0x748], edi
mov dword [ebp - 0x72c], esi
mov dword [ebp - 0x730], ecx
mov dword [ebp - 0x750], esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404a27
sub ecx, edx
je 0x404b51
lea eax, [ebp - 0xac]
push eax
push esi
push 0x189
push edi
call ebx
xor ebx, ebx
mov esi, 0x41cc20
xor edi, edi
nop
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404a55
sub ecx, edx
je 0x404b0f
mov eax, esi
lea ecx, [ebp - 0xac]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x404aef
test dl, dl
je 0x404a8c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x404aef
add ecx, 2
add eax, 2
test dl, dl
jne 0x404a70
xor eax, eax
jmp 0x404af4
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x78]
push eax
push esi
push 0x189
push edi
call ebx
lea edx, [ebp - 0x754]
lea ecx, [ebp - 0x78]
call fcn.00402cb0
lea eax, [ebp - 0x754]
mov edx, str.SELECT__FROM_Property_Where_Property__DEFAULTLANGUAGE
push eax
push ecx
mov ecx, dword [ebp - 0x728]
push str.DEFAULTLANGUAGE
call fcn.00401e40
add esp, 0xc
test eax, eax
je 0x4049f2
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404db8
mov esp, ebp
pop ebp
ret
sbb eax, eax
or eax, 1
test eax, eax
je 0x404b87
add edi, 0x64
inc ebx
add esi, 0x64
cmp edi, 0x7d0
jb 0x404a50
mov edi, dword [ebp - 0x748]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x750]
mov esi, dword [ebp - 0x72c]
add eax, 0x64
mov ecx, dword [ebp - 0x730]
inc esi
add ecx, 0x64
mov dword [ebp - 0x72c], esi
mov dword [ebp - 0x750], eax
mov dword [ebp - 0x730], ecx
cmp eax, 0x7d0
jb 0x404a24
push dword [ebp - 0x728]
call dword [sym.imp.msi.dll_MsiDatabaseGenerateTransformW]
test eax, eax
je 0x404bf4
mov edx, eax
mov ecx, 5
call fcn.00404430
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404db8
mov esp, ebp
pop ebp
ret
imul eax, ebx, 0x64
lea esi, [eax + 0x41cc52]
push esi
lea eax, [ebp - 0x318]
push str.SELECT__FROM_Property_Where_Property___s
push eax
call fcn.00401010
mov edi, dword [ebp - 0x748]
add esp, 0xc
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push dword [ebp - 0x72c]
push 0x199
push edi
call ebx
test eax, eax
lea edx, [ebp - 0x318]
mov eax, 0x4196e0
mov ecx, 0x4196dc
cmove ecx, eax
push ecx
push ecx
mov ecx, dword [ebp - 0x728]
push esi
call fcn.00401e40
add esp, 0xc
test eax, eax
jne 0x404738
jmp 0x404b1b
lea eax, [ebp - 0x74c]
push eax
push 0
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.msi.dll_MsiOpenProductA]
test eax, eax
je 0x404c2d
mov edx, eax
xor ecx, ecx
call fcn.00404430
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404db8
mov esp, ebp
pop ebp
ret
push 0
push 0
lea eax, [ebp - 0x520]
push eax
push dword [ebp - 0x74c]
push dword [ebp - 0x728]
call dword [sym.imp.msi.dll_MsiDatabaseImportA]
test eax, eax
je 0x404c88
cmp eax, 0x65f
jne 0x404c66
push 0
push 0x41c388
push 0x41c3c0
jmp 0x404730
mov edx, eax
mov ecx, 6
call fcn.00404430
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404db8
mov esp, ebp
pop ebp
ret
push 0
push 0
lea eax, [ebp - 0x520]
push eax
push dword [ebp - 0x74c]
push dword [ebp - 0x728]
call dword [sym.imp.msi.dll_MsiConfigureProductExA]
test eax, eax
jne 0x404c66
push dword [ebp - 0x728]
mov esi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
call esi
push dword [ebp - 0x74c]
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404db8
mov esp, ebp
pop ebp
ret