Function at 0x501ff0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66214b
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x70903c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x484], ecx
lea eax, [ebp - 0x458]
push eax
push 0x6a703c
push 1
push 0
push 0x6a70cc
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x45c], eax
cmp dword [ebp - 0x45c], 0
jge 0x502056
mov eax, dword [ebp - 0x45c]
jmp 0x5023f8
push 0x105
lea ecx, [ebp - 0x454]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x20a
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.006135b0
add esp, 0xc
lea ecx, [ebp - 0x224]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 2
push 0x6894f4
lea edx, [ebp - 0x224]
push edx
call fcn.006196fa
add esp, 0xc
push 0x104
lea eax, [ebp - 0x454]
push eax
call fcn.006196db
add esp, 8
shl eax, 1
push eax
lea ecx, [ebp - 0x454]
push ecx
lea edx, [ebp - 0x224]
push edx
call fcn.006196fa
add esp, 0xc
push 0x20a
push 0
lea eax, [ebp - 0x454]
push eax
call fcn.006135b0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x224]
push ecx
call fcn.006196db
add esp, 8
shl eax, 1
push eax
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x454]
push eax
call fcn.00619691
add esp, 0xc
push 0
push 1
push 0
mov ecx, dword [ebp - 0x458]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x458]
push eax
mov ecx, dword [edx + 0x30]
call ecx
push 0
push 0
push 0x6a70ac
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x458]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x458]
push edx
mov eax, dword [ecx + 0x3c]
call eax
push 0
push 1
push 0x6a70bc
push 0
mov ecx, dword [ebp - 0x458]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x458]
push eax
mov ecx, dword [edx + 0x3c]
call ecx
lea ecx, [ebp - 0x240]
call fcn.00416290
mov dword [ebp - 4], 0
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00614270
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00587950
add esp, 0xc
push fcn.00619665
lea edx, [ebp - 0x464]
push edx
lea ecx, [ebp - 0x240]
call fcn.00420d80
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x46c]
push eax
lea ecx, [ebp - 0x240]
call fcn.00420a20
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x474]
push eax
lea ecx, [ebp - 0x240]
call fcn.00420d80
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x47c]
push eax
call fcn.00502f30
add esp, 0x20
push 0x6894f8
lea ecx, [ebp - 0x240]
push ecx
call fcn.004c9ec0
add esp, 8
movzx edx, al
test edx, edx
je 0x5022c6
sub esp, 0x10
mov eax, esp
mov ecx, dword [0x6a6fcc]
mov dword [eax], ecx
mov edx, dword [0x6a6fd0]
mov dword [eax + 4], edx
mov ecx, dword [0x6a6fd4]
mov dword [eax + 8], ecx
mov edx, dword [0x6a6fd8]
mov dword [eax + 0xc], edx
sub esp, 0x10
mov eax, esp
mov ecx, dword [0x6a6fbc]
mov dword [eax], ecx
mov edx, dword [0x6a6fc0]
mov dword [eax + 4], edx
mov ecx, dword [0x6a6fc4]
mov dword [eax + 8], ecx
mov edx, dword [0x6a6fc8]
mov dword [eax + 0xc], edx
sub esp, 0x10
mov eax, esp
mov ecx, dword [0x6a6fac]
mov dword [eax], ecx
mov edx, dword [0x6a6fb0]
mov dword [eax + 4], edx
mov ecx, dword [0x6a6fb4]
mov dword [eax + 8], ecx
mov edx, dword [0x6a6fb8]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x458]
push eax
lea ecx, [ebp - 0x454]
push ecx
mov ecx, dword [ebp - 0x484]
call fcn.00502920
mov dword [ebp - 0x45c], eax
jmp 0x50239b
push str.mp43
lea edx, [ebp - 0x240]
push edx
call fcn.004c9ec0
add esp, 8
movzx eax, al
test eax, eax
je 0x502378
sub esp, 0x10
mov ecx, esp
mov edx, dword [0x689484]
mov dword [ecx], edx
mov eax, dword [0x689488]
mov dword [ecx + 4], eax
mov edx, dword [0x68948c]
mov dword [ecx + 8], edx
mov eax, dword [0x689490]
mov dword [ecx + 0xc], eax
sub esp, 0x10
mov ecx, esp
mov edx, dword [0x689474]
mov dword [ecx], edx
mov eax, dword [0x689478]
mov dword [ecx + 4], eax
mov edx, dword [0x68947c]
mov dword [ecx + 8], edx
mov eax, dword [0x689480]
mov dword [ecx + 0xc], eax
sub esp, 0x10
mov ecx, esp
mov edx, dword [str._LTe_v]
mov dword [ecx], edx
mov eax, dword [0x6a6fe0]
mov dword [ecx + 4], eax
mov edx, dword [0x6a6fe4]
mov dword [ecx + 8], edx
mov eax, dword [0x6a6fe8]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x458]
push ecx
lea edx, [ebp - 0x454]
push edx
mov ecx, dword [ebp - 0x484]
call fcn.00502920
mov dword [ebp - 0x45c], eax
jmp 0x50239b
push 0
lea eax, [ebp - 0x454]
push eax
mov ecx, dword [ebp - 0x458]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x458]
push eax
mov ecx, dword [edx + 0x40]
call ecx
mov dword [ebp - 0x45c], eax
cmp dword [ebp - 0x45c], 0
jl 0x5023c0
mov edx, dword [ebp + 0xc]
push edx
push 0x6a705c
mov eax, dword [ebp - 0x458]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x458]
push edx
mov eax, dword [ecx]
call eax
mov ecx, dword [ebp - 0x458]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x458]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x45c]
mov dword [ebp - 0x480], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.005d2b30
mov eax, dword [ebp - 0x480]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00613e6e
mov esp, ebp
pop ebp
ret 0xc