Function at 0x4097fc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff3b8
mov eax, 0x4cfab8
call fcn.004becc8
mov dword [ebp - 0x38], 1
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.004cb99c
inc dword [ebp - 0x38]
mov word [ebp - 0x44], 8
mov word [ebp - 0x44], 0x14
lea eax, [ebp - 4]
call fcn.00401df0
inc dword [ebp - 0x38]
mov word [ebp - 0x44], 8
mov word [ebp - 0x44], 0x20
lea eax, [ebp - 8]
call fcn.00401df0
inc dword [ebp - 0x38]
mov word [ebp - 0x44], 8
mov word [ebp - 0x44], 0x2c
lea eax, [ebp - 0xc]
call fcn.00401df0
inc dword [ebp - 0x38]
mov word [ebp - 0x44], 8
push dword [ebp + 0x10]
push 0x4ceda8
lea edx, [ebp - 4]
push edx
call fcn.004cbc88
add esp, 0xc
mov word [ebp - 0x44], 0x38
lea eax, [ebp - 0x18]
call fcn.00401df0
push eax
inc dword [ebp - 0x38]
mov edx, 0x4cedba
lea eax, [ebp - 0x14]
call fcn.004cb964
inc dword [ebp - 0x38]
lea edx, [ebp - 0x14]
lea eax, [ebp - 4]
pop ecx
call fcn.004cbb90
lea edx, [ebp - 0x18]
lea eax, [ebp - 8]
call fcn.004cbb68
dec dword [ebp - 0x38]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004cbb38
dec dword [ebp - 0x38]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004cbb38
push 0x100
lea ecx, [ebp - 0xa3c]
push ecx
lea eax, [ebp - 8]
call fcn.00401e20
push eax
mov edx, dword [sym.maintenance.exe__FormSetup]
mov ecx, dword [edx]
push dword [ecx + 0x9fc]
call fcn.0042e8cc
add esp, 0x10
mov word [ebp - 0x44], 0x44
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.0042f080
add esp, 8
add dword [ebp - 0x38], 2
mov word [ebp - 0x44], 8
lea edx, [ebp - 0xa3c]
push edx
push 0x9c4
call sub.KERNEL32.DLL_GetTempPathA
test eax, eax
jne 0x4099a0
xor eax, eax
push eax
sub dword [ebp - 0x38], 2
push 2
lea edx, [ebp - 0x10]
push edx
call fcn.0042f100
add esp, 8
dec dword [ebp - 0x38]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004cbb38
dec dword [ebp - 0x38]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004cbb38
dec dword [ebp - 0x38]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004cbb38
dec dword [ebp - 0x38]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004cbb38
pop eax
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
jmp 0x409f1b
push 0x64
lea ecx, [ebp - 0x10]
push ecx
call fcn.0042f4cc
add esp, 8
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], 0xffffffff
xor eax, eax
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x60]
cmp edx, dword [ebp - 0x58]
jge 0x409ab6
push dword [ebp - 0x60]
lea ecx, [ebp - 0xb48]
push ecx
push 0x64
lea eax, [ebp - 0x10]
push eax
call fcn.0042f404
add esp, 0x10
test al, al
jne 0x409a4a
xor eax, eax
push eax
sub dword [ebp - 0x38], 2
push 2
lea edx, [ebp - 0x10]
push edx
call fcn.0042f100
add esp, 8
dec dword [ebp - 0x38]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004cbb38
dec dword [ebp - 0x38]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004cbb38
dec dword [ebp - 0x38]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004cbb38
dec dword [ebp - 0x38]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004cbb38
pop eax
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
jmp 0x409f1b
lea edx, [ebp - 0xb3c]
lea eax, [ebp - 0x20]
call fcn.004cb964
push eax
inc dword [ebp - 0x38]
mov word [ebp - 0x44], 0x50
lea edx, [ebp + 0x11c]
lea eax, [ebp - 0x1c]
call fcn.004cb964
inc dword [ebp - 0x38]
pop edx
call fcn.004cbc1c
push eax
dec dword [ebp - 0x38]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004cbb38
dec dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004cbb38
pop eax
test al, al
je 0x409aa7
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x5c], ecx
jmp 0x409ab6
inc dword [ebp - 0x60]
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x58]
jl 0x4099c9
cmp dword [ebp - 0x5c], 0xffffffff
jne 0x409b21
xor eax, eax
push eax
sub dword [ebp - 0x38], 2
push 2
lea edx, [ebp - 0x10]
push edx
call fcn.0042f100
add esp, 8
dec dword [ebp - 0x38]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004cbb38
dec dword [ebp - 0x38]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004cbb38
dec dword [ebp - 0x38]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004cbb38
dec dword [ebp - 0x38]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004cbb38
pop eax
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
jmp 0x409f1b
push dword [ebp - 0xb44]
call fcn.004bdc7c
pop ecx
mov dword [ebp - 0x64], eax
mov word [ebp - 0x44], 8
push dword [ebp - 0x5c]
push dword [ebp - 0x64]
push dword [ebp - 0xb44]
push 0x64
lea ecx, [ebp - 0x10]
push ecx
call fcn.0042f32c
add esp, 0x14
test al, al
jne 0x409bc2
push dword [ebp - 0x64]
call fcn.004bdab4
pop ecx
xor eax, eax
push eax
sub dword [ebp - 0x38], 2
push 2
lea edx, [ebp - 0x10]
push edx
call fcn.0042f100
add esp, 8
dec dword [ebp - 0x38]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004cbb38
dec dword [ebp - 0x38]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004cbb38
dec dword [ebp - 0x38]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004cbb38
dec dword [ebp - 0x38]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004cbb38
pop eax
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
jmp 0x409f1b
lea ecx, [ebp - 0xb3c]
push ecx
lea eax, [ebp - 0xa3c]
push eax
push 0x4cedcb
lea edx, [ebp - 0xc]
push edx
call fcn.004cbc88
add esp, 0x10
push 0x4cedd1
lea eax, [ebp - 0xc]
call fcn.00401e20
push eax
call fcn.004c0940
add esp, 8
mov dword [ebp - 0x68], eax
push dword [ebp - 0x68]
push dword [ebp - 0xb44]
push 1
push dword [ebp - 0x64]
call fcn.004c0d20
add esp, 0x10
push dword [ebp - 0x68]
call fcn.004c0498
pop ecx
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00409f74
add esp, 8
test al, al
jne 0x409c99
push dword [ebp - 0x64]
call fcn.004bdab4
pop ecx
xor eax, eax
push eax
sub dword [ebp - 0x38], 2
push 2
lea edx, [ebp - 0x10]
push edx
call fcn.0042f100
add esp, 8
dec dword [ebp - 0x38]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004cbb38
dec dword [ebp - 0x38]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004cbb38
dec dword [ebp - 0x38]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004cbb38
dec dword [ebp - 0x38]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004cbb38
pop eax
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
jmp 0x409f1b
lea eax, [ebp - 0xc]
call fcn.00401e20
push eax
push 0
call sub.MSCMS.DLL_InstallColorProfileA
lea edx, [ebp - 0xb3c]
push edx
mov eax, dword [ebp + 8]
add eax, 0x378
call fcn.00401e20
push eax
push str._s_s
lea edx, [ebp - 0xc]
push edx
call fcn.004cbc88
add esp, 0x10
push 0x4ceddb
lea eax, [ebp - 0xc]
call fcn.00401e20
push eax
call fcn.004c0940
add esp, 8
mov dword [ebp - 0x68], eax
push dword [ebp - 0x68]
push dword [ebp - 0xb44]
push 1
push dword [ebp - 0x64]
call fcn.004c0d20
add esp, 0x10
push dword [ebp - 0x68]
call fcn.004c0498
pop ecx
push dword [ebp - 0x64]
call fcn.004bdab4
pop ecx
mov word [ebp - 0x44], 0x5c
lea eax, [ebp - 0x28]
call fcn.00401df0
push eax
inc dword [ebp - 0x38]
mov edx, str.display_profile_filename
lea eax, [ebp - 0x24]
call fcn.004cb964
inc dword [ebp - 0x38]
lea edx, [ebp - 0x24]
lea eax, [ebp - 4]
pop ecx
call fcn.004cbb90
lea edx, [ebp - 0x28]
lea eax, [ebp - 8]
call fcn.004cbb68
dec dword [ebp - 0x38]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004cbb38
dec dword [ebp - 0x38]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004cbb38
mov word [ebp - 0x44], 0x68
lea eax, [ebp - 0x2c]
call fcn.00401df0
mov edx, eax
inc dword [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004ab394
lea eax, [ebp - 0x2c]
call fcn.00401e20
push eax
lea edx, [ebp - 0xc48]
push edx
call fcn.004bea24
add esp, 8
dec dword [ebp - 0x38]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004cbb38
push 4
push 0x100
lea ecx, [ebp - 0xc48]
push ecx
lea eax, [ebp - 8]
call fcn.00401e20
push eax
mov edx, dword [sym.maintenance.exe__FormSetup]
mov ecx, dword [edx]
push dword [ecx + 0x9fc]
call fcn.0042e664
add esp, 0x14
push dword [ebp + 0x14]
lea eax, [ebp - 4]
call fcn.00401e20
push eax
push 0x4cedf8
lea edx, [ebp - 8]
push edx
call fcn.004cbc88
add esp, 0x10
push 4
push 0x100
lea ecx, [ebp - 0xb3c]
push ecx
lea eax, [ebp - 8]
call fcn.00401e20
push eax
mov edx, dword [sym.maintenance.exe__FormSetup]
mov ecx, dword [edx]
push dword [ecx + 0x9fc]
call fcn.0042e664
add esp, 0x14
test byte [ebp + 0x18], 1
je 0x409e64
mov word [ebp - 0x44], 0x74
lea eax, [ebp - 0x30]
call fcn.00401df0
mov edx, eax
inc dword [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004ab394
lea edx, [ebp - 0x30]
mov eax, dword [ebp + 8]
add eax, 0x380
call fcn.004cbb68
dec dword [ebp - 0x38]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004cbb38
test byte [ebp + 0x18], 2
je 0x409e71
mov ecx, 1
jmp 0x409e73
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov word [ebp - 0x44], 8
push dword [ebp + 0x14]
lea eax, [ebp - 4]
call fcn.00401e20
push eax
push str._sprofiles__03d_convert
lea edx, [ebp - 8]
push edx
call fcn.004cbc88
add esp, 0x10
push dword [ebp - 0x6c]
lea eax, [ebp - 8]
call fcn.00401e20
push eax
mov edx, dword [sym.maintenance.exe__FormSetup]
mov ecx, dword [edx]
push dword [ecx + 0x9fc]
call fcn.0042e894
add esp, 0xc
mov al, 1
push eax
sub dword [ebp - 0x38], 2
push 2
lea edx, [ebp - 0x10]
push edx
call fcn.0042f100
add esp, 8
dec dword [ebp - 0x38]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004cbb38
dec dword [ebp - 0x38]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004cbb38
dec dword [ebp - 0x38]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004cbb38
dec dword [ebp - 0x38]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004cbb38
pop eax
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret