Function at 0x4034c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0xe1c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.00401060
mov ecx, ebp
mov esi, eax
mov dword [esp + 0x14], 0
call fcn.004010a0
push 0
mov ecx, esi
call fcn.00404480
mov ecx, esi
call fcn.00404360
lea ebx, [esi + 0x10]
mov edi, eax
push ebx
push edi
call fcn.004060b0
add esp, 8
cmp eax, 1
jne 0x4035d2
mov ecx, esi
call fcn.00404460
test eax, eax
je 0x4035d2
mov ecx, esi
call fcn.00404310
mov ecx, dword [0x40d2d8]
mov dword [esp + 0x10], eax
add eax, 4
push ecx
push eax
call fcn.004060b0
add esp, 8
test eax, eax
jne 0x4035f1
lea edx, [esp + 0x20]
lea eax, [esp + 0x18]
push edx
push eax
push str._u._u
push edi
call fcn.00407042
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x20]
push ecx
push edx
push str._u._u
push ebx
call fcn.00407042
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push eax
push ecx
lea edx, [esp + 0x150]
push str._u._u
push edx
call ebx
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
push eax
push ecx
lea edx, [esp + 0x5c]
push str._u._u
push edx
call ebx
add esp, 0x40
lea eax, [esp + 0x24]
lea ecx, [esp + 0x128]
push eax
push ecx
call fcn.004060b0
add esp, 8
test eax, eax
je 0x4035d2
push edi
push 0x4b7
mov dword [0x41072c], 0x4b7
call fcn.004056e0
add esp, 8
mov edi, dword [esp + 0x14]
push edi
mov ecx, esi
call fcn.00404480
push edi
mov ecx, ebp
call fcn.004037c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe1c
ret
mov ebx, dword [esp + 0x10]
cmp dword [ebx], 2
jne 0x403627
call fcn.004063d0
test eax, eax
jne 0x403627
push 0x4b2
mov dword [0x41072c], 0x4b2
call fcn.004056e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe1c
ret
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x22d]
mov byte [esp + 0x22c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x22c]
push edx
push 0x400
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x403677
lea eax, [esp + 0x22c]
mov ecx, ebp
push eax
call fcn.00403de0
test eax, eax
jne 0x403677
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe1c
ret
lea ecx, [esp + 0x22c]
push 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4036ac
lea edx, [esp + 0x22c]
mov ecx, ebp
push edx
call fcn.00403de0
test eax, eax
jne 0x4036ac
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe1c
ret
mov eax, dword [ebx]
dec eax
je 0x4036d8
dec eax
jne 0x403710
mov eax, dword [str.INSTMSIW.EXE]
mov ecx, esi
push eax
call fcn.004049b0
test eax, eax
jne 0x4036d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe1c
ret
mov ecx, dword [str.INSTMSIW.EXE]
jmp 0x4036fa
mov eax, dword [str.INSTMSIA.EXE]
mov ecx, esi
push eax
call fcn.004049b0
test eax, eax
jne 0x4036f4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe1c
ret
mov ecx, dword [str.INSTMSIA.EXE]
push ecx
mov ecx, esi
call fcn.004043a0
lea edx, [esp + 0x630]
push eax
push edx
call fcn.00405dd0
lea eax, [esp + 0x62c]
push eax
call fcn.00405f50
test eax, eax
jne 0x40374d
lea ecx, [esp + 0x62c]
mov dword [0x41072c], 0x482
push ecx
push 0x482
call fcn.004056e0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe1c
ret
lea edx, [esp + 0x62c]
lea eax, [esp + 0xa2c]
push edx
push str._s__q
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0xa2c]
push 1
push ecx
call fcn.00406160
test eax, eax
je 0x4035d2
cmp eax, 0xbc2
je 0x4037ab
push 0
push eax
mov dword [0x41072c], 0x484
call fcn.00405670
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe1c
ret
mov edi, 1
jmp 0x4035d6