Function at 0x4033d0
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.004041e0
mov ecx, esi
call fcn.004040c0
lea ebx, [esi + 0xc]
mov edi, eax
push ebx
push edi
call fcn.00405cc0
add esp, 8
cmp eax, 1
jne 0x4034d8
mov ecx, esi
call fcn.004041c0
test eax, eax
je 0x4034d8
mov ecx, esi
call fcn.00404070
mov ecx, dword [0x40d2d4]
mov dword [esp + 0x10], eax
add eax, 4
push ecx
push eax
call fcn.00405cc0
add esp, 8
test eax, eax
jne 0x4034f7
lea edx, [esp + 0x20]
lea eax, [esp + 0x18]
push edx
push eax
push str._u._u
push edi
call fcn.00406b32
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x20]
push ecx
push edx
push str._u._u
push ebx
call fcn.00406b32
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.00405cc0
add esp, 8
test eax, eax
je 0x4034d8
push edi
push 0x4b7
call fcn.004052f0
add esp, 8
mov edi, dword [esp + 0x14]
push edi
mov ecx, esi
call fcn.004041e0
push edi
mov ecx, ebp
call fcn.004036a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe1c
ret
mov ebx, dword [esp + 0x10]
cmp dword [ebx], 2
jne 0x403523
call fcn.00405f50
test eax, eax
jne 0x403523
push 0x4b2
call fcn.004052f0
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 0x403573
lea eax, [esp + 0x22c]
mov ecx, ebp
push eax
call fcn.00403b40
test eax, eax
jne 0x403573
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 0x4035a8
lea edx, [esp + 0x22c]
mov ecx, ebp
push edx
call fcn.00403b40
test eax, eax
jne 0x4035a8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe1c
ret
mov eax, dword [ebx]
dec eax
je 0x4035d4
dec eax
jne 0x40360c
mov eax, dword [str.INSTMSIW.EXE]
mov ecx, esi
push eax
call fcn.00404700
test eax, eax
jne 0x4035cc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe1c
ret
mov ecx, dword [str.INSTMSIW.EXE]
jmp 0x4035f6
mov eax, dword [str.INSTMSIA.EXE]
mov ecx, esi
push eax
call fcn.00404700
test eax, eax
jne 0x4035f0
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.00404100
lea edx, [esp + 0x630]
push eax
push edx
call fcn.004059e0
lea eax, [esp + 0x62c]
push eax
call fcn.00405b60
test eax, eax
jne 0x40363f
lea ecx, [esp + 0x62c]
push ecx
push 0x482
call fcn.004052f0
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.00405d70
test eax, eax
je 0x4034d8
cmp eax, 0xbc2
je 0x403693
push 0
push eax
call fcn.00405280
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe1c
ret
mov edi, 1
jmp 0x4034dc