Function at 0x4033d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518411
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x56c36c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x3c0]
push 1
mov dword [ebp - 0x394], 1
call fcn.00411680
mov edx, 0x40
mov ecx, 0x20
cmp word [eax], 9
lea eax, [ebp - 0x39c]
cmove ecx, edx
push ecx
push str.vnc_d.msi
push eax
call fcn.00402670
add esp, 0xc
push 1
lea ecx, [ebp - 0x3d8]
mov dword [ebp - 4], 0
call fcn.00411070
mov edx, dword [eax]
mov dword [ebp - 0x388], 0
mov dword [ebp - 0x384], 0
cmp byte [edx], 0
je 0x4034a7
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403475
sub ecx, esi
mov al, byte [ecx + edx - 1]
cmp al, 0x5c
je 0x40348a
cmp al, 0x2f
jne 0x4034a7
push dword [ebp - 0x39c]
lea eax, [ebp - 0x388]
push edx
push 0x529908
push eax
call fcn.00407700
add esp, 0x10
jmp 0x4034c4
push dword [ebp - 0x39c]
lea eax, [ebp - 0x388]
push 0x5c
push edx
push str._s_c_s
push eax
call fcn.00407700
add esp, 0x14
push dword [ebp - 0x3d8]
call fcn.0047f232
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3cc]
push 0
push dword [ebp - 0x388]
call fcn.00418630
mov esi, eax
push dword [ebp - 0x39c]
lea eax, [ebp - 0x390]
mov byte [ebp - 4], 6
push eax
call fcn.0041c080
mov ecx, eax
add esp, 8
mov eax, dword [esi]
push dword [ecx]
push dword [ecx + 4]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x3cc]
mov byte [ebp - 4], 5
call fcn.004186c0
push 0
push 0
push dword [ebp - 0x388]
lea ecx, [ebp - 0x424]
call fcn.00417e20
mov dword [ebp - 0x37c], 0
mov dword [ebp - 0x378], 0
mov dword [ebp - 0x374], 0
mov dword [ebp - 0x380], 0
push 0x208
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 9
push 0
push eax
call fcn.00481320
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x403bc2
cmp eax, 0x104
jae 0x403bc2
push 1
push 0xffffffffffffffff
push 0xfde9
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x370]
call fcn.00411420
mov esi, dword [ebp - 0x36c]
push 0
mov dword [ebp - 0x36c], 0
mov dword [ebp - 0x370], 0
call fcn.0047f232
add esp, 4
mov dword [ebp - 0x380], esi
cmp byte [ebp - 0x368], 0
mov eax, dword [ebp - 0x36c]
mov byte [ebp - 4], 0xa
je 0x40360e
test eax, eax
je 0x40360e
push dword [ebp - 0x370]
push eax
call fcn.00408000
mov eax, dword [ebp - 0x36c]
add esp, 8
push eax
call fcn.0047f232
add esp, 4
mov dword [ebp - 0x390], 0
mov dword [ebp - 0x38c], 0
cmp byte [esi], 0
je 0x403666
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403635
sub ecx, edx
mov al, byte [ecx + esi - 1]
cmp al, 0x5c
je 0x40364a
cmp al, 0x2f
jne 0x403666
push str.msiexec.exe
push esi
lea eax, [ebp - 0x390]
push 0x529908
push eax
call fcn.00407700
add esp, 0x10
jmp 0x403682
push str.msiexec.exe
push 0x5c
push esi
lea eax, [ebp - 0x390]
push str._s_c_s
push eax
call fcn.00407700
add esp, 0x14
push 0xffffffffffffffff
push dword [ebp - 0x390]
mov byte [ebp - 4], 0xd
call fcn.00407040
mov edx, eax
add esp, 8
mov dword [ebp - 0x368], edx
mov ecx, dword [ebp - 0x378]
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x374], ecx
je 0x4036bd
xor eax, eax
mov dword [ecx], edx
add dword [ebp - 0x378], 4
jmp 0x4036d6
lea eax, [ebp - 0x368]
push eax
push ecx
lea ecx, [ebp - 0x37c]
call fcn.00401ff0
mov eax, dword [ebp - 0x368]
push eax
call fcn.0047f232
push dword [ebp - 0x390]
call fcn.0047f232
push esi
mov byte [ebp - 4], 8
call fcn.0047f232
push 0xffffffffffffffff
push 0x529968
call fcn.00407040
mov edx, eax
add esp, 0x14
mov dword [ebp - 0x368], edx
mov ecx, dword [ebp - 0x378]
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0x374], ecx
je 0x403727
xor eax, eax
mov dword [ecx], edx
add dword [ebp - 0x378], 4
jmp 0x403740
lea eax, [ebp - 0x368]
push eax
push ecx
lea ecx, [ebp - 0x37c]
call fcn.00401ff0
mov eax, dword [ebp - 0x368]
push eax
mov byte [ebp - 4], 8
call fcn.0047f232
push 0xffffffffffffffff
push dword [ebp - 0x388]
call fcn.00407040
mov edx, eax
add esp, 0xc
mov dword [ebp - 0x368], edx
mov ecx, dword [ebp - 0x378]
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x374], ecx
je 0x403781
xor eax, eax
mov dword [ecx], edx
add dword [ebp - 0x378], 4
jmp 0x40379a
lea eax, [ebp - 0x368]
push eax
push ecx
lea ecx, [ebp - 0x37c]
call fcn.00401ff0
mov eax, dword [ebp - 0x368]
push eax
mov byte [ebp - 4], 8
call fcn.0047f232
add esp, 4
lea ecx, [ebp - 0x37c]
push dword [ebp - 0x380]
push dword [0x570cf8]
push dword [0x570cf4]
push dword [ebp - 0x378]
call fcn.00402100
push edi
call fcn.0041b510
add esp, 4
test eax, eax
je 0x40384d
push eax
lea eax, [ebp - 0x390]
push str.ProductLanguage_d
push eax
call fcn.00402670
push 0xffffffffffffffff
push dword [eax]
mov byte [ebp - 4], 0x11
call fcn.00407040
mov edx, eax
add esp, 0x14
mov dword [ebp - 0x368], edx
mov ecx, dword [ebp - 0x378]
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x374], ecx
je 0x403820
xor eax, eax
mov dword [ecx], edx
add dword [ebp - 0x378], 4
jmp 0x403839
lea eax, [ebp - 0x368]
push eax
push ecx
lea ecx, [ebp - 0x37c]
call fcn.00401ff0
mov eax, dword [ebp - 0x368]
push eax
call fcn.0047f232
push dword [ebp - 0x390]
call fcn.0047f232
add esp, 8
mov edi, dword [ebp - 0x378]
lea ecx, [ebp - 0x36c]
mov esi, dword [ebp - 0x37c]
mov eax, edi
sub eax, esi
mov dword [ebp - 0x36c], 0
sar eax, 2
mov dword [ebp - 0x368], 0
lea eax, [eax + eax*4]
shl eax, 2
push eax
call fcn.00407640
mov byte [ebp - 4], 0x13
nop word [eax + eax]
cmp esi, edi
je 0x4038aa
push dword [esi]
lea eax, [ebp - 0x36c]
push eax
call fcn.00416cd0
add esp, 8
add esi, 4
jmp 0x403890
mov esi, dword [ebp - 0x36c]
push 0
mov dword [ebp - 0x36c], 0
mov dword [ebp - 0x368], 0
call fcn.0047f232
push dword [ebp - 0x36c]
mov dword [ebp - 0x380], esi
call fcn.0047f232
push esi
push str.Running__s
push 0x570cd4
mov byte [ebp - 4], 0x14
call fcn.00402f80
add esp, 0x14
mov byte [ebp - 4], 8
push esi
call fcn.0047f232
add esp, 4
lea eax, [ebp - 0x37c]
lea ecx, [ebp - 0x3d4]
push eax
call fcn.004025b0
xorps xmm0, xmm0
mov dword [ebp - 0x3c8], 0
mov byte [ebp - 0x3c4], 0
movups xmmword [ebp - 0x3c0], xmm0
mov dword [ebp - 0x3b0], 0
mov dword [ebp - 0x3ac], 0
mov word [ebp - 0x3a8], 1
mov byte [ebp - 0x3a6], 0
mov dword [ebp - 0x3a4], 0xffffffff
mov dword [ebp - 0x3a0], 0
lea eax, [ebp - 0x418]
mov byte [ebp - 4], 0x15
mov dword [ebp - 0x380], eax
lea ecx, [ebp - 0x418]
lea eax, [ebp - 0x3d4]
push eax
call fcn.004025b0
mov eax, dword [ebp - 0x3c8]
mov dword [ebp - 0x40c], eax
mov al, byte [ebp - 0x3c4]
push 0xffffffffffffffff
push dword [ebp - 0x3c0]
mov byte [ebp - 4], 0x16
mov byte [ebp - 0x408], al
call fcn.00407040
add esp, 8
mov dword [ebp - 0x404], eax
push 0xffffffffffffffff
push dword [ebp - 0x3bc]
lea ecx, [ebp - 0x400]
mov byte [ebp - 4], 0x17
mov dword [ebp - 0x400], 0
call fcn.00408020
push 0xffffffffffffffff
push dword [ebp - 0x3b8]
lea ecx, [ebp - 0x3fc]
mov byte [ebp - 4], 0x18
mov dword [ebp - 0x3fc], 0
call fcn.00408020
lea eax, [ebp - 0x3b4]
mov byte [ebp - 4], 0x19
push eax
lea ecx, [ebp - 0x3f8]
call fcn.004025b0
movzx eax, byte [ebp - 0x3a8]
mov byte [ebp - 0x3ec], al
movzx eax, byte [ebp - 0x3a7]
mov byte [ebp - 0x3eb], al
movzx eax, byte [ebp - 0x3a6]
mov byte [ebp - 0x3ea], al
mov eax, dword [ebp - 0x3a4]
mov dword [ebp - 0x3e8], eax
mov eax, dword [ebp - 0x3a0]
mov dword [ebp - 0x3e4], eax
mov byte [ebp - 0x3e0], 0
mov dword [ebp - 0x3dc], 0
lea ecx, [ebp - 0x3b4]
call fcn.00402dc0
push 0
lea ecx, [ebp - 0x3b8]
mov byte [ebp - 4], 0x1c
call fcn.00407e80
push 0
lea ecx, [ebp - 0x3bc]
mov byte [ebp - 4], 0x1d
call fcn.00407e80
push dword [ebp - 0x3c0]
mov byte [ebp - 4], 0x1b
call fcn.0047f232
add esp, 4
lea ecx, [ebp - 0x3d4]
call fcn.00402dc0
lea ecx, [ebp - 0x418]
call fcn.00417710
mov eax, dword [ebp - 0x3dc]
test eax, eax
je 0x403ac9
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
jmp 0x403acc
or eax, 0xffffffff
push eax
push str.msiexec_started___d_
push 0x570cd4
call fcn.00402f80
add esp, 0xc
lea eax, [ebp - 0x380]
lea ecx, [ebp - 0x418]
push 0xffffffffffffffff
push eax
call fcn.00417d80
mov esi, dword [ebp - 0x380]
push esi
push str.msiexec_exited_with_code__d
push 0x570cd4
mov dword [ebp - 0x394], esi
call fcn.00402f80
add esp, 0xc
lea ecx, [ebp - 0x418]
call fcn.00417110
lea ecx, [ebp - 0x37c]
call fcn.00402dc0
lea ecx, [ebp - 0x424]
call fcn.00417ec0
jmp 0x403b5d
push dword [ebp - 0x388]
mov dword [ebp - 4], 4
call fcn.004101b0
add esp, 4
test esi, esi
je 0x403b85
cmp esi, 0xbc2
je 0x403b85
mov eax, 1
jmp 0x403b87
xor eax, eax
push eax
call fcn.0041bf50
push dword [ebp - 0x388]
call fcn.0047f232
push dword [ebp - 0x39c]
call fcn.0047f232
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047f941
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x529918
lea ecx, [ebp - 0x364]
call fcn.00402910
push 0x558100
lea eax, [ebp - 0x364]
push eax
call fcn.00480e30
int3