Function at 0x450440
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1002c
call fcn.00426250
mov eax, dword [0x4eb018]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10008], ecx
mov eax, dword [ebp - 0x10008]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x10008]
mov dword [edx + 8], 1
push 0
mov eax, dword [ebp - 0x10008]
add eax, 0x58
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00450700
add esp, 0xc
test eax, eax
jge 0x45049c
jmp 0x4506e1
mov edx, dword [ebp - 0x10008]
add edx, 0xcc
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004508a0
add esp, 8
test eax, eax
jge 0x4504c3
jmp 0x4506e1
mov ecx, dword [ebp - 0x10008]
mov dword [ecx + 0x10], 4
mov ecx, dword [ebp + 8]
call fcn.00450970
mov byte [ebp - 0x10009], al
movzx edx, byte [ebp - 0x10009]
and edx, 1
shl edx, 3
mov eax, dword [ebp - 0x10008]
mov ecx, dword [eax + 0x14]
and ecx, 0xfffffff7
or ecx, edx
mov edx, dword [ebp - 0x10008]
mov dword [edx + 0x14], ecx
mov ecx, dword [ebp + 8]
call fcn.004500e0
mov ecx, dword [ebp - 0x10008]
mov dword [ecx + 0x30], eax
cmp dword [ebp + 0xc], 0
je 0x45054d
mov edx, dword [ebp - 0x10008]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x10], ecx
mov edx, dword [ebp - 0x10008]
mov eax, dword [edx + 0x10]
and eax, 0x100080
jne 0x45054d
mov ecx, dword [ebp - 0x10008]
mov edx, dword [ecx + 0x14]
or edx, 2
mov eax, dword [ebp - 0x10008]
mov dword [eax + 0x14], edx
mov ecx, dword [ebp - 0x10008]
mov edx, dword [ecx + 0x10]
and edx, 0
jne 0x45059d
mov eax, dword [ebp - 0x10008]
mov ecx, dword [eax + 0x10]
and ecx, 1
je 0x45057d
mov edx, 3
mov eax, dword [ebp - 0x10008]
mov word [eax + 0xe4], dx
jmp 0x45059d
mov ecx, dword [ebp - 0x10008]
mov edx, dword [ecx + 0x10]
and edx, 2
je 0x45059d
mov eax, 2
mov ecx, dword [ebp - 0x10008]
mov word [ecx + 0xe4], ax
mov edx, dword [ebp - 0x10008]
mov eax, dword [edx + 0x14]
or eax, 0x20
mov ecx, dword [ebp - 0x10008]
mov dword [ecx + 0x14], eax
mov dword [ebp - 0x1001c], 0x7fff
mov edx, dword [ebp - 0x1001c]
push edx
lea eax, [ebp - 0x10004]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x10020], eax
cmp dword [ebp - 0x10020], 0
jne 0x4505eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10028], eax
push 0x4c930c
lea ecx, [ebp - 0x10004]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 8
push 0
lea edx, [ebp - 0x10004]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x10014], eax
cmp dword [ebp - 0x10014], 0
je 0x450635
push str.CreateTextServices
mov eax, dword [ebp - 0x10014]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10018], eax
cmp dword [ebp - 0x10018], 0
je 0x45065a
lea ecx, [ebp - 0x10010]
push ecx
mov edx, dword [ebp - 0x10008]
push edx
push 0
call dword [ebp - 0x10018]
mov dword [ebp - 0x1002c], eax
mov eax, dword [ebp - 0x10008]
add eax, 0xc
push eax
push 0x4c8f50
mov ecx, dword [ebp - 0x10010]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x10010]
push eax
mov ecx, dword [edx]
call ecx
mov dword [ebp - 0x10024], eax
mov edx, dword [ebp - 0x10010]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10010]
push ecx
mov edx, dword [eax + 8]
call edx
cmp dword [ebp - 0x10024], 0
jge 0x4506a3
jmp 0x4506e1
cmp dword [ebp + 0xc], 0
je 0x4506da
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x24], 0
je 0x4506da
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x24]
push edx
mov eax, dword [ebp - 0x10008]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x10008]
mov eax, dword [ecx]
mov ecx, dword [edx + 0xc]
mov edx, dword [eax + 0x38]
call edx
test eax, eax
jge 0x4506da
jmp 0x4506e1
mov eax, 1
jmp 0x4506e3
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004250ca
mov esp, ebp
pop ebp
ret 8