Function at 0x43d490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c4
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
cmp byte [esi], 0
push edi
mov edi, dword [ebp + 0xc]
je 0x43d4d4
call fcn.0040dd50
test al, al
je 0x43d4c4
push 0x10
push 0
push esi
call fcn.004bbb06
add esp, 0xc
jmp 0x43d4cd
push esi
call fcn.004bb6b6
add esp, 4
lea esi, [eax - 1]
test esi, esi
jns 0x43d4d6
xor esi, esi
test edi, edi
je 0x43d545
mov eax, edi
mov dword [esp + 0x28], 0
call fcn.0040dd50
test al, al
je 0x43d508
push 0x10
push 0
push edi
call fcn.004bc27b
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
fild qword [esp + 0x24]
add esp, 0xc
jmp 0x43d511
push edi
call fcn.004bc37d
add esp, 4
fst qword [esp + 0x18]
fld qword [0x4e5968]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x43d52c
fstp st(1)
fstp qword [esp + 0x18]
jmp 0x43d552
fstp st(0)
fld qword [0x4e58c0]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x43d550
fstp qword [esp + 0x18]
jmp 0x43d552
mov eax, dword [0x4f0b10]
mov dword [esp + 0x28], eax
jmp 0x43d552
fstp st(0)
push 0
push 0
push 0
push esi
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.WINMM.dll_mixerOpen]
test eax, eax
je 0x43d5c2
push 0x4dde80
call fcn.0049be50
add esp, 4
cmp byte [eax], 0x30
jne 0x43d580
cmp byte [eax + 1], 0
je 0x43d58f
mov edx, dword [0x4ec48c]
test byte [edx + 0xe0], 1
jne 0x43d5aa
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4f13d8]
push eax
call fcn.004a5c20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x4d6959
push 0
push eax
mov ecx, ebx
call fcn.0042d070
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [esp + 0x10]
push 0x30
lea ecx, [esp + 0x1a4]
push ecx
push edx
call dword [sym.imp.WINMM.dll_mixerGetDevCapsA]
mov esi, dword [esp + 0x1cc]
test eax, eax
je 0x43d5e7
mov esi, 1
push 0xa4
lea eax, [esp + 0x68]
push 0
push eax
mov dword [esp + 0x30], esi
call fcn.004c16a0
add esp, 0xc
cmp dword [ebp + 0x14], 1
mov dword [esp + 0x60], 0xa8
jne 0x43d659
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
push 3
lea edx, [esp + 0x64]
push edx
push eax
mov dword [esp + 0x84], ecx
call dword [sym.imp.WINMM.dll_mixerGetLineInfoA]
test eax, eax
je 0x43d74c
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.WINMM.dll_mixerClose]
push 0x4ddea4
call fcn.0049be50
add esp, 4
push eax
push ebx
call fcn.0042d190
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
xor edi, edi
xor bl, bl
mov byte [esp + 0xf], bl
mov dword [esp + 0x2c], edi
cmp esi, edi
jle 0x43d6f9
test bl, bl
jne 0x43d74c
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x64]
push edx
push eax
mov dword [esp + 0x70], edi
call dword [sym.imp.WINMM.dll_mixerGetLineInfoA]
test eax, eax
jne 0x43d6ea
mov eax, dword [esp + 0x80]
xor esi, esi
mov ebx, eax
test eax, eax
jle 0x43d6e6
mov edi, edi
cmp byte [esp + 0xf], 0
jne 0x43d6e6
mov edx, dword [esp + 0x10]
push 1
lea ecx, [esp + 0x64]
push ecx
push edx
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], esi
call dword [sym.imp.WINMM.dll_mixerGetLineInfoA]
test eax, eax
jne 0x43d6e1
mov eax, dword [ebp + 0x10]
cmp dword [esp + 0x78], eax
jne 0x43d6e1
mov eax, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [ebp + 0x14]
jne 0x43d6e1
mov byte [esp + 0xf], 1
inc esi
cmp esi, ebx
jl 0x43d6a0
mov bl, byte [esp + 0xf]
inc edi
cmp edi, dword [esp + 0x24]
jl 0x43d66d
test bl, bl
jne 0x43d74c
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.WINMM.dll_mixerClose]
push 0x4dded8
call fcn.0049be50
add esp, 4
cmp byte [eax], 0x30
jne 0x43d720
cmp byte [eax + 1], 0
je 0x43d58f
mov edx, dword [0x4ec48c]
test byte [edx + 0xe0], 1
je 0x43d58f
mov ecx, dword [ebp + 8]
push 0x4d6959
push 0
push eax
call fcn.0042d070
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [esp + 0x6c]
mov ebx, dword [ebp + 0x18]
lea ecx, [esp + 0x108]
push 2
lea eax, [esp + 0x4c]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x14]
push eax
mov esi, 0x18
mov edi, 1
push ecx
mov dword [esp + 0x54], esi
mov dword [esp + 0x64], 0x94
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], edi
call dword [sym.imp.WINMM.dll_mixerGetLineControlsA]
test eax, eax
je 0x43d7e7
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.WINMM.dll_mixerClose]
push 0x4ddf14
call fcn.0049be50
add esp, 4
cmp byte [eax], 0x30
jne 0x43d7b9
cmp byte [eax + 1], 0
je 0x43d7cc
mov ecx, dword [0x4ec48c]
test byte [ecx + 0xe0], 1
jne 0x43d733
mov edx, dword [0x4f13d8]
push edi
push 0
push 0xffffffffffffffff
push eax
push edx
call fcn.004a5c20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x43d813
mov al, byte [ecx]
cmp al, 0x2d
je 0x43d80c
cmp al, 0x2b
je 0x43d80c
mov eax, dword [ebp + 8]
cmp byte [eax + 2], 0
jbe 0x43d813
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 4]
cmp byte [eax], 0x2b
jne 0x43d813
mov byte [esp + 0xf], 1
jmp 0x43d818
mov byte [esp + 0xf], 0
mov edx, dword [esp + 0x10c]
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], 4
test ecx, ecx
je 0x43d85c
cmp byte [esp + 0xf], 0
je 0x43d89d
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.WINMM.dll_mixerGetControlDetailsA]
test eax, eax
je 0x43d89d
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.WINMM.dll_mixerClose]
push 0x4ddf48
call fcn.0049be50
mov ecx, dword [ebp + 8]
add esp, 4
push eax
push ecx
call fcn.0042d190
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp ebx, 0x20010001
jb 0x43d8b9
cmp ebx, 0x20010005
jbe 0x43d8b5
cmp ebx, 0x20012277
jne 0x43d8b9
mov bl, 1
jmp 0x43d8bb
xor bl, bl
cmp dword [ebp + 0xc], 0
je 0x43d9f0
test bl, bl
je 0x43d952
cmp byte [esp + 0xf], 0
je 0x43d8ee
mov eax, dword [esp + 0x16c]
cmp dword [esp + 0x14], eax
ja 0x43d902
mov edx, dword [esp + 0x170]
mov dword [esp + 0x14], edx
jmp 0x43d906
fldz
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 5
jp 0x43d945
mov eax, dword [esp + 0x170]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.WINMM.dll_mixerSetControlDetails]
mov edx, dword [esp + 0x10]
push edx
mov esi, eax
call dword [sym.imp.WINMM.dll_mixerClose]
test esi, esi
jne 0x43d9d0
mov eax, 0x4d69c8
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0042d190
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esp + 0x16c]
mov dword [esp + 0x14], ecx
jmp 0x43d906
mov ebx, dword [esp + 0x170]
mov edi, dword [esp + 0x16c]
mov edx, ebx
sub edx, edi
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
jns 0x43d974
fadd qword [0x4e5890]
fld qword [esp + 0x18]
fdiv qword [0x4e58c0]
fmulp st(1)
call fcn.004c9236
cmp byte [esp + 0xf], 0
je 0x43d902
mov ecx, dword [esp + 0x14]
xor esi, esi
add ecx, eax
adc esi, edx
xor eax, eax
cmp esi, eax
jg 0x43d9b5
jl 0x43d9a6
cmp ecx, edi
jae 0x43d9b5
mov ecx, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
jmp 0x43d906
xor eax, eax
cmp esi, eax
jl 0x43d9c7
jg 0x43d9c1
cmp ecx, ebx
jbe 0x43d9c7
mov ecx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
jmp 0x43d906
push 0x4ddf6c
call fcn.0049be50
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0042d190
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.WINMM.dll_mixerClose]
mov edx, dword [0x4f13d8]
push 1
push 0
push 0xffffffffffffffff
push 0x4d69c8
push edx
call fcn.004a5c20
test bl, bl
je 0x43da41
cmp dword [esp + 0x14], 0
mov eax, 0x4d921c
jne 0x43da27
mov eax, 0x4d9224
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x38]
push eax
call fcn.004a5c20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x16c]
sub ecx, eax
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
jns 0x43da5e
fadd qword [0x4e5890]
mov edx, dword [esp + 0x170]
fmul qword [0x4e58c0]
sub edx, eax
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
jns 0x43da7d
fadd qword [0x4e5890]
fdivp st(1)
push 0x28
fstp qword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x30]
push ecx
call fcn.00401570
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14