Function at 0x43ea20
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf4
mov eax, dword [0x536ed4]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x25c]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x10], edi
jne 0x43ea66
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.004cf0b8
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x4c], ebx
je 0x43ea4f
cmp dword [edi + 0x250], ebx
mov dword [edi + 0x260], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x43ea4f
push 0x68
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.004d1c40
add esp, 0xc
push 0x54
push ebx
push esi
call fcn.004d1c40
add esp, 0xc
xor esi, esi
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], eax
lea esp, [esp]
mov ecx, dword [edi + 0x25c]
mov edx, dword [ebx + 0x538bf8]
mov dword [eax + ecx], edx
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 0x539dfc
jmp 0x43ead0
cmp dword [0x54af3c], esi
jne 0x43eaed
push 0x54af38
mov dword [0x54af38], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x54af3c], 6
jne 0x43eb03
cmp dword [0x54af40], esi
mov eax, 0x18
je 0x43eb08
mov eax, 0x1f
cmp dword [esp + 0x14], eax
jge 0x43ed93
mov eax, dword [edi + 0x4c]
test dword [eax + 0x1e4], 0x8000000
jne 0x43eb2f
mov ecx, dword [esp + 0xc]
cmp word [ecx], 0x20
je 0x43ed82
push 0x68
lea edx, [esp + 0x2c]
push esi
push edx
call fcn.004d1c40
mov eax, dword [0x50c998]
mov ecx, dword [0x50c99c]
mov edx, dword [0x50c9a0]
mov edi, dword [0x50c9ac]
mov dword [esp + 0x44], eax
mov eax, dword [0x50c9a4]
mov dword [esp + 0x48], ecx
mov ecx, dword [0x50c9b0]
mov dword [esp + 0x50], eax
mov eax, dword [0x50c9b8]
mov dword [esp + 0x5c], ecx
mov ecx, dword [0x50c9bc]
mov dword [esp + 0x4c], edx
mov edx, dword [0x50c9b4]
mov dword [esp + 0x64], eax
mov eax, dword [0x50c9c4]
mov dword [esp + 0x68], ecx
mov cx, word [ebx + 0x538bfc]
mov dword [esp + 0x60], edx
mov edx, dword [0x50c9c0]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x18]
mov word [esp + 0x76], cx
movzx ecx, word [eax]
mov dword [esp + 0x6c], edx
mov edx, dword [eax - 4]
mov ax, cx
mov dword [esp + 0x78], edx
mov word [esp + 0x82], ax
mov edx, dword [esp + 0x82]
mov dword [esp + 0x3c], esi
mov esi, dword [0x50c9a8]
add edx, 0xffffffef
add esp, 0xc
cmp dx, 0xf
mov dword [esp + 0x28], 0x52
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], edi
mov word [esp + 0x68], 0xfffe
ja 0x43ec04
mov ax, 0x20
mov word [esp + 0x76], ax
movzx edx, word [esp + 0x6a]
movzx eax, ax
imul eax, edx
cdq
and edx, 7
add eax, edx
mov edx, dword [0x50c9b0]
sar eax, 3
mov word [esp + 0x74], ax
movzx eax, ax
imul eax, dword [esp + 0x6c]
mov word [esp + 0x7a], cx
mov ecx, dword [ebx + 0x538c00]
mov dword [esp + 0x70], eax
mov eax, dword [0x50c9b4]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x8c], eax
mov eax, dword [ecx + 0x250]
lea ecx, [esp + 0x1c]
push ecx
push 0x68
mov dword [esp + 0x90], edx
lea ecx, [esp + 0x30]
mov word [esp + 0x80], 0x16
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x24], 0
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push ecx
push eax
call edx
mov ax, word [esp + 0x76]
cmp ax, 0x10
mov ecx, 0x1a
lea esi, [esp + 0x28]
lea edi, [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
jbe 0x43ecbc
cmp ax, 0x20
ja 0x43ecbc
mov word [esp + 0xde], 0x18
movzx ecx, word [esp + 0xde]
movzx eax, word [esp + 0xd2]
imul eax, ecx
cdq
mov esi, dword [esp + 0x10]
and edx, 7
add eax, edx
sar eax, 3
movzx edx, ax
imul edx, dword [esp + 0xd4]
mov dword [esp + 0xd8], edx
lea edx, [esp + 0x20]
push edx
mov word [esp + 0xe0], ax
mov eax, dword [esi + 0x250]
push 0x68
lea edx, [esp + 0x98]
mov dword [esp + 0x28], 0
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp dword [esp + 0x1c], 0
jne 0x43ed29
cmp dword [esp + 0x20], 0
je 0x43ed80
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx - 0xc]
add edx, dword [esp + 0x18]
mov eax, dword [esi + 0x25c]
mov ecx, dword [ecx - 8]
or dword [eax + edx*4 + 4], ecx
movzx ecx, word [esp + 0x76]
lea eax, [eax + edx*4 + 4]
movzx eax, word [esp + 0x6a]
mov edx, dword [ebx + 0x538bf8]
or dword [esi + 0x260], edx
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [ebx + 0x538c08]
push ecx
push edx
push eax
push 0x22e
push str.CAudioDevice::CheckDataFormat
push str._s__d__s_is_supported__SampleRate___d_Bits___d_Channels___d_
call fcn.004012f0
add esp, 0x1c
mov edi, esi
add dword [esp + 0x14], 1
add dword [esp + 0xc], 0x18
xor esi, esi
jmp 0x43ead0
mov eax, dword [esp + 0x24]
add dword [esp + 0x18], 3
add eax, 0xc
add ebx, 0x14
cmp eax, 0x54
mov dword [esp + 0x24], eax
jl 0x43eab0
test byte [edi + 0x260], 0x20
je 0x43edc6
mov eax, dword [edi + 0x4c]
cmp eax, esi
je 0x43edc6
or dword [eax + 0x18], 0x200
cmp dword [edi + 0x260], esi
jne 0x43eddb
cmp dword [edi + 0x10c], 9
je 0x43ea4f
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004cf0b8
mov esp, ebp
pop ebp
ret