Function at 0x507650
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68ae40
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x763480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x448], ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x444]
push eax
push 0x6c78ac
push 1
push 0
push 0x6c790c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x5079cd
push 0x105
lea eax, [ebp - 0x21c]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.006279a0
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 2
lea eax, [ebp - 0x428]
push 0x6b55cc
push eax
call fcn.0063e9fc
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.0063e84c
add eax, eax
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.0063e9fc
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.006279a0
lea eax, [ebp - 0x428]
push 0x104
push eax
call fcn.0063e84c
add eax, eax
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0063ea41
mov eax, dword [ebp - 0x444]
add esp, 0x40
mov ecx, dword [eax]
push 0
push 1
push 0
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x444]
push 0
push 0
push 0x6c78ec
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x444]
push 0
push 1
push 0x6c78fc
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x3c]
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0xf
mov byte [ebp - 0x440], 0
mov dword [ebp - 4], 0
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5077e0
lea eax, [ebp - 0x440]
sub ecx, edx
push eax
push ecx
push esi
call fcn.0051f450
mov edx, dword [ebp - 0x42c]
lea eax, [ebp - 0x440]
mov ecx, dword [ebp - 0x440]
lea edi, [ebp - 0x440]
add esp, 0xc
lea esi, [ebp - 0x440]
cmp edx, 0x10
cmovae eax, ecx
cmovae edi, ecx
add eax, dword [ebp - 0x430]
cmp edx, 0x10
mov dword [ebp - 0x44c], eax
cmovae esi, ecx
cmp esi, eax
je 0x50785e
sub edi, esi
nop dword [eax]
movsx eax, byte [esi]
push eax
call fcn.00633b4d
mov byte [edi + esi], al
add esp, 4
inc esi
cmp esi, dword [ebp - 0x44c]
jne 0x507840
mov edx, dword [ebp - 0x42c]
mov esi, dword [ebp - 0x440]
lea ecx, [ebp - 0x440]
mov edi, dword [ebp - 0x430]
cmp edx, 0x10
cmovae ecx, esi
cmp edi, 3
jne 0x5078e9
movzx eax, byte [ecx]
cmp al, 0x6d
jne 0x507896
movzx eax, byte [ecx + 1]
cmp al, 0x70
jne 0x507896
movzx eax, byte [ecx + 2]
cmp al, 0x67
jne 0x507896
xor eax, eax
jmp 0x50789b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x5078e9
movups xmm0, xmmword [0x6c787c]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [0x6c786c]
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x6c785c]
mov ecx, dword [ebp - 0x448]
sub esp, 0x10
mov eax, esp
push dword [ebp - 0x444]
movups xmmword [eax], xmm0
lea eax, [ebp - 0x21c]
push eax
call fcn.00506b80
jmp 0x50796d
cmp edx, 0x10
lea ecx, [ebp - 0x440]
cmovae ecx, esi
cmp edi, 4
jne 0x507958
mov eax, dword [ecx]
mov edx, str.mp43
cmp eax, dword [edx]
je 0x507921
cmp al, byte [edx]
jne 0x507925
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x507925
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x507925
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x507925
xor eax, eax
jmp 0x50792a
sbb eax, eax
or eax, 1
test eax, eax
jne 0x507958
movups xmm0, xmmword [0x6b55bc]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [0x6b55ac]
movups xmmword [eax], xmm0
movups xmm0, xmmword [str._LTe_v]
jmp 0x5078c4
mov eax, dword [ebp - 0x444]
lea edx, [ebp - 0x21c]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov esi, eax
test esi, esi
js 0x507989
mov eax, dword [ebp - 0x444]
push dword [ebp - 0x450]
push 0x6c78cc
mov ecx, dword [eax]
push eax
call dword [ecx]
mov eax, dword [ebp - 0x444]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [ebp - 0x42c]
cmp edx, 0x10
jb 0x5079cb
mov ecx, dword [ebp - 0x440]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x5079c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5079ea
push edx
push ecx
call fcn.005df40c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005df41a
mov esp, ebp
pop ebp
ret 0xc
call fcn.00631407
int3