Function at 0x401760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x3624
call fcn.004175d0
mov eax, dword [0x42701c]
xor eax, esp
mov dword [esp + 0x3620], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401790
sub eax, edx
sar eax, 1
je 0x401889
mov ecx, edi
mov eax, 0x420550
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4017d6
test dx, dx
je 0x4017d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4017d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4017b0
xor eax, eax
jmp 0x4017db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401889
lea ecx, [esp + 0xe4]
push ecx
push 0x104
mov dword [esp + 0x1c], vtable.ZonaCommandFactory.0
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push str.ZonaInstall.log
lea edx, [esp + 0xe8]
push edx
mov eax, edx
push 0x420978
push eax
call esi
push 0x420910
lea ecx, [esp + 0x300]
push 0x420918
push ecx
call esi
add esp, 0x1c
push 0x420588
lea edx, [esp + 0x2f0]
push 0x420918
push edx
call esi
add esp, 0xc
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [esp + 0xe0]
lea ecx, [esp + 0x14]
lea esi, [esp + 0x2c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
call fcn.00403410
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3620]
xor ecx, esp
call fcn.0040fa5b
mov esp, ebp
pop ebp
ret 0x10
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 0x35c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push str.ZonaInstall.log
lea eax, [esp + 0x360]
push eax
mov ecx, eax
push 0x420978
push ecx
call esi
push 0x420910
lea edx, [esp + 0x578]
push 0x420918
push edx
call esi
add esp, 0x1c
push str.___START___
push 0x4208f8
lea ecx, [esp + 0x360]
call fcn.004038b0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4018f3
sub eax, edx
sar eax, 1
je 0x40192c
push str.Start_args:
push 0x4208f8
lea ecx, [esp + 0x360]
call fcn.004038b0
push edi
push 0x4208f8
lea ecx, [esp + 0x360]
call fcn.004038b0
lea eax, [esp + 0x358]
push eax
lea ecx, [esp + 0x5ac]
push ecx
call fcn.00407a20
mov esi, vtable.ZonaInstallContext.0
mov ebx, str._version
lea eax, [esp + 0x6b4]
mov dword [esp + 0x5a8], esi
call fcn.00407840
test al, al
je 0x4019b9
lea edi, [esp + 0x5a8]
call fcn.00407fc0
mov eax, dword [esp + 0x6b8]
mov dword [esp + 0x5a8], esi
mov ecx, dword [eax]
push eax
push ecx
lea esi, [esp + 0x18]
lea eax, [esp + 0x6bc]
call fcn.00401dc0
mov edx, dword [esp + 0x6b8]
push edx
call fcn.0040fa9f
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3620]
xor ecx, esp
call fcn.0040fa5b
mov esp, ebp
pop ebp
ret 0x10
lea esi, [esp + 0x3008]
lea ecx, [esp + 0x632]
call fcn.00406e60
lea ecx, [esp + 0x5a8]
call fcn.00407d80
mov eax, dword [esp + 0x5a8]
mov edx, dword [eax + 0x10]
lea ecx, [esp + 0x5a8]
call edx
xor ebx, ebx
mov byte [esp + 0x18cc], al
cmp al, bl
je 0x401a0e
mov ecx, dword [esp + 0x18c4]
push str.RESTART_MODE
push 0x4208f8
call fcn.004038b0
lea esi, [esp + 0x5a8]
call fcn.00407c60
call fcn.0040c9e0
mov edx, dword [esp + 0x5a8]
mov eax, esi
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x10]
mov ecx, esi
mov dword [esp + 0x18], vtable.InstallScenario.0
mov dword [esp + 0x20], ebx
mov word [esp + 0x25], bx
mov byte [esp + 0x24], bl
mov dword [esp + 0x28], ebx
call eax
test al, al
jne 0x401a59
mov eax, dword [esp + 0x1c]
call fcn.004091a0
mov ebx, str._silent
lea eax, [esp + 0x6b4]
mov dword [esp + 0x18], vtable.ZonaInstallScenario.0
call fcn.00407840
test al, al
jne 0x401bdf
call fcn.00403ad0
mov esi, eax
call fcn.00401ca0
mov ecx, dword [esi]
mov dword [esp + 0xe8], ecx
mov edx, dword [esi + 4]
mov dword [esp + 0xec], edx
mov ebx, eax
mov eax, dword [esi + 8]
mov dword [esp + 0xf0], eax
mov ecx, dword [esi + 0xc]
mov dword [esp + 0xf4], ecx
push ebx
lea edx, [esp + 0x348]
mov ecx, 0x93
lea esi, [esp + 0x35c]
lea edi, [esp + 0xfc]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00401cf0
mov ax, word [ebx + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x11
mov word [esp + 0x358], ax
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xe4], edx
call esi
push 0x10
mov edi, eax
call esi
mov ecx, eax
mov eax, edi
cdq
sub eax, edx
sar eax, 1
sub eax, 0xdf
push eax
mov eax, ecx
cdq
sub eax, edx
mov edx, eax
sar edx, 1
sub edx, 0xfa
lea eax, [esp + 0xe4]
lea esi, [esp + 0x50]
call fcn.00402ce0
call fcn.00402d40
lea eax, [esp + 0x5a8]
mov dword [esp + 0x44], eax
lea ecx, [esp + 0xe0]
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x4c], ecx
lea edx, [esp + 0x348]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], edx
push ecx
lea edx, [esp + 0x5b0]
push edx
lea eax, [esp + 0x44]
lea esi, [esp + 0x84]
mov dword [esp + 0x44], vtable.SimpleWizardHeader.0
mov dword [esp + 0x38], vtable.LicenseResourceProviderImpl.0
call fcn.00401000
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
call fcn.00402720
lea ecx, [esp + 0xb4]
mov dword [esp + 0x20], ecx
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x4c]
call fcn.00402dd0
call fcn.004010b0
mov eax, dword [esp + 0x348]
mov ecx, dword [eax]
push eax
push ecx
lea esi, [esp + 0x18]
lea eax, [esp + 0x34c]
call fcn.00401dc0
mov edx, dword [esp + 0x348]
push edx
call fcn.0040fa9f
add esp, 4
jmp 0x401c01
lea edx, [esp + 0x358]
lea ecx, [esp + 0x18]
lea eax, [esp + 0x5a8]
lea edi, [esp + 0x38]
call fcn.00408c10
mov esi, edi
call fcn.00408cf0
mov eax, dword [esp + 0x6b8]
mov dword [esp + 0x18], vtable.InstallScenario.0
mov dword [esp + 0x5a8], 0x422d04
mov ecx, dword [eax]
push eax
push ecx
lea esi, [esp + 0x18]
lea eax, [esp + 0x6bc]
call fcn.00401dc0
mov eax, dword [esp + 0x6b8]
push eax
call fcn.0040fa9f
mov ecx, dword [esp + 0x3630]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.0040fa5b
mov esp, ebp
pop ebp
ret 0x10