Function at 0x407770
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407b0f
push eax
mov dword fs:[0], esp
sub esp, 0x214
mov dword [ebp - 0x10], ecx
push ebx
cmp dword [ecx + 0x170], 0
push esi
push edi
je 0x4077b3
mov eax, 1
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
mov ecx, dword [ebp - 0x10]
call fcn.00433692
push 0
mov ecx, dword [ebp - 0x10]
call fcn.004076f0
push 0x34
call fcn.0041fc77
add esp, 4
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x4077e9
add esi, 0x140
mov ecx, eax
call fcn.00408f90
mov dword [esi], eax
jmp 0x4077f9
mov dword [esi + 0x140], 0
add esi, 0x140
mov ecx, dword [esi]
test ecx, ecx
jne 0x407803
xor eax, eax
jmp 0x4077a2
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x144]
push eax
push 0x5f08
push edx
call fcn.00409050
push str.CDAudio
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], eax
call fcn.004310c4
mov dword [ebp - 4], 0
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
push eax
mov ecx, dword [edx + 0x144]
push ecx
call fcn.004201c4
add esp, 8
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
cmp eax, 1
sbb dword [ebp - 0x1c], ecx
neg dword [ebp - 0x1c]
call fcn.00407b19
cmp dword [ebp - 0x1c], 0
je 0x407a5b
mov dword [ebp - 0x14], 0
push 0
call fcn.00410350
add esp, 4
test al, al
jne 0x407882
mov dword [ebp - 0x14], 0xfa
cmp dword [ebp - 0x14], 0
jne 0x407966
push 0
lea eax, [ebp - 0x8c]
push 0x20
push eax
push str.sysinfo_cdaudio_quantity_open
call dword [sym.imp.WINMM.dll_mciSendStringA]
test eax, eax
jne 0x4078da
lea eax, [ebp - 0x8c]
mov ecx, 0x456c64
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4078d1
or dl, dl
je 0x4078cd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4078d1
add eax, 2
add ecx, 2
or dl, dl
jne 0x4078b1
xor eax, eax
jmp 0x4078d6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4078e1
mov dword [ebp - 0x14], 0xfb
cmp dword [ebp - 0x14], 0
jne 0x407966
push str.status_media_present
mov edx, dword [ebp - 0x10]
push 0
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x465
mov eax, dword [edx + 0x140]
mov ecx, dword [eax + 0x1c]
push ecx
call esi
mov edi, eax
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x6c]
mov ecx, dword [edx + 0x140]
push eax
push 0x20
push 0x48a
mov eax, dword [ecx + 0x1c]
push eax
call esi
test edi, edi
jne 0x40795d
test eax, eax
jne 0x40795d
lea eax, [ebp - 0x6c]
mov ecx, str.true
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407954
or dl, dl
je 0x407950
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407954
add eax, 2
add ecx, 2
or dl, dl
jne 0x407934
xor eax, eax
jmp 0x407959
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40796c
mov dword [ebp - 0x14], 0xf9
jmp 0x40796c
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp - 0x14], 0
jne 0x407a35
push str.status_type_track_1
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x140]
push 0
push 0x465
mov ecx, dword [eax + 0x1c]
push ecx
call esi
mov edi, eax
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x140]
xor ebx, ebx
push 0x20
push 0x48a
mov ecx, dword [eax + 0x1c]
push ecx
call esi
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x120], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4079e4
cmp dword [ebp - 0x110], 2
jne 0x4079e4
cmp dword [ebp - 0x11c], 4
jae 0x4079e4
mov ebx, 1
test edi, edi
jne 0x407a28
cmp dword [ebp - 0x20], 0
jne 0x407a28
lea ecx, [ebp - 0x4c]
mov eax, str.1088
test ebx, ebx
jne 0x4079ff
mov eax, str.audio
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x407a1f
or dl, dl
je 0x407a1b
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x407a1f
add ecx, 2
add eax, 2
or dl, dl
jne 0x4079ff
xor eax, eax
jmp 0x407a24
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407a2f
mov dword [ebp - 0x14], 0xf9
cmp dword [ebp - 0x14], 0
je 0x407a61
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
push eax
add ecx, 0x134
call fcn.0043140e
mov edx, dword [ebp - 0x10]
xor eax, eax
mov dword [edx + 0x178], 0
jmp 0x4077a2
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 5
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x140]
push 0
push 0x806
mov ecx, dword [eax + 0x1c]
push ecx
call esi
mov edi, eax
test edi, edi
je 0x407ae2
lea eax, [ebp - 0x220]
mov edx, dword [ebp - 0x10]
push eax
push 0x100
push 0x480
mov ecx, dword [edx + 0x140]
mov eax, dword [ecx + 0x1c]
push eax
call esi
cmp eax, edi
jne 0x407adb
lea eax, [ebp - 0x220]
mov ecx, dword [ebp - 0x10]
push eax
add ecx, 0x134
call fcn.0043118b
mov edx, dword [ebp - 0x10]
xor eax, eax
mov dword [edx + 0x178], 0
jmp 0x4077a2
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 0
je 0x407afa
push 0x29a
mov ecx, dword [ebp - 0x10]
push 0x29a
call fcn.00407b40
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x180], 0
jmp 0x4077a2