Function at 0x406aa0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b8ff0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
mov eax, dword [0x4f5b3c]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x14], eax
xor edi, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x248], edi
mov dword [esp + 0x1c], eax
push 1
push edi
lea eax, [esp + 0x28]
lea esi, [ebp + 4]
push 0x3a
mov bl, 2
push eax
push edi
mov ecx, esi
mov byte [esp + 0x25c], bl
call fcn.00437e10
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.004354c0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x24c], 3
call fcn.004a9d0c
lea ecx, [esp + 0x10]
mov byte [esp + 0x248], bl
call fcn.004a9c1f
push 0x3a
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.noshrink
call fcn.004a9c8d
mov ecx, esi
call fcn.00438180
cmp eax, edi
je 0x406b88
push 0x3a
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.nobind
call fcn.004a9c8d
mov ecx, esi
call fcn.00438180
cmp eax, edi
je 0x406b88
mov edi, 1
lea edx, [esp + 0x14]
push edi
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.name
call fcn.004a9c8d
mov ecx, esi
call fcn.00436ed0
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push 0x4ff13c
push ecx
call fcn.004a9e02
mov eax, dword [eax]
lea ecx, [ebp + 0x40]
push eax
mov byte [esp + 0x24c], 4
call fcn.004a9d5c
lea ecx, [esp + 0x10]
mov byte [esp + 0x248], bl
call fcn.004a9c1f
lea edx, [esp + 0x10]
lea ecx, [esp + 0x20]
push edx
call fcn.004354c0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x24c], 5
call fcn.004a9d0c
lea ecx, [esp + 0x10]
mov byte [esp + 0x248], bl
call fcn.004a9c1f
test edi, edi
jne 0x406c9e
lea eax, [esp + 0x14]
push 1
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.name
call fcn.004a9c8d
mov ecx, esi
call fcn.00436ed0
test eax, eax
jne 0x406c9e
lea ecx, [esp + 0x1c]
push 1
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.from
call fcn.004a9c8d
mov ecx, esi
call fcn.00436ed0
test eax, eax
je 0x406c6e
lea edx, [esp + 0x10]
lea ecx, [esp + 0x1c]
push edx
call fcn.004354c0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x24c], 6
call fcn.004a9d0c
mov byte [esp + 0x248], bl
lea ecx, [esp + 0x10]
jmp 0x406c99
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
call fcn.004354c0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x24c], 7
call fcn.004a9d0c
mov byte [esp + 0x248], bl
lea ecx, [esp + 0x10]
call fcn.004a9c1f
lea ecx, [esp + 0x1c]
push 1
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.source
call fcn.004a9c8d
mov ecx, esi
call fcn.00436ed0
test eax, eax
je 0x406d65
lea edx, [esp + 0x1c]
lea ecx, [ebp + 0x40]
push edx
call fcn.004a9d0c
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x406d0d
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x20]
call fcn.004354c0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x24c], 8
call fcn.004a9d0c
lea ecx, [esp + 0x10]
mov byte [esp + 0x248], bl
call fcn.004a9c1f
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x128]
push edx
push eax
call fcn.004aaa8b
test eax, eax
je 0x406d65
lea ecx, [esp + 0x10]
push str._Y_m_d_H_M_S
push ecx
lea ecx, [esp + 0x134]
call fcn.004a79f9
mov edx, dword [eax]
lea eax, [ebp + 0x48]
push edx
push 0x4ee8a4
push eax
mov byte [esp + 0x254], 9
call fcn.004a768f
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x248], bl
call fcn.004a9c1f
push 0x3a
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.font
call fcn.004a9c8d
mov ecx, esi
call fcn.00438180
test eax, eax
mov dword [ebp + 0x5c], eax
je 0x406e90
mov eax, dword [0x4ff2ec]
push 0x4ee898
push eax
call fcn.00474eb8
add esp, 8
test eax, eax
push 0x104
jle 0x406e1b
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str._fonts_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.004a9edc
mov eax, dword [eax]
lea ecx, [ebp + 0x30]
push eax
mov byte [esp + 0x24c], 0xa
call fcn.004a9d5c
lea ecx, [esp + 0x10]
mov byte [esp + 0x248], bl
call fcn.004a9c1f
jmp 0x407080
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str._system_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.004a9edc
mov eax, dword [eax]
lea ecx, [ebp + 0x30]
push eax
mov byte [esp + 0x24c], 0xb
call fcn.004a9d5c
lea ecx, [esp + 0x10]
mov byte [esp + 0x248], bl
call fcn.004a9c1f
jmp 0x407080
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
call fcn.00434d10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push eax
push edx
mov byte [esp + 0x254], 0xc
call fcn.004a9e02
mov eax, dword [eax]
lea edi, [ebp + 0x30]
push eax
mov ecx, edi
mov byte [esp + 0x24c], 0xd
call fcn.004a9d5c
lea ecx, [esp + 0x10]
mov byte [esp + 0x248], 0xc
call fcn.004a9c1f
lea ecx, [esp + 0x18]
mov byte [esp + 0x248], bl
call fcn.004a9c1f
mov eax, dword [edi]
cmp dword [eax - 8], 1
jle 0x406f6c
mov cl, byte [eax + 1]
cmp cl, 0x3a
je 0x406f6c
mov al, byte [eax]
cmp al, 0x5c
jne 0x406f3a
cmp cl, al
je 0x406f6c
cmp al, al
jne 0x406f3a
lea eax, [esp + 0x18]
push 1
push eax
mov ecx, edi
call fcn.004a70e4
mov eax, dword [eax]
mov ecx, edi
push eax
mov byte [esp + 0x24c], 0xe
call fcn.004a9d5c
lea ecx, [esp + 0x18]
mov byte [esp + 0x248], bl
call fcn.004a9c1f
push edi
lea ecx, [esp + 0x1c]
push 0x4ff318
push ecx
call fcn.004a9e02
mov eax, dword [eax]
mov ecx, edi
push eax
mov byte [esp + 0x24c], 0xf
call fcn.004a9d5c
lea ecx, [esp + 0x18]
mov byte [esp + 0x248], bl
call fcn.004a9c1f
lea edx, [esp + 0x14]
push 1
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.name
call fcn.004a9c8d
mov ecx, esi
call fcn.00436ed0
test eax, eax
jne 0x406fde
lea eax, [esp + 0x14]
push 1
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.from
call fcn.004a9c8d
mov ecx, esi
call fcn.00436ed0
test eax, eax
jne 0x406fde
lea ecx, [esp + 0x14]
push 1
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.source
call fcn.004a9c8d
mov ecx, esi
call fcn.00436ed0
test eax, eax
jne 0x406fde
push edi
lea ecx, [ebp + 0x40]
call fcn.004a9d0c
lea edx, [esp + 0x14]
push 1
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Osize
call fcn.004a9c8d
mov ecx, esi
call fcn.00436ed0
test eax, eax
je 0x407011
mov eax, dword [esp + 0x14]
push eax
call fcn.00474ead
add esp, 4
mov dword [ebp + 0x54], eax
lea ecx, [ebp + 0x50]
push 1
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Otime
call fcn.004a9c8d
mov ecx, esi
call fcn.00436ed0
lea edx, [ebp + 0x48]
push 1
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.time
call fcn.004a9c8d
mov ecx, esi
call fcn.00436ed0
lea eax, [esp + 0x14]
push 1
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.size
call fcn.004a9c8d
mov ecx, esi
call fcn.00436ed0
test eax, eax
je 0x407080
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00474ead
add esp, 4
mov dword [ebp + 0x58], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x248], 1
call fcn.004a9c1f
lea ecx, [esp + 0x20]
mov byte [esp + 0x248], 0
call fcn.004a9c1f
lea ecx, [esp + 0x14]
mov dword [esp + 0x248], 0xffffffff
call fcn.004a9c1f
mov ecx, dword [esp + 0x240]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x23c
ret