Function at 0x40575b
Capabilities:
Print debug messages

Disassembly:
push 0xa0
mov eax, 0x54e8ac
call fcn.00534de0
mov edi, dword [ebp + 8]
push str.20BFE8DD_B7BB_4E04_A29D_D39CD7F914C4
lea ecx, [ebp - 0x60]
call fcn.0040301a
and dword [ebp - 4], 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x60]
call fcn.004082df
mov esi, eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004082df
push esi
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.004090f5
test eax, eax
mov byte [ebp - 4], 1
mov esi, vtable.MA::StringT_wchar_t__char_.0
lea ecx, [ebp - 0x48]
setns bl
mov dword [ebp - 0x4c], esi
call fcn.00402ee1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], esi
call fcn.00402ee1
test bl, bl
je 0x405abf
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x54]
mov ecx, edi
call fcn.00408dd0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x24], 0x4030201
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0xadfbcade
mov dword [esp], str.SoftwareinMusicAudioDrivers
call fcn.0040301a
mov ebx, 0x56f088
push ebx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.0040301a
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.004015e4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], esi
call fcn.00402ee1
push str.20BFE8DD_B7BB_4E04_A29D_D39CD7F914C4
lea ecx, [ebp - 0x44]
call fcn.0040301a
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.004015e4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], esi
call fcn.00402ee1
push ebx
lea ecx, [ebp - 0x44]
call fcn.0040301a
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
call fcn.004015e4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], esi
call fcn.00402ee1
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x3c]
call fcn.00409154
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 0x10
jb 0x4058aa
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x44]
call fcn.004091d4
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 8
call fcn.004015e4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], esi
call fcn.00402ee1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.00402ccf
push ebx
lea ecx, [ebp - 0x44]
call fcn.0040301a
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 9
call fcn.004015e4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], esi
call fcn.00402ee1
push str.Instances
lea ecx, [ebp - 0x44]
call fcn.0040301a
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xa
call fcn.004015e4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], esi
call fcn.00402ee1
push 0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
push 2
push eax
call fcn.00409a9a
add esp, 4
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xb
call fcn.004070da
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x50]
push eax
call fcn.00414110
lea ecx, [ebp - 0xac]
call fcn.00409868
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x7c]
mov eax, dword [eax + 4]
add ecx, eax
xor esi, esi
mov eax, dword [ecx]
call dword [eax]
shr eax, 2
test eax, eax
jle 0x405a55
push str.LastPath
lea ecx, [ebp - 0x44]
call fcn.0040301a
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x88]
call dword [eax + 0x64]
lea ecx, [ebp - 0xac]
push ecx
lea eax, [eax + esi*4]
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [eax]
call fcn.00413760
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], vtable.MA::StringT_wchar_t__char_.0
call fcn.00402ee1
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xac]
call fcn.00415850
push 0
push edi
mov ecx, eax
mov byte [ebp - 4], 0xf
call fcn.00408ce7
mov ebx, eax
neg ebx
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x54]
sbb bl, bl
mov dword [ebp - 0x58], vtable.MA::StringT_wchar_t__char_.0
call fcn.00402ee1
inc bl
jne 0x405a32
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x7c]
mov eax, dword [eax + 4]
add ecx, eax
inc esi
mov eax, dword [ecx]
call dword [eax]
shr eax, 2
cmp esi, eax
jl 0x405993
jmp 0x405a55
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x88]
call dword [eax + 0x64]
lea eax, [eax + esi*4]
push ecx
mov eax, dword [eax]
mov ecx, esp
mov dword [ecx], eax
call fcn.00409a10
call fcn.00405ec6
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x7c]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax]
shr eax, 2
cmp esi, eax
jne 0x405a76
push str.Device_Removal_Error___DevicePath_not_Found___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 0xc
call fcn.00409385
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xb
call fcn.00407133
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x405aab
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0xc]
mov byte [ebp - 4], 0
mov esi, vtable.MA::StringT_wchar_t__char_.0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x4c], esi
call fcn.00402ee1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x60], esi
call fcn.00402ee1
call fcn.00534d8f
ret 4