Function at 0x486a7b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa48
mov dword [ebp - 0x310], 0
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x838], 0
mov ecx, dword [ebp + 8]
call fcn.00417700
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0xa44]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004171e0
and eax, 0xff
test eax, eax
je 0x486aeb
mov edx, dword [ebp - 0xa44]
movsx eax, byte [edx + 0x198]
test eax, eax
je 0x486ae9
mov ecx, dword [ebp - 0x310]
add ecx, 1
mov dword [ebp - 0x310], ecx
jmp 0x486aaa
cmp dword [ebp - 0x310], 0
jne 0x486afb
xor eax, eax
jmp 0x486e62
lea edx, [ebp - 0x104]
push edx
call fcn.00486ee6
add esp, 4
test eax, eax
je 0x486b18
mov eax, 6
jmp 0x486e62
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0
jne 0x486b3e
mov eax, 6
jmp 0x486e62
push 5
mov ecx, dword [ebp - 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x838], eax
push 0x104
lea edx, [ebp - 0x30c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x53b8ac
lea eax, [ebp - 0x30c]
push eax
push 0x53b8c0
push 0x104
lea ecx, [ebp - 0x72c]
push ecx
call fcn.0040a2c0
add esp, 0x14
push 0x53b8c8
lea edx, [ebp - 0x30c]
push edx
push 0x53b8e0
push 0x104
lea eax, [ebp - 0x830]
push eax
call fcn.0040a2c0
add esp, 0x14
push 0x53b8e8
lea ecx, [ebp - 0x30c]
push ecx
push 0x53b8fc
push 0x104
lea edx, [ebp - 0x628]
push edx
call fcn.0040a2c0
add esp, 0x14
mov ecx, dword [ebp + 8]
call fcn.00417700
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0xa44]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004171e0
and eax, 0xff
test eax, eax
je 0x486e46
mov edx, dword [ebp - 0xa44]
movsx eax, byte [edx + 0x198]
test eax, eax
jne 0x486c12
jmp 0x486bdc
push 0x208
lea ecx, [ebp - 0xa40]
push ecx
mov edx, dword [ebp - 0xa44]
push edx
call sub.ntdll.dll_strlen
add esp, 4
add eax, 1
push eax
mov eax, dword [ebp - 0xa44]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [ebp - 0xa40]
push ecx
push 0
call sub.sfc.dll_SfcIsFileProtected
test eax, eax
je 0x486db8
push 0xffffffffffffffff
lea edx, [ebp - 0xa40]
push edx
push 0
call dword [ebp - 0x838]
mov dword [ebp - 0x834], eax
cmp dword [ebp - 0x834], 0
je 0x486c84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xa48], eax
push 0x5c
mov eax, dword [ebp - 0xa44]
push eax
call dword [sym.imp.ntdll.dll_strrchr]
add esp, 8
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x486caa
jmp 0x486bdc
mov ecx, dword [ebp - 0x41c]
add ecx, 1
mov dword [ebp - 0x41c], ecx
mov edx, dword [ebp - 0x41c]
push edx
lea eax, [ebp - 0x72c]
push eax
push 0x53b964
push 0x104
lea ecx, [ebp - 0x208]
push ecx
call fcn.0040a2c0
add esp, 0x14
mov edx, dword [ebp - 0x41c]
push edx
lea eax, [ebp - 0x830]
push eax
push 0x53b96c
push 0x104
lea ecx, [ebp - 0x418]
push ecx
call fcn.0040a2c0
add esp, 0x14
mov edx, dword [ebp - 0x41c]
push edx
lea eax, [ebp - 0x628]
push eax
push 0x53b974
push 0x104
lea ecx, [ebp - 0x524]
push ecx
call fcn.0040a2c0
add esp, 0x14
lea edx, [ebp - 0x208]
push edx
call fcn.0042ae0a
add esp, 4
test eax, eax
je 0x486d5c
mov eax, dword [ebp - 0xa44]
add eax, 0x198
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.0048623a
add esp, 8
lea edx, [ebp - 0x418]
push edx
call fcn.0042ae0a
add esp, 4
test eax, eax
je 0x486d8a
mov eax, dword [ebp - 0xa44]
add eax, 0x198
push eax
lea ecx, [ebp - 0x418]
push ecx
call fcn.0048623a
add esp, 8
lea edx, [ebp - 0x524]
push edx
call fcn.0042ae0a
add esp, 4
test eax, eax
je 0x486db8
mov eax, dword [ebp - 0xa44]
add eax, 0x198
push eax
lea ecx, [ebp - 0x524]
push ecx
call fcn.0048623a
add esp, 8
mov edx, dword [ebp - 0xa44]
add edx, 0x198
push edx
mov eax, dword [ebp - 0xa44]
push eax
call fcn.0048623a
add esp, 8
test eax, eax
je 0x486e0c
mov ecx, dword [ebp - 0xa44]
mov dword [ecx + 0x16c], 1
mov edx, dword [ebp - 0xa44]
mov dword [edx + 0x2a4], 1
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x20
push eax
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 4
jmp 0x486e2f
mov ecx, dword [ebp - 0xa44]
mov dword [ecx + 0x16c], 0
mov edx, dword [sym.imp.MSVCRT.dll__iob]
add edx, 0x20
push edx
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 4
mov eax, dword [ebp - 0xa44]
add eax, 0x198
push eax
call dword [0x542978]
jmp 0x486bdc
mov ecx, dword [ebp - 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x104]
push edx
call dword [0x542978]
xor eax, eax
mov esp, ebp
pop ebp
ret