Function at 0x10025910
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006f920
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100f38c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [0x100e8014]
mov dword [ebp - 0x10], ecx
cmp dword [esi + 0x5c], 1
mov dword [ebp - 4], 0
jne 0x1002596d
cmp dword [esi + 0x68], 0
jne 0x1002596d
lea eax, [ecx - 0xc]
cmp eax, dword [0x100e8010]
je 0x10026067
lea esi, [ecx - 0xc]
jmp 0x10026053
mov ecx, esi
mov dword [ebp - 0x14], 2
call fcn.10024330
jmp 0x10025983
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x10025a5d
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.10024330
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push str.CxHDAudioDeviceControl::FindDevice__:_Retry__d
push edx
mov dword [ebp - 0x18], eax
call fcn.10023d90
mov ebx, dword [ebp - 0x10]
add esp, 8
cmp dword [ebx - 0xc], 0
lea eax, [ebx - 0xc]
mov dword [ebp - 0x1c], esp
mov edi, esp
jl 0x100259d1
push eax
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x100259e8
mov eax, dword [0x100e8014]
push ebx
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
push eax
mov ecx, edi
call fcn.100014f0
mov byte [ebp - 4], 1
call fcn.10021dd0
mov ecx, eax
mov byte [ebp - 4], 0
call fcn.10021e00
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
test eax, eax
jg 0x10025980
cmp dword [ebp - 0x18], 0
jne 0x10025a5d
push str.CxHDAudioDeviceControl::FindDevice__:_Sorry_device_not_found
call fcn.10021dd0
mov ecx, eax
call fcn.100267a0
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x100e8010]
je 0x10025a47
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10025a47
push esi
call fcn.10055c11
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
or edx, 0xffffffff
cmp dx, word [ebp + 8]
jne 0x10026042
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
call edi
push 0
push 0
lea ebx, [esi + 0x54]
mov dword [ebx], eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x58]
push 0
push 0
mov dword [esi + 0x14], eax
call edi
push 0
push 0
push 0
push 0
mov dword [esi + 0x70], eax
mov dword [esi + 0x18], eax
call edi
xor edi, edi
cmp dword [esi + 0x5c], 1
mov dword [esi + 0x74], eax
mov dword [esi + 0x1c], eax
mov dword [ebp + 8], edi
jne 0x10025abc
cmp dword [esi + 0x68], edi
je 0x10025c00
cmp dword [esi + 0x68], edi
jne 0x10025c00
mov ecx, dword [0x100e8014]
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push str.CxHDAudioDeviceControl::DeviceIoControl__
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.CxHDAudioDeviceControl::DeviceIoControl__
push eax
lea ecx, [ebp - 0x20]
call fcn.100014f0
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
je 0x10025bd7
push edi
lea ecx, [ebp + 8]
push ecx
push edi
push edi
push 4
push ebx
push 0x22045c
push eax
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, edi
jne 0x10025bd7
mov dword [esi + 8], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push edi
lea edx, [ebp - 0x14]
push edx
push 0x400
push eax
push edi
push 0x1300
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [0x100e8014]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [esi + 4]
push ecx
push edx
lea eax, [ebp - 0x18]
push str.DeviceIoControl_failed_with_error__d:__s
push eax
mov byte [ebp - 4], 4
call fcn.10023d90
mov ebx, dword [ebp - 0x18]
add esp, 0x10
push ebx
lea ecx, [esi + 0x28]
call fcn.10017c80
mov edi, dword [esi + 0x28]
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edi
call fcn.100016b0
mov byte [ebp - 4], 5
call fcn.10021dd0
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.10021e00
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea edx, [ebx - 0xc]
cmp edx, dword [0x100e8010]
je 0x10025bc9
lea edi, [ebx - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10025bc9
push edi
call fcn.10055c11
add esp, 4
mov eax, dword [ebp - 0x20]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x100e8010]
jmp 0x10025be3
mov eax, dword [ebp - 0x20]
lea edx, [eax - 0xc]
cmp edx, dword [0x100e8010]
mov byte [ebp - 4], 0
je 0x10025c00
lea edi, [eax - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10025c00
push edi
call fcn.10055c11
add esp, 4
mov edi, 1
cmp dword [esi + 0x5c], edi
jne 0x10025c14
cmp dword [esi + 0x68], 0
je 0x10025d60
cmp dword [esi + 0x68], 0
jne 0x10025d60
mov eax, dword [0x100e8014]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push str.CxHDAudioDeviceControl::DeviceIoControl__
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.CxHDAudioDeviceControl::DeviceIoControl__
push eax
lea ecx, [ebp - 0x20]
call fcn.100014f0
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
je 0x10025d37
push 0
lea edx, [ebp + 8]
push edx
push 0
push 0
push 0
push 0
push 0x220463
push eax
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10025d37
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0x400
push eax
push 0
push 0x1300
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edx, dword [0x100e8014]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
push eax
push ecx
lea edx, [ebp - 0x18]
push str.DeviceIoControl_failed_with_error__d:__s
push edx
mov byte [ebp - 4], 8
call fcn.10023d90
mov ebx, dword [ebp - 0x18]
add esp, 0x10
push ebx
lea ecx, [esi + 0x28]
call fcn.10017c80
mov edi, dword [esi + 0x28]
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edi
call fcn.100016b0
mov byte [ebp - 4], 9
call fcn.10021dd0
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.10021e00
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebx - 0xc]
cmp ecx, dword [0x100e8010]
je 0x10025d29
add ebx, 0xfffffff4
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10025d29
push ebx
call fcn.10055c11
add esp, 4
mov eax, dword [ebp - 0x20]
lea edx, [eax - 0xc]
cmp edx, dword [0x100e8010]
jmp 0x10025d43
mov eax, dword [ebp - 0x20]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x100e8010]
mov byte [ebp - 4], 0
je 0x10025d60
lea edi, [eax - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10025d60
push edi
call fcn.10055c11
add esp, 4
mov edi, 1
cmp dword [esi + 0x5c], edi
jne 0x10025d74
cmp dword [esi + 0x68], 0
je 0x10025ec3
cmp dword [esi + 0x68], 0
jne 0x10025ec3
mov edx, dword [0x100e8014]
mov dword [ebp - 0x20], edx
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push str.CxHDAudioDeviceControl::DeviceIoControl__
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.CxHDAudioDeviceControl::DeviceIoControl__
push eax
lea ecx, [ebp - 0x20]
call fcn.100014f0
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
je 0x10025e9a
push 0
lea edx, [ebp + 8]
push edx
push 0
push 0
push 4
lea ecx, [esi + 0x70]
push ecx
push 0x2206a8
push eax
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10025e9a
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0x400
push eax
push 0
push 0x1300
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edx, dword [0x100e8014]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
push eax
push ecx
lea edx, [ebp - 0x18]
push str.DeviceIoControl_failed_with_error__d:__s
push edx
mov byte [ebp - 4], 0xc
call fcn.10023d90
mov ebx, dword [ebp - 0x18]
add esp, 0x10
push ebx
lea ecx, [esi + 0x28]
call fcn.10017c80
mov edi, dword [esi + 0x28]
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edi
call fcn.100016b0
mov byte [ebp - 4], 0xd
call fcn.10021dd0
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.10021e00
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebx - 0xc]
cmp ecx, dword [0x100e8010]
je 0x10025e8c
add ebx, 0xfffffff4
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10025e8c
push ebx
call fcn.10055c11
add esp, 4
mov eax, dword [ebp - 0x20]
lea edx, [eax - 0xc]
cmp edx, dword [0x100e8010]
jmp 0x10025ea6
mov eax, dword [ebp - 0x20]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x100e8010]
mov byte [ebp - 4], 0
je 0x10025ec3
lea edi, [eax - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10025ec3
push edi
call fcn.10055c11
add esp, 4
mov edi, 1
cmp dword [esi + 0x5c], edi
jne 0x10025ed7
cmp dword [esi + 0x68], 0
je 0x10026026
cmp dword [esi + 0x68], 0
jne 0x10026026
mov edx, dword [0x100e8014]
mov dword [ebp - 0x20], edx
mov byte [ebp - 4], 0xe
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push str.CxHDAudioDeviceControl::DeviceIoControl__
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.CxHDAudioDeviceControl::DeviceIoControl__
push eax
lea ecx, [ebp - 0x20]
call fcn.100014f0
mov eax, dword [esi + 0x40]
mov byte [ebp - 4], 0xf
cmp eax, 0xffffffff
je 0x10026001
push 0
lea edx, [ebp + 8]
push edx
push 0
push 0
push 4
lea ecx, [esi + 0x74]
push ecx
push 0x22071c
push eax
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10026001
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0x400
push eax
push 0
push 0x1300
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edx, dword [0x100e8014]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
push eax
push ecx
lea edx, [ebp - 0x18]
push str.DeviceIoControl_failed_with_error__d:__s
push edx
mov byte [ebp - 4], 0x10
call fcn.10023d90
mov ebx, dword [ebp - 0x18]
add esp, 0x10
push ebx
lea ecx, [esi + 0x28]
call fcn.10017c80
mov edi, dword [esi + 0x28]
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edi
call fcn.100016b0
mov byte [ebp - 4], 0x11
call fcn.10021dd0
mov ecx, eax
mov byte [ebp - 4], 0x10
call fcn.10021e00
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebx - 0xc]
cmp ecx, dword [0x100e8010]
je 0x10025ff3
add ebx, 0xfffffff4
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10025ff3
push ebx
call fcn.10055c11
add esp, 4
mov eax, dword [ebp - 0x20]
lea edx, [eax - 0xc]
cmp edx, dword [0x100e8010]
jmp 0x1002600d
mov eax, dword [ebp - 0x20]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x100e8010]
je 0x10026026
lea edi, [eax - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10026026
push edi
call fcn.10055c11
add esp, 4
lea edx, [esi + 0x48]
push edx
push 0
lea eax, [esi + 0xc]
push eax
push 0x10021e90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x50], eax
mov esi, dword [ebp - 0x10]
lea ecx, [esi - 0xc]
cmp ecx, dword [0x100e8010]
je 0x10026067
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10026067
push esi
call fcn.10055c11
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4