Function at 0x475eb0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4f4fe6
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x536ed4]
xor eax, esp
mov dword [esp + 0x1f0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x536ed4]
xor eax, esp
push eax
lea eax, [esp + 0x208]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x218]
cmp dword [ebp + 0x6c], 0
mov esi, ecx
mov dword [esp + 0x20], esi
je 0x475fdb
cmp dword [ebp + 0x10], 0
je 0x475fdb
push esi
call fcn.004bea1f
mov edi, eax
test edi, edi
mov dword [esp + 0x1c], edi
je 0x475fdb
mov ebx, dword [esp + 0x21c]
mov eax, dword [ebp + ebx*4 + 0xd0]
test eax, eax
jne 0x4760c5
mov dword [ebp + ebx*4 + 0xd0], esi
lea esi, [esp + 0x18]
call fcn.00474a10
push 0x82
lea eax, [esp + 0x100]
push eax
mov dword [esp + 0x218], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0xfc]
mov edi, esi
call fcn.00474b00
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x20]
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [ebp + 0xb8], 0
je 0x475f95
mov edx, str.MaxxAudioRealtek4.dll
jmp 0x475fa8
cmp dword [ebp + 0xb4], 0
mov edx, str.MaxxAudioRealtek3.dll
jne 0x475fa8
mov edx, str.MaxxAudioRealtek2.dll
lea edi, [esp + 0x18]
call fcn.004767b0
lea eax, [ebx + 0x30]
mov ebx, dword [esp + 0x18]
lea edx, [ebp + eax*4]
add edx, eax
mov ecx, ebp
call fcn.004746a0
test eax, eax
mov esi, dword [esp + 0x21c]
mov dword [ebp + esi*4 + 0x70], eax
jne 0x475fe2
mov ecx, edi
call fcn.00401fb0
xor eax, eax
jmp 0x47623a
push 0xc8
lea ecx, [esp + 0x38]
push 0
push ecx
call fcn.004d1c40
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x90]
add esp, 0xc
push 0
push 0
push 0xc7
lea ecx, [esp + 0x40]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x34]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x476021
mov ecx, dword [ebp + esi*4 + 0x70]
sub eax, edx
mov edx, dword [0x54ae5c]
test edx, edx
je 0x47604b
add eax, 1
push eax
lea eax, [esp + 0x38]
push eax
push 1
push ecx
call edx
add esp, 0x10
mov ecx, dword [ebp + 0x84]
lea edx, [ecx + esi + 0x3e7]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [ebp + esi*4 + 0x70]
lea eax, [esp + 0x28]
push eax
push ecx
push edx
xor ecx, ecx
xor edx, edx
call fcn.00404700
mov eax, dword [ebp + 0x84]
mov ebx, dword [esp + 0x2c]
lea ecx, [eax + esi + 0x3e7]
add esp, 0x10
push ecx
mov ecx, ebx
call fcn.004c24e6
mov edi, eax
test edi, edi
je 0x4760a9
mov ecx, ebx
call fcn.004c26a2
push eax
mov ecx, edi
call fcn.004c26bd
mov dword [ebp + esi*4 + 0xe0], edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x210], 0xffffffff
call fcn.00401fb0
mov edi, dword [esp + 0x1c]
mov ebx, esi
jmp 0x4760e6
cmp eax, esi
je 0x4760e6
mov eax, dword [ebp + ebx*4 + 0xe0]
test eax, eax
je 0x4760d7
mov eax, dword [eax + 0x20]
push esi
push eax
call dword [sym.imp.USER32.dll_SetParent]
mov dword [ebp + ebx*4 + 0xd0], esi
mov edx, dword [edi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetWindow]
push 5
push edx
xor esi, esi
call edi
push eax
call fcn.004be9f8
test eax, eax
je 0x476115
mov eax, dword [eax + 0x20]
push 2
push eax
add esi, 1
call edi
push eax
call fcn.004be9f8
test eax, eax
jne 0x476100
mov edx, dword [ebp + 0x6c]
mov ecx, 1
cmp ecx, esi
sbb eax, eax
neg eax
test byte [edx + 0x500], 0x40
je 0x476235
test eax, eax
je 0x476235
lea ecx, [esp + 0x18]
call fcn.00469270
mov dword [esp + 0x210], 1
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xb8]
xor ecx, ecx
test eax, eax
sete cl
push 1
lea esi, [esp + 0x1c]
push ecx
call fcn.00451970
add esp, 8
test eax, eax
je 0x47619e
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp + 0x10]
push edx
add ecx, 0x90
call fcn.004047b0
test eax, eax
jne 0x47619e
mov ecx, dword [0x54ae6c]
test ecx, ecx
mov eax, dword [ebp + ebx*4 + 0x70]
je 0x47619e
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
call ecx
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x20]
push 5
push ecx
call edi
push eax
call fcn.004be9f8
mov esi, eax
test esi, esi
je 0x47620a
mov ecx, esi
call fcn.004c2605
mov edx, dword [ebp + 0x84]
lea ecx, [edx + ebx + 0x3e7]
xor edx, edx
cmp eax, ecx
sete dl
mov ecx, esi
mov eax, edx
neg eax
sbb eax, eax
and eax, 0xffffffc0
add eax, 0x80
or eax, 0x207
push eax
push 0
push 0
push 0
push 0
push 0
call fcn.004c26ff
mov eax, dword [esi + 0x20]
push 2
push eax
call edi
push eax
call fcn.004be9f8
mov esi, eax
test esi, esi
jne 0x4761b6
mov dword [esp + 0x210], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x476235
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x208]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1f0]
xor ecx, esp
call fcn.004cf0b8
add esp, 0x200
ret 8