Function at 0x40a810
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1094
call fcn.0040e930
mov eax, dword [0x42e430]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
mov dword [ebp - 0x104c], edi
mov dword [ebp - 0x103c], ebx
call fcn.0040cae0
mov eax, dword [0x430844]
add esp, 0xc
mov dword [ebp - 0x1040], 0x37
mov dword [ebp - 0x100c], 0xffffffff
mov dword [ebp - 0x1008], 0xffffffff
mov dword [ebp - 0x102c], 0xf4240
mov dword [ebp - 0x1028], 6
mov dword [ebp - 0x1024], 3
mov dword [ebp - 0x1020], 2
mov dword [ebp - 0x101c], 0x1e8480
mov dword [ebp - 0x1018], 0xd
mov dword [ebp - 0x1014], 6
mov dword [ebp - 0x1010], 6
sub eax, 2
je 0x40a909
push str.open___must_be_called_first
lea ecx, [ebp - 0x103c]
call fcn.004082e0
mov eax, dword [eax]
test eax, eax
je 0x40a8ef
mov eax, dword [eax]
jmp 0x40a8f1
xor eax, eax
lea ecx, [ebp - 0x103c]
mov dword [edi], eax
call fcn.00408410
mov dword [ebx], 1
jmp 0x40afbb
test esi, esi
jne 0x40a911
xor ecx, ecx
jmp 0x40a925
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a916
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, 0x431088
call fcn.00406fd0
mov dword [ebp - 0x1050], 0
call fcn.00404e10
mov ecx, eax
test ecx, ecx
je 0x40afd0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov ecx, 0x431088
mov dword [ebp - 0x1034], eax
lea eax, [ebp - 0x1050]
push eax
push 0x424fcc
lea eax, [ebp - 0x1048]
push eax
call fcn.004072d0
push eax
lea ecx, [ebp - 0x1034]
call fcn.00403160
mov edx, dword [ebp - 0x1048]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40a9a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1034]
lea esp, [esp]
mov ecx, 0x4232f8
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a9dd
test dx, dx
je 0x40a9d9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a9dd
add eax, 4
add ecx, 4
test dx, dx
jne 0x40a9b7
xor eax, eax
jmp 0x40a9e2
sbb eax, eax
or eax, 1
test eax, eax
je 0x40ae61
push 3
lea eax, [ebp - 0x1048]
push eax
lea ecx, [ebp - 0x1034]
call fcn.00409110
push 0x424fd0
push dword [eax]
call fcn.0040d8fc
mov edx, dword [ebp - 0x1048]
add esp, 8
test eax, eax
mov ecx, ebx
sete byte [ebp - 0x102d]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40aa35
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x102d], 0
lea ecx, [ebp - 0x1034]
je 0x40aaf4
push 4
lea eax, [ebp - 0x1064]
push eax
call fcn.00409360
lea ecx, [ebp - 0x1020]
push ecx
lea ecx, [ebp - 0x1024]
push ecx
lea ecx, [ebp - 0x1028]
push ecx
lea ecx, [ebp - 0x102c]
push ecx
push 0x424fd8
push dword [eax]
call fcn.0040f1aa
mov edx, dword [ebp - 0x1064]
add esp, 0x18
cmp eax, 1
mov ecx, ebx
setl byte [ebp - 0x102d]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40aaaa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x102d], 0
je 0x40ad51
push esi
push str.SYNTAX_ERROR_ON_device___s_
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.0040ca4d
add esp, 0x10
lea eax, [ebp - 0x804]
lea ecx, [ebp - 0x1038]
push eax
call fcn.004082e0
mov eax, dword [eax]
test eax, eax
je 0x40adf9
mov eax, dword [eax]
jmp 0x40adfb
push 3
lea eax, [ebp - 0x1054]
push eax
call fcn.00409110
push 0x424ff0
push dword [eax]
call fcn.0040d8fc
mov edx, dword [ebp - 0x1054]
add esp, 8
test eax, eax
mov ecx, ebx
sete byte [ebp - 0x102d]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ab39
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x102d], 0
lea ecx, [ebp - 0x1034]
je 0x40abbc
push 4
lea eax, [ebp - 0x105c]
push eax
call fcn.00409360
lea ecx, [ebp - 0x1010]
push ecx
lea ecx, [ebp - 0x1014]
push ecx
lea ecx, [ebp - 0x1018]
push ecx
lea ecx, [ebp - 0x101c]
push ecx
push 0x424fd8
push dword [eax]
call fcn.0040f1aa
mov edx, dword [ebp - 0x105c]
add esp, 0x18
cmp eax, 1
mov ecx, ebx
setl byte [ebp - 0x102d]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40abaa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x102d], 0
jne 0x40aab7
jmp 0x40ad51
push 6
lea eax, [ebp - 0x1060]
push eax
call fcn.00409110
push str.INDEX
push dword [eax]
call fcn.0040d8fc
mov edx, dword [ebp - 0x1060]
add esp, 8
test eax, eax
mov ecx, ebx
sete byte [ebp - 0x102d]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ac01
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x102d], 0
lea ecx, [ebp - 0x1034]
je 0x40ac6f
push 6
lea eax, [ebp - 0x1058]
push eax
call fcn.00409360
lea ecx, [ebp - 0x100c]
push ecx
push 0x425008
push dword [eax]
call fcn.0040f1aa
mov edx, dword [ebp - 0x1058]
add esp, 0xc
cmp eax, 1
mov ecx, ebx
setl byte [ebp - 0x102d]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ac5d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x102d], 0
jne 0x40aab7
jmp 0x40ad51
push 8
lea eax, [ebp - 0x1068]
push eax
call fcn.00409110
push str.CHANNEL
push dword [eax]
call fcn.0040d8fc
mov edx, dword [ebp - 0x1068]
add esp, 8
test eax, eax
mov ecx, ebx
sete byte [ebp - 0x102d]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40acb4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x102d], 0
je 0x40ad1f
push 8
lea eax, [ebp - 0x1044]
push eax
lea ecx, [ebp - 0x1034]
call fcn.00409360
lea ecx, [ebp - 0x1008]
push ecx
push 0x425008
push dword [eax]
call fcn.0040f1aa
mov edx, dword [ebp - 0x1044]
add esp, 0xc
cmp eax, 1
mov ecx, ebx
setl byte [ebp - 0x102d]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ad10
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x102d], 0
jne 0x40aab7
jmp 0x40ad51
xor edi, edi
mov eax, dword [edi*4 + 0x42e210]
test eax, eax
je 0x40ad3a
push eax
push esi
call fcn.0040d8fc
add esp, 8
test eax, eax
je 0x40ad42
inc edi
cmp edi, 0x7a
jb 0x40ad21
jmp 0x40ad48
mov dword [ebp - 0x1040], edi
cmp edi, 0x7a
je 0x40aab7
lea eax, [ebp - 0x1050]
mov ecx, 0x431088
push eax
push 0x424fcc
lea eax, [ebp - 0x1038]
push eax
call fcn.004072d0
lea edi, [esi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x40add1
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x40adbc
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x40adbc
push edx
call fcn.00404970
add esp, 4
mov dword [ebp - 0x1034], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x40adb1
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1034]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1034], esi
jmp 0x40add1
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x1034]
call fcn.00406fd0
mov esi, dword [ebp - 0x1034]
mov edx, dword [ebp - 0x1038]
mov ecx, ebx
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40a9b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40a9b0
xor eax, eax
mov ecx, dword [ebp - 0x104c]
mov edi, dword [ebp - 0x1038]
mov dword [ecx], eax
test edi, edi
je 0x40ae50
lea eax, [edi + 8]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
jne 0x40ae50
test edi, edi
je 0x40ae50
mov eax, dword [edi]
test eax, eax
je 0x40ae30
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x40ae47
push eax
call fcn.0040cc32
add esp, 4
mov dword [edi + 4], 0
push edi
call fcn.0040c8d6
add esp, 4
mov eax, dword [ebp - 0x103c]
mov dword [eax], 1
jmp 0x40afa4
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.setup___:_device
call edi
push dword [ebp - 0x1014]
lea eax, [ebp - 0x1004]
push dword [ebp - 0x1018]
push dword [ebp - 0x1010]
push dword [ebp - 0x101c]
push dword [ebp - 0x1024]
push dword [ebp - 0x1028]
push dword [ebp - 0x1020]
push dword [ebp - 0x102c]
push dword [ebp - 0x1008]
push dword [ebp - 0x100c]
push dword [ebp - 0x1040]
push str._HW_TYPE_02d_HW_INDEX_02d_HW_CHANNEL_02d_ABR_d:_d:_d:_d_DBR_d:_d:_d:_d
push 0x400
push eax
call fcn.0040ca4d
add esp, 0x38
lea eax, [ebp - 0x1004]
push eax
call edi
movdqu xmm0, xmmword [ebp - 0x102c]
mov eax, dword [ebp - 0x1040]
mov ecx, 0x434c50
mov dword [ebp - 0x1094], eax
mov eax, dword [ebp - 0x100c]
mov dword [ebp - 0x1090], eax
mov eax, dword [ebp - 0x1008]
movdqu xmmword [ebp - 0x1088], xmm0
mov dword [ebp - 0x108c], eax
lea eax, [ebp - 0x1094]
movdqu xmm0, xmmword [ebp - 0x101c]
push eax
movdqu xmmword [ebp - 0x1078], xmm0
call fcn.0040a730
push str.setup
lea ecx, [ebp - 0x1038]
call fcn.004082e0
mov eax, dword [eax]
test eax, eax
je 0x40af41
mov eax, dword [eax]
jmp 0x40af43
xor eax, eax
mov ecx, dword [ebp - 0x104c]
mov edi, dword [ebp - 0x1038]
mov dword [ecx], eax
test edi, edi
je 0x40af98
lea eax, [edi + 8]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
jne 0x40af98
test edi, edi
je 0x40af98
mov eax, dword [edi]
test eax, eax
je 0x40af78
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x40af8f
push eax
call fcn.0040cc32
add esp, 4
mov dword [edi + 4], 0
push edi
call fcn.0040c8d6
add esp, 4
mov eax, dword [ebp - 0x103c]
mov dword [eax], 0
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x40afbb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ca69
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00401300
int3