Function at 0x4cba90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x520014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [0x524d40], 0
je 0x4cbac8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048a678
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [0x524d30]
test esi, esi
je 0x4cbb61
test byte [0x521ba0], 1
je 0x4cbab1
cmp byte [esi + 0xb], 0
jns 0x4cbae7
mov esi, dword [esi]
sub esp, 0x1c
movaps xmm0, xmmword [0x50a060]
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 [0x524d40], eax
inc eax
cmp eax, 1
ja 0x4cbab1
lea esi, [ebp - 0x216]
push 0x206
push 0xff
push esi
call fcn.0048d770
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 0x4cbb5a
cmp eax, 0x104
jbe 0x4cbc61
xor ebx, ebx
jmp 0x4cbab1
push 0xc
call fcn.00489952
add esp, 4
mov esi, eax
lea edi, [ebp - 0x218]
push 0x208
push 0xff
push edi
call fcn.0048d770
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.004a3276
add esp, 4
cmp eax, 0x7ffffff0
jae 0x4cbd11
mov ebx, eax
cmp eax, 5
jae 0x4cbbc5
mov byte [esi + 0xb], bl
mov eax, esi
test ebx, ebx
jne 0x4cbbeb
jmp 0x4cbbfe
lea edi, [ebx + 8]
and edi, 0xfffffff8
lea eax, [edi + edi]
push eax
call fcn.00489952
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.0048cc70
mov eax, edi
add esp, 0xc
mov word [eax + ebx*2], 0
movzx eax, byte [esi + 0xb]
test al, al
jns 0x4cbc0f
mov eax, dword [esi + 4]
mov ecx, esi
push eax
push 0x5c
call fcn.0046d110
cmp eax, 0xffffffff
mov bl, 1
je 0x4cbc4a
movzx ecx, byte [esi + 0xb]
mov edx, ecx
test cl, cl
jns 0x4cbc2d
mov edx, dword [esi + 4]
cmp edx, eax
jbe 0x4cbd18
mov edx, eax
inc edx
test cl, cl
js 0x4cbcf6
mov word [esi + eax*2 + 2], 0
mov byte [esi + 0xb], dl
mov ecx, esi
push str.debug.log
call fcn.0043f8c0
mov dword [0x524d30], esi
jmp 0x4cbad6
mov ecx, dword [0x524d30]
push esi
call fcn.00437400
mov ecx, dword [0x524d30]
movzx eax, byte [ecx + 0xb]
test al, al
js 0x4cbd07
mov edx, ecx
cmp word [edx + eax*2 - 2], 0x5c
je 0x4cbc99
push 0x503808
call fcn.0043f8c0
mov ecx, dword [0x524d30]
push str.debug.log
call fcn.0043f8c0
mov eax, dword [0x524d30]
cmp byte [eax + 0xb], 0
jns 0x4cbcb0
mov eax, dword [eax]
movaps xmm0, xmmword [0x50a060]
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 [0x524d40], eax
inc eax
cmp eax, 1
ja 0x4cbab1
mov dword [0x524d40], 0
jmp 0x4cbb5a
mov ecx, dword [esi]
mov word [ecx + eax*2 + 2], 0
mov dword [esi + 4], edx
jmp 0x4cbc4a
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
jmp 0x4cbc81
mov ecx, esi
call fcn.004c9f10
mov ecx, esi
call fcn.004c9f20
int3