Function at 0x4043a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call 0x4070b0
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], 3
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], 0xa
je 0x404282
push edi
push edi
push str.Wrong_number_of_args
push edi
jmp 0x4045be
mov esi, dword [ebp + 0xc]
push 0x40c230
push dword [esi + 4]
call 0x4070a6
pop ecx
test eax, eax
pop ecx
je 0x4042a1
push edi
push edi
push str.2._arg_is_not__u
jmp 0x40427c
push 0x40c218
push dword [esi + 8]
call dword [0x4071b0]
pop ecx
cmp eax, edi
pop ecx
mov dword [ebp + 8], eax
jne 0x4042c1
push edi
push edi
push str.could_not_open_logfile
jmp 0x40427c
push 0x28
call dword [0x407188]
mov ebx, eax
pop ecx
cmp ebx, edi
jne 0x4042db
push str.Out_of_memory
push edi
jmp 0x404473
push dword [ebp + 8]
lea eax, [ebp - 0x1018]
push 0x1000
push eax
call dword [0x407104]
add esp, 0xc
test eax, eax
je 0x4043ae
push 0x28
pop edi
lea eax, [ebp - 0x1018]
push eax
call 0x40709a
pop ecx
mov esi, eax
mov eax, dword [0x407110]
cmp dword [eax], 1
jle 0x40432c
movsx eax, byte [ebp + esi - 0x1019]
push 8
push eax
call dword [str.u_fh_n_]
pop ecx
pop ecx
jmp 0x404342
mov ecx, dword [0x407158]
movsx eax, byte [ebp + esi - 0x1019]
mov ecx, dword [ecx]
mov al, byte [ecx + eax*2]
and eax, 8
test eax, eax
je 0x404349
dec esi
jmp 0x40430d
and byte [ebp + esi - 0x1018], 0
lea eax, [ebp - 0x1018]
push eax
call dword [0x407140]
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
jl 0x404389
add dword [ebp - 8], 0xa
add edi, 0x28
push edi
push ebx
call dword [0x407108]
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x40446c
push dword [ebp + 8]
lea eax, [ebp - 0x1018]
push 0x1000
push eax
call dword [0x407104]
add esp, 0xc
test eax, eax
jne 0x4042fe
mov esi, dword [ebp + 0xc]
xor edi, edi
push dword [ebp + 8]
call dword [0x4071b4]
mov dword [esp], 0x404240
push 4
push dword [ebp - 0x10]
push ebx
call dword [0x40710c]
add esp, 0x10
push 0x24
push str.Please_confirm
push str.Are_you_sure_you_want_to_remove_nthis_package_from_your_computer_
push edi
call dword [0x407250]
cmp eax, 6
jne 0x404639
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x10], 0
mov dword [0x40b010], 0x80000002
mov edi, 0x40c444
jle 0x40459c
mov esi, dword [0x407198]
push 2
mov dword [ebp - 8], ebx
pop ebx
mov eax, dword [ebp - 8]
push dword [eax]
push edi
call 0x4070a6
pop ecx
test eax, eax
pop ecx
je 0x404586
mov eax, dword [ebp - 8]
mov edi, dword [eax]
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp + 8]
push eax
push str._d_Root_Key:__s
push edi
call esi
add esp, 0x10
cmp eax, ebx
jne 0x404491
lea eax, [ebp - 0x1018]
push str.HKEY_CURRENT_USER
push eax
call 0x4070a6
pop ecx
test eax, eax
pop ecx
jne 0x40447f
mov dword [0x40b010], 0x80000001
jmp 0x404586
push str.Out_of_memory
push 0
call fcn.00401e6f
pop ecx
pop ecx
jmp 0x40463b
call fcn.0040215f
test eax, eax
je 0x4045ae
jmp 0x404586
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp + 8]
push eax
push str._d_Made_Dir:__s
push edi
call esi
add esp, 0x10
cmp eax, ebx
jne 0x4044dd
push edi
call fcn.00404038
test eax, eax
pop ecx
je 0x4044be
inc dword [ebp - 0x14]
jmp 0x404586
call dword [0x4070cc]
cmp eax, ebx
je 0x404586
cmp eax, 3
je 0x404586
inc dword [ebp - 4]
jmp 0x404586
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp + 8]
push eax
push str._d_File_Copy:__s
push edi
call esi
add esp, 0x10
cmp eax, ebx
je 0x404511
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp + 8]
push eax
push str._d_File_Overwrite:__s
push edi
call esi
add esp, 0x10
cmp eax, ebx
jne 0x404521
push edi
call fcn.00403fe8
test eax, eax
pop ecx
je 0x4044be
inc dword [ebp - 0xc]
jmp 0x404586
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp + 8]
push eax
push str._d_Reg_DB_Key:__s
push edi
call esi
add esp, 0x10
cmp eax, ebx
jne 0x404543
push edi
call fcn.00403e5c
jmp 0x404585
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp + 8]
push eax
push str._d_Reg_DB_Value:__s
push edi
call esi
add esp, 0x10
cmp eax, ebx
jne 0x404565
push edi
call fcn.00403f22
jmp 0x404585
lea eax, [ebp - 0x1018]
push eax
lea eax, [ebp + 8]
push eax
push str._d_Run_Script:__s
push edi
call esi
add esp, 0x10
cmp eax, ebx
jne 0x404586
push edi
call fcn.00404088
pop ecx
inc dword [ebp - 0x18]
add dword [ebp - 8], 4
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jl 0x404412
mov esi, dword [ebp + 0xc]
push dword [esi + 8]
call dword [0x40706c]
test eax, eax
je 0x4045c9
inc dword [ebp - 0xc]
jmp 0x4045dd
push 0x10
push 0
push str.You_do_not_seem_to_have_sufficient_access_rights_non_this_machine_to_uninstall_this_software
call dword [0x40724c]
push eax
call dword [0x407250]
push 1
pop eax
jmp 0x40463b
push dword [esi + 8]
inc dword [ebp - 4]
call dword [0x4070cc]
push eax
call fcn.00401e6f
pop ecx
pop ecx
cmp dword [ebp - 4], 0
je 0x404603
push dword [ebp - 4]
lea eax, [ebp - 0x1018]
push dword [ebp - 0x14]
push dword [ebp - 0xc]
push str._d_files_and__d_directories_removed_n_d_files_or_directories_could_not_be_removed
push eax
call dword [0x40722c]
add esp, 0x14
jmp 0x40461e
push dword [ebp - 0x14]
lea eax, [ebp - 0x1018]
push dword [ebp - 0xc]
push str._d_files_and__d_directories_removed
push eax
call dword [0x40722c]
add esp, 0x10
push 0x40
lea eax, [ebp - 0x1018]
push str.Uninstall_Finished_
push eax
push 0
call dword [0x407250]
call fcn.00403d38
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret