Function at 0x4d0f80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x260
mov esi, esp
mov dword [esi + 0x248], ebp
mov dword [esi + 0x24c], esp
mov dword [esi + 0x258], 0xffffffff
mov dword [esi + 0x254], 0x4d48a0
lea eax, [esi + 0x250]
mov ecx, dword fs:[0]
mov dword [esi + 0x250], ecx
mov dword fs:[0], eax
call fcn.00401460
mov edi, eax
mov eax, dword [eax]
mov ebx, dword [eax + 8]
mov ecx, ebx
call dword [0x64689c]
mov ecx, edi
call ebx
mov ecx, eax
call fcn.004014e0
xor edi, edi
test al, al
je 0x4d11bb
mov ebx, dword [ebp + 0xc]
call fcn.0040bd50
test ebx, ebx
je 0x4d11bb
test eax, eax
je 0x4d11bb
cmp word [ebx], 0
je 0x4d11bb
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], 0
mov word [esi + 8], 0
push ebx
call fcn.005d3244
add esp, 4
mov edi, eax
cmp eax, 7
jbe 0x4d1057
sub esp, 0xc
mov al, byte [esi + 0x40]
lea ecx, [esi + 8]
mov byte [esp + 4], al
mov dword [esp + 8], ebx
mov dword [esp], edi
call fcn.00405590
jmp 0x4d1073
mov eax, edi
mov dword [esi + 0x18], edi
lea ecx, [esi + 8]
add eax, edi
push eax
push ebx
push ecx
call fcn.0061e340
add esp, 0xc
mov word [esi + edi*2 + 8], 0
mov dword [esi + 0x258], 1
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x4d110c
lea eax, [esi + 0x40]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x102
ja 0x4d110c
push dword [ebp + 0xc]
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4d110c
lea ebx, [esi + 0x40]
push ebx
call fcn.005d3244
add esp, 4
mov edi, eax
mov eax, dword [esi + 0x1c]
cmp eax, edi
jae 0x4d10e4
sub esp, 0xc
mov al, byte [esi + 0x34]
lea ecx, [esi + 8]
mov byte [esp + 4], al
mov dword [esp + 8], ebx
mov dword [esp], edi
call fcn.00405590
jmp 0x4d110c
cmp eax, 7
jbe 0x4d10ee
mov ebx, dword [esi + 8]
jmp 0x4d10f1
lea ebx, [esi + 8]
mov eax, edi
mov dword [esi + 0x18], edi
add eax, edi
push eax
lea eax, [esi + 0x40]
push eax
push ebx
call fcn.0061e340
add esp, 0xc
mov word [ebx + edi*2], 0
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x2c], 0x208
lea ecx, [esi + 0x34]
mov dword [esi + 0x30], eax
push 0
push dword [esi + 0x20]
call fcn.004dd330
mov eax, dword [ebp + 8]
cmp dword [esi + 0x1c], 7
xorps xmm0, xmm0
mov dword [esi + 0x70], 0
movaps xmmword [esi + 0x60], xmm0
movaps xmmword [esi + 0x50], xmm0
movaps xmmword [esi + 0x40], xmm0
jbe 0x4d114a
mov ecx, dword [esi + 8]
jmp 0x4d114d
lea ecx, [esi + 8]
mov dword [esi + 0x24], eax
lea eax, [esi + 0x40]
mov dword [esi + 0x28], ecx
lea ecx, [esi + 0x2c]
lea edx, [esi + 0x28]
lea edi, [esi + 0x24]
push eax
push ecx
push edx
push edi
push 0x110
lea eax, [esi + 0x34]
push eax
call fcn.004d1270
add esp, 0x18
mov ecx, dword [esi + 0x1c]
mov edi, eax
cmp ecx, 8
jb 0x4d11ad
mov eax, dword [esi + 8]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4d11a3
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4d11d3
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
test edi, edi
mov edi, 0
jne 0x4d11bb
mov edi, 1
mov eax, dword [esi + 0x250]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov dword [esi + 0x258], 0
call fcn.006207e0
nop word cs:[eax + eax]
nop dword [eax]
push ebp
sub esp, 0x18
lea esi, [ebp - 0x25c]
mov ebp, dword [esi + 0x248]
call fcn.0061de80
nop word cs:[eax + eax]
nop
push ebp
sub esp, 0x18
lea esi, [ebp - 0x25c]
mov ebp, dword [esi + 0x248]
mov ecx, dword [esi + 0x1c]
cmp ecx, 8
jb 0x4d1257
mov eax, dword [esi + 8]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4d124d
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4d125c
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
add esp, 0x18
pop ebp
ret
call fcn.006207e0
int3