Function at 0x488c60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x4b6014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [0x4bb510], 0
je 0x488c98
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c6d8
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [0x4bb500]
test esi, esi
je 0x488d31
test byte [0x4b7b40], 1
je 0x488c81
cmp byte [esi + 0xb], 0
jns 0x488cb7
mov esi, dword [esi]
sub esp, 0x1c
movaps xmm0, xmmword [0x4ab770]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x4bb510], eax
inc eax
cmp eax, 1
ja 0x488c81
lea esi, [ebp - 0x216]
push 0x206
push 0xff
push esi
call fcn.00450040
add esp, 0xc
mov word [esi - 2], 0
lea esi, [ebp - 0x218]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x488d2a
cmp eax, 0x104
jbe 0x488e31
xor ebx, ebx
jmp 0x488c81
push 0xc
call fcn.0044c095
add esp, 4
mov esi, eax
lea edi, [ebp - 0x218]
push 0x208
push 0xff
push edi
call fcn.00450040
add esp, 0xc
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
dec eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push edi
call fcn.004613fd
add esp, 4
cmp eax, 0x7ffffff0
jae 0x488ee1
mov ebx, eax
cmp eax, 5
jae 0x488d95
mov byte [esi + 0xb], bl
mov eax, esi
test ebx, ebx
jne 0x488dbb
jmp 0x488dce
lea edi, [ebx + 8]
and edi, 0xfffffff8
lea eax, [edi + edi]
push eax
call fcn.0044c095
add esp, 4
mov dword [esi], eax
or edi, 0x80000000
mov dword [esi + 8], edi
lea edi, [ebp - 0x218]
mov dword [esi + 4], ebx
mov ecx, ebx
add ecx, ebx
push ecx
push edi
push eax
mov edi, eax
call fcn.0044f540
mov eax, edi
add esp, 0xc
mov word [eax + ebx*2], 0
movzx eax, byte [esi + 0xb]
test al, al
jns 0x488ddf
mov eax, dword [esi + 4]
mov ecx, esi
push eax
push 0x5c
call fcn.00434290
cmp eax, 0xffffffff
mov bl, 1
je 0x488e1a
movzx ecx, byte [esi + 0xb]
mov edx, ecx
test cl, cl
jns 0x488dfd
mov edx, dword [esi + 4]
cmp edx, eax
jbe 0x488ee8
mov edx, eax
inc edx
test cl, cl
js 0x488ec6
mov word [esi + eax*2 + 2], 0
mov byte [esi + 0xb], dl
mov ecx, esi
push 0x4ab7f8
call fcn.0041a6b0
mov dword [0x4bb500], esi
jmp 0x488ca6
mov ecx, dword [0x4bb500]
push esi
call fcn.0041a1c0
mov ecx, dword [0x4bb500]
movzx eax, byte [ecx + 0xb]
test al, al
js 0x488ed7
mov edx, ecx
cmp word [edx + eax*2 - 2], 0x5c
je 0x488e69
push 0x4ab7f4
call fcn.0041a6b0
mov ecx, dword [0x4bb500]
push 0x4ab7f8
call fcn.0041a6b0
mov eax, dword [0x4bb500]
cmp byte [eax + 0xb], 0
jns 0x488e80
mov eax, dword [eax]
movaps xmm0, xmmword [0x4ab770]
sub esp, 0x1c
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x4bb510], eax
inc eax
cmp eax, 1
ja 0x488c81
mov dword [0x4bb510], 0
jmp 0x488d2a
mov ecx, dword [esi]
mov word [ecx + eax*2 + 2], 0
mov dword [esi + 4], edx
jmp 0x488e1a
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
jmp 0x488e51
mov ecx, esi
call fcn.00487170
mov ecx, esi
call fcn.00487180
int3