Function at 0x477000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54cffb
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x5b3720]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
mov eax, dword [0x5b3720]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x80], 0
je 0x47722c
cmp dword [ebx + 0x84], 0
je 0x47722c
cmp dword [ebx + 0x8c], 0
mov dword [ebx + 0x7c], 1
je 0x477077
lea eax, [ebx + 0x88]
call fcn.00402420
fld1
fcom qword [0x5b65b0]
fnstsw ax
test ah, 0x44
jp 0x4770a1
fcomp qword [0x5b65b8]
fnstsw ax
test ah, 0x44
jp 0x4770a3
call fcn.00506c00
push 0
push 0x1d3
jmp 0x4770af
fstp st(0)
call fcn.00506c00
push 0
push 0x1d6
mov eax, dword [eax + 8]
lea edi, [ebx + 0x88]
push edi
call fcn.004616a0
push edi
push 0x1ac
lea esi, [ebx + 0x234]
call fcn.004b0830
push edi
push 0x1af
lea esi, [ebx + 0x2d0]
call fcn.004b0830
lea edi, [ebx + 0x42c]
push 0x190
push 0xd
mov esi, edi
call fcn.004252c0
push 0x2bc
lea esi, [ebx + 0x434]
push 0xd
call fcn.004252c0
add esp, 0x10
test edi, edi
je 0x477110
mov edi, dword [edi + 4]
mov eax, dword [ebx + 0x390]
push 1
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x30
push eax
call edi
lea esi, [ebx + 0x370]
mov eax, 0x5a5a5a
call fcn.00421f80
lea eax, [ebx + 0x434]
test eax, eax
je 0x477141
mov eax, dword [eax + 4]
mov ecx, dword [ebx + 0x3f8]
push 1
push eax
push 0x30
push ecx
call edi
call fcn.005081a0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x477169
push 0x80004005
call fcn.004021d0
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]
jmp 0x4771a0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4771a0
sub eax, edx
push eax
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x18]
call fcn.00475600
push 0x10
push str.MaxxAudioEQ.dll
lea eax, [esp + 0x18]
push eax
call fcn.00475700
cmp dword [0x5bf090], 0
jne 0x477233
call fcn.004759d0
test eax, eax
je 0x4771f6
mov eax, dword [0x5bf04c]
test eax, eax
je 0x4771f6
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0
call eax
add esp, 0xc
jmp 0x4771f8
xor eax, eax
test eax, eax
mov dword [0x5bf090], eax
jne 0x477233
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 0x47722c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4773de
push 0x558
mov ecx, ebx
call fcn.00505278
test eax, eax
je 0x47725e
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.0050743c
fld1
xor eax, eax
fld st(0)
mov dword [esp + 0x24], eax
fld qword [0x5b65b0]
xor ecx, ecx
fucom st(1)
mov edx, 0x1b6
mov esi, 0xf7
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], esi
fnstsw ax
fstp st(1)
test ah, 0x44
jp 0x4772b3
fxch st(1)
fcomp qword [0x5b65b8]
fnstsw ax
test ah, 0x44
jp 0x4772b5
mov ecx, dword [esp + 0x18]
fstp st(0)
mov edx, dword [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x2c]
push eax
jmp 0x4772f1
fstp st(1)
fmul qword [0x58c150]
call fcn.005296d0
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
sub ecx, eax
mov eax, dword [esp + 0x20]
sub eax, edi
sub eax, 0xf7
cdq
sub eax, edx
mov esi, eax
sar esi, 1
xor eax, eax
test esi, esi
setle al
sub eax, 1
and eax, esi
add edi, eax
push edi
push ecx
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebx + 0x20]
push ebx
push 0x477610
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [0x5bf090]
push eax
call fcn.00475c40
mov ecx, dword [0x5bf090]
mov edi, dword [ebx + 0x1c4]
add esp, 0x14
push ecx
mov dword [ebx + 0x1c0], 1
call fcn.00476b80
mov edx, dword [ebx + 0x84]
mov dword [ebx + 0xc0], ebx
mov esi, dword [edx + 0x14]
lea ecx, [ebx + 0xbc]
call fcn.004a7300
lea esi, [ebx + 0xdc]
push 0x568e20
mov ecx, esi
call fcn.00506e4a
push 0x568678
mov ecx, esi
call fcn.00506e4a
push 0x568c40
mov ecx, esi
call fcn.00506e4a
push 0x568c54
mov ecx, esi
call fcn.00506e4a
push 0x568650
mov ecx, esi
call fcn.00506e4a
push 0x569014
mov ecx, esi
call fcn.00506e4a
push ebx
mov ecx, 0x568c40
call fcn.004c4090
push ebx
mov ecx, 0x568c54
call fcn.004c4090
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 0x4773d9
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.00524c67
mov esp, ebp
pop ebp
ret