Function at 0x480fc8
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x430
push ebx
push ecx
push edx
push esi
push edi
mov dword [esp + 0x2c], edx
mov edi, eax
mov dword [esp + 0x1c], edi
mov edx, ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
mov esi, 0
mov eax, edi
mov ebx, 0x3a
call fcn.004f6110
jmp 0x4810af
cmp byte [edi + 1], 0x3a
jne 0x481024
jmp 0x4810b8
cmp byte [edi + 1], 0x5c
je 0x481024
jmp 0x4810c1
cmp dword [esp + 0x30], 0
jne 0x481062
jmp 0x48106f
mov eax, edx
mov ebx, edi
call fcn.004f627c
mov eax, edx
mov ebx, 0x2e
call fcn.004f6064
mov edi, eax
mov eax, 0
cmp edi, 0
je 0x481051
mov eax, edi
mov ebx, 0x5c
call fcn.004f6110
cmp edi, 0
jne 0x48101b
jmp 0x48106f
cmp ecx, 0
jne 0x481079
jmp 0x4812d2
cmp eax, 0
jne 0x48106a
mov byte [edi], 0
mov edi, 0
cmp edi, 0
je 0x481058
jmp 0x4812d2
cmp byte [ecx], 0x2e
je 0x48108a
mov eax, edx
mov ebx, 0x547904
call fcn.004f6220
mov eax, edx
mov ebx, ecx
call fcn.004f6220
jmp 0x4812d2
mov ecx, dword [esp + 0x1c]
mov eax, ecx
call fcn.0042f564
cmp byte [ecx + eax - 1], 0x2e
je 0x481129
jmp 0x481139
cmp eax, 0
jne 0x481005
cmp byte [edi], 0x5c
je 0x481010
mov eax, edi
call fcn.0042f564
cmp eax, 0x104
jae 0x4812cd
mov eax, 0x100
mov ebx, dword [eax + 0x547910]
mov dword [esp + eax + 0x340], ebx
sub eax, 4
jae 0x4810d8
lea eax, [esp + 0x240]
mov dword [esp + 0x28], eax
push eax
mov eax, edi
lea ebx, [esp + 0x240]
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x13c]
mov dword [esp + 0x1c], ecx
lea edi, [esp + 0x3c]
mov edx, edi
call fcn.004f5c04
cmp byte [esp + 0x240], 0
je 0x481098
jmp 0x481139
mov byte [esp + 0x240], 0x2e
mov byte [esp + 0x241], 0
cmp byte [esp + 0x23c], 0
jne 0x48118e
lea eax, [esp + 0x340]
push eax
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
cmp eax, 0
jne 0x481166
call sub.KERNEL32.dll_GetLastError
mov esi, eax
jmp 0x4812d2
cmp byte [esp + 0x341], 0x3a
jne 0x48118e
mov al, byte [esp + 0x340]
mov byte [esp + 0x23c], al
mov byte [esp + 0x23d], 0x3a
mov byte [esp + 0x23e], 0
cmp byte [esp + 0x138], 0x5c
je 0x481291
cmp byte [esp + 0x340], 0
jne 0x481237
lea ecx, [esp + 0x340]
mov dword [esp + 0x34], ecx
mov eax, ecx
call fcn.004f627c
mov eax, ecx
mov ebx, dword [esp + 0x18]
call fcn.004f6220
mov eax, ebx
mov ebx, ecx
call fcn.004f627c
push ecx
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
cmp eax, 0
je 0x48115a
mov ebx, dword [esp + 0x18]
push ebx
call sub.KERNEL32.dll_SetCurrentDirectoryA
cmp eax, 0
je 0x48115a
push ebx
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
cmp eax, 0
je 0x48115a
push dword [esp + 0x34]
call sub.KERNEL32.dll_SetCurrentDirectoryA
cmp eax, 0
je 0x48115a
cmp byte [esp + 0x139], 0x3a
jne 0x481291
mov eax, ebx
lea ebx, [esp + 0x13a]
call fcn.004f627c
jmp 0x481291
cmp byte [esp + 0x138], 0
je 0x48125f
lea ecx, [esp + 0x340]
mov eax, ecx
mov ebx, 0x547908
call fcn.004f6220
mov eax, ecx
mov ebx, dword [esp + 0x18]
call fcn.004f6220
cmp byte [esp + 0x341], 0x3a
jne 0x48127c
mov ebx, 2
jmp 0x481281
cmp byte [esp + 0x240], 0
je 0x48129c
jmp 0x4812a5
mov ebx, 0
mov eax, dword [esp + 0x18]
lea ebx, [esp + ebx + 0x340]
call fcn.004f627c
mov ebx, dword [esp + 0x14]
cmp ebx, 0
jne 0x481270
jmp 0x4812a5
mov eax, dword [esp + 0x28]
call fcn.004f627c
cmp esi, 0
jne 0x4812d2
cmp dword [esp + 0x30], 0
je 0x4812b3
jmp 0x4812b7
mov ebx, dword [esp + 0x28]
push ebx
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, edi
call fcn.004f5b44
jmp 0x4812d2
mov esi, 0x2d
mov eax, esi
pop edi
pop esi
pop edx
pop ecx
pop ebx
add esp, 0x430
ret