Function at 0x48c8bb
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.004176f0
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0xa44]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004171d0
and eax, 0xff
test eax, eax
je 0x48c92b
mov edx, dword [ebp - 0xa44]
movsx eax, byte [edx + 0x198]
test eax, eax
je 0x48c929
mov ecx, dword [ebp - 0x310]
add ecx, 1
mov dword [ebp - 0x310], ecx
jmp 0x48c8ea
cmp dword [ebp - 0x310], 0
jne 0x48c93b
xor eax, eax
jmp 0x48cca2
lea edx, [ebp - 0x104]
push edx
call fcn.0048cd26
add esp, 4
test eax, eax
je 0x48c958
mov eax, 6
jmp 0x48cca2
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0
jne 0x48c97e
mov eax, 6
jmp 0x48cca2
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 0x5443b4
lea eax, [ebp - 0x30c]
push eax
push 0x5443c8
push 0x104
lea ecx, [ebp - 0x72c]
push ecx
call fcn.0040a230
add esp, 0x14
push 0x5443d0
lea edx, [ebp - 0x30c]
push edx
push 0x5443e8
push 0x104
lea eax, [ebp - 0x830]
push eax
call fcn.0040a230
add esp, 0x14
push 0x5443f0
lea ecx, [ebp - 0x30c]
push ecx
push 0x544404
push 0x104
lea edx, [ebp - 0x628]
push edx
call fcn.0040a230
add esp, 0x14
mov ecx, dword [ebp + 8]
call fcn.004176f0
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0xa44]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004171d0
and eax, 0xff
test eax, eax
je 0x48cc86
mov edx, dword [ebp - 0xa44]
movsx eax, byte [edx + 0x198]
test eax, eax
jne 0x48ca52
jmp 0x48ca1c
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 0x48cbf8
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 0x48cac4
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 0x48caea
jmp 0x48ca1c
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 0x54446c
push 0x104
lea ecx, [ebp - 0x208]
push ecx
call fcn.0040a230
add esp, 0x14
mov edx, dword [ebp - 0x41c]
push edx
lea eax, [ebp - 0x830]
push eax
push 0x544474
push 0x104
lea ecx, [ebp - 0x418]
push ecx
call fcn.0040a230
add esp, 0x14
mov edx, dword [ebp - 0x41c]
push edx
lea eax, [ebp - 0x628]
push eax
push 0x54447c
push 0x104
lea ecx, [ebp - 0x524]
push ecx
call fcn.0040a230
add esp, 0x14
lea edx, [ebp - 0x208]
push edx
call fcn.0042f17a
add esp, 4
test eax, eax
je 0x48cb9c
mov eax, dword [ebp - 0xa44]
add eax, 0x198
push eax
lea ecx, [ebp - 0x208]
push ecx
call fcn.0048c07a
add esp, 8
lea edx, [ebp - 0x418]
push edx
call fcn.0042f17a
add esp, 4
test eax, eax
je 0x48cbca
mov eax, dword [ebp - 0xa44]
add eax, 0x198
push eax
lea ecx, [ebp - 0x418]
push ecx
call fcn.0048c07a
add esp, 8
lea edx, [ebp - 0x524]
push edx
call fcn.0042f17a
add esp, 4
test eax, eax
je 0x48cbf8
mov eax, dword [ebp - 0xa44]
add eax, 0x198
push eax
lea ecx, [ebp - 0x524]
push ecx
call fcn.0048c07a
add esp, 8
mov edx, dword [ebp - 0xa44]
add edx, 0x198
push edx
mov eax, dword [ebp - 0xa44]
push eax
call fcn.0048c07a
add esp, 8
test eax, eax
je 0x48cc4c
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 0x48cc6f
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 [0x54b4b8]
jmp 0x48ca1c
mov ecx, dword [ebp - 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x104]
push edx
call dword [0x54b4b8]
xor eax, eax
mov esp, ebp
pop ebp
ret