Function at 0x477cb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f150b
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x536ed4]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
mov eax, dword [0x536ed4]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
mov esi, edx
push esi
mov edi, ecx
call fcn.004be9f8
mov ebx, eax
test ebx, ebx
je 0x477e87
cmp dword [edi + 0x1e94], 0xffffffff
je 0x477d55
cmp dword [edi + 0x1e98], esi
jne 0x477d55
push edi
call fcn.00477c60
mov eax, dword [edi + 0x1e94]
add eax, 0x3e7
push eax
mov ecx, ebx
call fcn.004c24e6
mov esi, eax
test esi, esi
je 0x477fc8
mov ecx, ebx
call fcn.004c26a2
push eax
mov ecx, esi
call fcn.004c26bd
push 5
mov ecx, esi
call fcn.004c2681
jmp 0x477fc8
mov eax, dword [edi + 0x1e90]
test eax, eax
je 0x477d79
mov ecx, dword [0x54ae38]
test ecx, ecx
je 0x477d6f
push eax
call ecx
add esp, 4
mov dword [edi + 0x1e90], 0
mov edx, dword [0x54b06c]
mov ecx, 1
xor eax, eax
test ecx, edx
je 0x477d96
add eax, 1
add ecx, ecx
cmp eax, 4
jb 0x477d86
jmp 0x477da4
or edx, ecx
mov dword [edi + 0x1e94], eax
mov dword [0x54b06c], edx
cmp dword [edi + 0x1e94], 0
jl 0x477e87
push edi
mov dword [edi + 0x1e98], esi
call fcn.00477c60
call fcn.004bb047
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x477dd7
push 0x80004005
call fcn.00401730
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x82
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x158], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x34]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x477e10
sub eax, edx
push eax
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x18]
call fcn.00474b60
push 0x10
push str.MaxxAudioEQ.dll
lea eax, [esp + 0x18]
push eax
call fcn.004767e0
mov eax, dword [0x54ae34]
test eax, eax
je 0x477e52
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0
call eax
add esp, 0xc
test eax, eax
mov dword [edi + 0x1e90], eax
jne 0x477e8e
mov dword [esp + 0x150], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x477e87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x477fcd
mov edx, dword [ebx + 0x20]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
fld1
fld st(0)
xor eax, eax
fld dword [0x53b26c]
mov dword [esp + 0x14], eax
fucom st(1)
xor ecx, ecx
mov edx, 0x1b6
mov esi, 0xf7
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
fnstsw ax
mov dword [esp + 0x20], esi
fstp st(1)
test ah, 0x44
jp 0x477ef2
fxch st(1)
fcomp dword [0x53b7ec]
fnstsw ax
test ah, 0x44
jp 0x477ef4
mov eax, dword [esp + 0x28]
fstp st(0)
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
jmp 0x477f2e
fstp st(1)
fmul qword [0x517e48]
call fcn.004d3f00
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
sub ecx, eax
mov eax, dword [esp + 0x30]
sub eax, esi
sub eax, 0xf7
cdq
sub eax, edx
sar eax, 1
xor edx, edx
test eax, eax
setle dl
sub edx, 1
and eax, edx
add esi, eax
push esi
push ecx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [edi + 0x1e94]
mov esi, dword [0x54aea4]
mov ecx, dword [edi + 0x1e98]
mov edx, dword [edi + 0x1e90]
add eax, 0x3e7
test esi, esi
je 0x477f68
push edi
push 0x477b50
push eax
lea eax, [esp + 0x20]
push eax
push ecx
push edx
call esi
add esp, 0x18
mov ecx, dword [edi + 0x1e90]
push ecx
call fcn.00477730
mov edx, dword [edi + 0x1e94]
add edx, 0x3e7
push edx
mov ecx, ebx
call fcn.004c24e6
mov esi, eax
test esi, esi
je 0x477f9d
mov ecx, ebx
call fcn.004c26a2
push eax
mov ecx, esi
call fcn.004c26bd
mov dword [esp + 0x150], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x477fc8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004cf0b8
mov esp, ebp
pop ebp
ret