Function at 0x44fb20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1002c
call fcn.004b4380
mov eax, dword [0x50bd24]
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.0044fde0
add esp, 0xc
test eax, eax
jge 0x44fb7c
jmp 0x44fdc1
mov edx, dword [ebp - 0x10008]
add edx, 0xcc
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0044ff80
add esp, 8
test eax, eax
jge 0x44fba3
jmp 0x44fdc1
mov ecx, dword [ebp - 0x10008]
mov dword [ecx + 0x10], 4
mov ecx, dword [ebp + 8]
call fcn.00450050
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.0044f7c0
mov ecx, dword [ebp - 0x10008]
mov dword [ecx + 0x30], eax
cmp dword [ebp + 0xc], 0
je 0x44fc2d
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 0x44fc2d
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 0x44fc7d
mov eax, dword [ebp - 0x10008]
mov ecx, dword [eax + 0x10]
and ecx, 1
je 0x44fc5d
mov edx, 3
mov eax, dword [ebp - 0x10008]
mov word [eax + 0xe4], dx
jmp 0x44fc7d
mov ecx, dword [ebp - 0x10008]
mov edx, dword [ecx + 0x10]
and edx, 2
je 0x44fc7d
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 0x44fccb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10028], eax
push 0x4e7b10
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 0x44fd15
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 0x44fd3a
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 0x4e7758
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 0x44fd83
jmp 0x44fdc1
cmp dword [ebp + 0xc], 0
je 0x44fdba
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x24], 0
je 0x44fdba
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 0x44fdba
jmp 0x44fdc1
mov eax, 1
jmp 0x44fdc3
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b42e4
mov esp, ebp
pop ebp
ret 8