Function at 0x10030290
Capabilities:
Check for time delay via queryperformancecounter
Check mutex on windows
Get thread local storage value
Initialize winsock library
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b05ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x818
push ebx
push esi
push edi
mov dword [esp + 0x58], 0x413fbbec
mov dword [esp + 0x5c], 0x432dd827
mov dword [esp + 0x60], 0x86ff2485
mov dword [esp + 0x64], 0x7d48dd16
push 0x200000
mov dword [esp + 0x830], 0
call fcn.1009c863
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
test esi, esi
jne 0x10030317
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x824]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.G65DDCAPI_diagnostic_report___begin_n_n
push esi
call fcn.1009d293
add esp, 8
mov ebx, eax
lea eax, [esp + 0x290]
push 0x400
push eax
push dword [0x100db79c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x290]
push eax
lea eax, [ebx + esi]
push str.Path:________________s_n
push eax
call fcn.1009d293
add esp, 0xc
add ebx, eax
push 0x20
push 0x38
push 9
push 6
push 0
lea eax, [ebx + esi]
push str.Version:_____________u._u._u._u___u_bit__n
push eax
call fcn.1009d293
add esp, 0x1c
add ebx, eax
push 5
lea eax, [ebx + esi]
push str.Driver_interface:___v_u_n
push eax
call fcn.1009d293
add esp, 0xc
add ebx, eax
lea eax, [esp + 0x290]
push 0
push 0x80
push 3
push 0
push 7
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10030412
lea eax, [esp + 0x10]
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [esp + 0x74]
push eax
movzx eax, word [esp + 0x76]
push eax
movzx eax, word [esp + 0x78]
push eax
movzx eax, word [esp + 0x7a]
push eax
movzx eax, word [esp + 0x7a]
push eax
movzx eax, word [esp + 0x7c]
push eax
lea eax, [ebx + esi]
push str.Date:________________04u__02u__02u__02u:_02u:_02u_UTC_n
push eax
call fcn.1009d293
add esp, 0x20
add ebx, eax
lea eax, [ebx + esi]
push 0x100b85b4
push eax
call fcn.1009d293
add esp, 8
mov dword [esp + 0x24], 0
add ebx, eax
push str.__G65DDCAPI_MUTEX__
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
push 0xffffffffffffffff
push edi
mov dword [esp + 0x5c], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x12
push 0
push 0
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov dword [esp + 0x3c], eax
cmp eax, 0xffffffff
jne 0x10030484
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + esi]
push str.SetupDiGetClassDevs_failed__0x_08X_._n
push eax
call fcn.1009d293
add esp, 0xc
add ebx, eax
jmp 0x10030aed
lea ecx, [esp + 0x134]
mov dword [esp + 0x10], 0
push ecx
push 0
lea ecx, [esp + 0x60]
mov dword [esp + 0x13c], 0x1c
push ecx
push 0
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x10030ae3
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ecx]
cmp dword [esp + 0x24], 0x20
jae 0x10030ae3
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
lea eax, [esp + 0x144]
push eax
push dword [esp + 0x50]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
call edi
cmp eax, 0x7a
jne 0x10030ab8
mov eax, dword [esp + 0x38]
inc eax
push eax
mov dword [esp + 0x3c], eax
call fcn.1009c863
add esp, 4
mov dword [esp + 0x50], eax
test eax, eax
je 0x10030ab8
push dword [esp + 0x38]
push 0
push eax
call fcn.100a1230
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x44]
add esp, 0xc
mov dword [eax], 5
push 0
push ecx
push dword [esp + 0x40]
push eax
lea eax, [esp + 0x144]
push eax
push dword [esp + 0x50]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
test eax, eax
je 0x10030aac
mov eax, dword [esp + 0x24]
inc eax
push eax
mov dword [esp + 0x28], eax
lea eax, [ebx + esi]
push str._u._receiver_n
push eax
call fcn.1009d293
add ebx, eax
add esp, 0xc
mov eax, dword [esp + 0x50]
add eax, 4
mov dword [esp + 0x4c], eax
push eax
lea eax, [ebx + esi]
push str.____Device_path:_________s_n
push eax
call fcn.1009d293
add esp, 0xc
add ebx, eax
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push dword [esp + 0x64]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x34], eax
cmp eax, 0xffffffff
je 0x10030a83
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
lea eax, [esp + 0x90]
push eax
push 0x13
lea eax, [esp + 0x84]
push eax
push 0
push 0
push 0x222804
push dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x100305f5
call edi
push eax
push str.____Device_info_query_failed__0x_08X_._n
jmp 0x1003071f
movzx ecx, byte [esp + 0x7a]
mov eax, ecx
sub eax, 0
je 0x10030634
dec eax
je 0x1003062d
dec eax
je 0x10030626
push ecx
lea eax, [esp + 0x294]
push str.Unknown__u_
push eax
call fcn.1009d293
add esp, 0xc
lea eax, [esp + 0x290]
jmp 0x10030639
mov eax, str.USB3
jmp 0x10030639
mov eax, str.USB2
jmp 0x10030639
mov eax, str.PCIe
push eax
lea eax, [ebx + esi]
push str.____Bus_type:____________s_n
push eax
call fcn.1009d293
add esp, 0xc
add ebx, eax
movzx eax, word [esp + 0x89]
push eax
movzx eax, word [esp + 0x8b]
push eax
movzx eax, word [esp + 0x8d]
push eax
movzx eax, word [esp + 0x8f]
push eax
lea eax, [ebx + esi]
push str.____Firmware:___________0x_04X_0x_04X_0x_04X_0x_04X_n
push eax
call fcn.1009d293
add ebx, eax
movzx eax, word [esp + 0x99]
push eax
movzx eax, word [esp + 0x9b]
push eax
movzx eax, word [esp + 0x9d]
push eax
movzx eax, word [esp + 0x9f]
push eax
lea eax, [ebx + esi]
push str.____HW_Ids:_____________0x_04X_0x_04X_0x_04X_0x_04X_n
push eax
call fcn.1009d293
add ebx, eax
movzx eax, word [esp + 0xa8]
push eax
push str.____Driver_interface:___v_u_n
lea eax, [ebx + esi]
push eax
call fcn.1009d293
add esp, 0x3c
add ebx, eax
cmp word [esp + 0x78], 5
je 0x100306fb
lea eax, [ebx + esi]
push str.____Mismatched_driver_detected__n
push eax
call fcn.1009d293
add esp, 8
add ebx, eax
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10030a99
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x150]
push eax
lea edx, [esp + 0x7c]
call fcn.100234a0
add esp, 4
test al, al
jne 0x1003073c
call edi
push eax
push str.____Failed_to_read_EEPROM___u__n
lea eax, [ebx + esi]
push eax
call fcn.1009d293
add esp, 0xc
add ebx, eax
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10030a99
lea eax, [esp + 0x155]
push eax
lea eax, [ebx + esi]
push str.____Serial_number:_______.8s_n
push eax
call fcn.1009d293
add esp, 0xc
add ebx, eax
movzx eax, byte [esp + 0x150]
push eax
lea eax, [ebx + esi]
push str.____EEPROM_version:_____0x_02X_n
push eax
call fcn.1009d293
add esp, 0xc
add ebx, eax
movzx eax, word [esp + 0x151]
push eax
lea eax, [ebx + esi]
push str.____HW_version:_________0x_04X_n
push eax
call fcn.1009d293
add esp, 0xc
add ebx, eax
push dword [esp + 0x15d]
lea eax, [ebx + esi]
push str.____Flags:______________0x_08X_n
push eax
call fcn.1009d293
add esp, 0xc
add ebx, eax
push dword [esp + 0x161]
lea eax, [ebx + esi]
push str.____Freq_calibration:____u_n
push eax
call fcn.1009d293
add esp, 0xc
add ebx, eax
movzx eax, byte [esp + 0x16a]
push eax
movzx eax, byte [esp + 0x16d]
push eax
movzx eax, byte [esp + 0x170]
push eax
movzx eax, byte [esp + 0x173]
push eax
movzx eax, byte [esp + 0x176]
push eax
movzx eax, byte [esp + 0x179]
push eax
lea eax, [ebx + esi]
push str.____MAC_address:_________02X:_02X:_02X:_02X:_02X:_02X_n
push eax
call fcn.1009d293
add ebx, eax
add esp, 0x20
mov al, byte [esp + 0x7a]
cmp al, 1
je 0x10030818
cmp al, 2
jne 0x10030839
push 0
lea eax, [esp + 0x90]
push eax
push 0
push 0
push 0
push 0
push 0x2228b4
push dword [esp + 0x50]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
lea ecx, [esp + 0xbc]
call fcn.10029f40
lea eax, [esp + 0x40]
mov byte [esp + 0x82c], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [esp + 0x4c]
lea eax, [esp + 0xbc]
push eax
call fcn.1002a2d0
test eax, eax
je 0x10030a57
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
sbb eax, dword [esp + 0x2c]
push 0
push 0x3e8
push eax
push ecx
call fcn.100a2ea0
push dword [esp + 0x44]
push dword [esp + 0x44]
push edx
push eax
call fcn.100a2df0
push eax
mov dword [esp + 0x1c], eax
lea eax, [ebx + esi]
push str.____Open:_______________OK___u_ms__n
push eax
mov dword [esp + 0x28], edx
call fcn.1009d293
add ebx, eax
add esp, 0xc
mov eax, 0xa
mov word [esp + 0x68], ax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0xbc]
push eax
call fcn.1002f930
mov ecx, dword [esp + 0x6a]
mov eax, ecx
shr eax, 0x18
push eax
mov eax, ecx
shr ecx, 8
shr eax, 0x10
and ecx, 0xff
and eax, 0xff
push eax
movzx eax, byte [esp + 0x72]
push ecx
push eax
lea eax, [ebx + esi]
push str.____IP_address:__________u._u._u._u_n
push eax
call fcn.1009d293
mov ecx, dword [esp + 0x86]
add ebx, eax
mov eax, ecx
shr eax, 0x18
push eax
mov eax, ecx
shr ecx, 8
shr eax, 0x10
and ecx, 0xff
and eax, 0xff
push eax
movzx eax, byte [esp + 0x8e]
push ecx
push eax
lea eax, [ebx + esi]
push str.____Netmask:_____________u._u._u._u_n
push eax
call fcn.1009d293
add esp, 0x30
add ebx, eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 1
lea eax, [esp + 0xbc]
push eax
call fcn.1002a6c0
test eax, eax
je 0x10030a1e
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
sbb eax, dword [esp + 0x2c]
push 0
push 0x3e8
push eax
push ecx
call fcn.100a2ea0
push dword [esp + 0x44]
push dword [esp + 0x44]
push edx
push eax
call fcn.100a2df0
push eax
mov dword [esp + 0x1c], eax
lea eax, [ebx + esi]
push str.____Power_ON:___________OK___u_ms__n
push eax
mov dword [esp + 0x28], edx
call fcn.1009d293
add esp, 0xc
add ebx, eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [esp + 0xbc]
push eax
call fcn.1002a6c0
lea eax, [esp + 0xb8]
push eax
call fcn.1002a240
lea ecx, [esp + 0xb8]
mov byte [esp + 0x82c], 0
call fcn.1002a0c0
jmp 0x10030a99
call edi
push eax
lea eax, [ebx + esi]
push str.____Power_ON:___________Failed__0x_08X__n
push eax
call fcn.1009d293
add esp, 0xc
add ebx, eax
lea eax, [esp + 0xb8]
push eax
call fcn.1002a240
lea ecx, [esp + 0xb8]
mov byte [esp + 0x82c], 0
call fcn.1002a0c0
jmp 0x10030a99
call edi
push eax
lea eax, [ebx + esi]
push str.____Open:_______________Failed__0x_08X__n
push eax
call fcn.1009d293
add esp, 0xc
mov byte [esp + 0x82c], 0
lea ecx, [esp + 0xb8]
add ebx, eax
call fcn.1002a0c0
jmp 0x10030a99
call edi
push eax
lea eax, [ebx + esi]
push str.____CreateFile_failed__0x_08X_._n
push eax
call fcn.1009d293
add esp, 0xc
add ebx, eax
lea eax, [ebx + esi]
push 0x100b85b4
push eax
call fcn.1009d293
add esp, 8
add ebx, eax
push dword [esp + 0x50]
call fcn.1009c348
add esp, 4
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x134]
push ecx
inc eax
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x60]
push eax
push 0
push dword [esp + 0x4c]
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x100304c0
push dword [esp + 0x3c]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
lea eax, [esp + 0x690]
mov dword [esp + 0x90], vtable.g65ddc_network_enumerator.0
push eax
push 2
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edx, edx
mov dword [esp + 0xa4], 0xffffffff
mov dword [esp + 0x98], edx
mov edi, dword [ebp + 8]
mov byte [esp + 0x82c], 2
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esp + 0x10], 5
mov eax, dword [edi + 8]
mov dword [edi + 0xc], eax
lea esp, [esp]
test edi, edi
je 0x10030bc4
lea ecx, [edi + 4]
mov dword [esp + 0x4c], ecx
test ecx, ecx
je 0x10030bc4
test edx, edx
je 0x10030b92
cmp dword [esp + 0x94], ecx
je 0x10030b92
lea eax, [esp + 0x90]
push eax
mov eax, dword [esp + 0x94]
call dword [eax + 8]
mov ecx, dword [esp + 0x4c]
mov eax, 1
lea edx, [esp + 0xb4]
xchg dword [edx], eax
cmp dword [esp + 0x98], 0
je 0x10030bae
push 0
jmp 0x10030bc6
mov dword [esp + 0x94], ecx
lea ecx, [esp + 0x90]
call fcn.1008d980
push eax
jmp 0x10030bc6
push 0x57
call esi
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [esp + 0x10]
je 0x10030be5
mov edx, dword [esp + 0x98]
jmp 0x10030b60
mov eax, dword [esp + 0x98]
mov edi, dword [esp + 0x54]
test eax, eax
je 0x10030c1d
push 0xffffffffffffffff
push eax
mov byte [esp + 0xa8], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x98]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x98], 0
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 8]
cmp esi, dword [ecx + 0xc]
je 0x100311a3
mov edi, dword [esp + 0x20]
movzx eax, word [esi + 4]
push eax
movzx eax, byte [esi]
push eax
movzx eax, byte [esi + 1]
push eax
movzx eax, byte [esi + 2]
push eax
movzx eax, byte [esi + 3]
push eax
lea eax, [esp + 0x264]
push str.udp:_u._u._u._u:_u
push eax
call fcn.1009d293
mov eax, dword [esp + 0x40]
add esp, 0x1c
inc eax
mov dword [esp + 0x24], eax
push eax
lea eax, [ebx + edi]
push str._u._receiver_n
push eax
call fcn.1009d293
add esp, 0xc
add ebx, eax
lea eax, [esp + 0x250]
push eax
lea eax, [ebx + edi]
push str.____Device_path:_________s_n
push eax
call fcn.1009d293
add esp, 0xc
add ebx, eax
lea eax, [ebx + edi]
push str.____Bus_type:___________LAN_n
push eax
call fcn.1009d293
add ebx, eax
add esp, 8
test byte [esi + 0x18], 4
mov eax, str.Busy
jne 0x10030cb8
mov eax, str.Idle
push eax
lea eax, [ebx + edi]
push str.____State:_______________s_n
push eax
call fcn.1009d293
add esp, 0xc
add ebx, eax
lea eax, [esi + 6]
push eax
lea eax, [ebx + edi]
push str.____Serial_number:_______.8s_n
push eax
call fcn.1009d293
add esp, 0xc
lea ecx, [esp + 0xb8]
add ebx, eax
push 1
call fcn.10029f40
lea eax, [esp + 0x40]
mov byte [esp + 0x82c], 3
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x250]
push eax
lea eax, [esp + 0xbc]
push eax
call fcn.1002a2d0
test eax, eax
je 0x100310ce
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
sbb eax, dword [esp + 0x2c]
push 0
push 0x3e8
push eax
push ecx
call fcn.100a2ea0
push dword [esp + 0x44]
push dword [esp + 0x44]
push edx
push eax
call fcn.100a2df0
push eax
mov dword [esp + 0x1c], eax
lea eax, [ebx + edi]
push str.____Open:_______________OK___u_ms__n
push eax
mov dword [esp + 0x28], edx
call fcn.1009d293
add esp, 0xc
add ebx, eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x10], eax
push dword [0x100db8a4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [esp + 0x10]
jne 0x10030da4
push 0x65b
jmp 0x10030dfe
lea eax, [esp + 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0xc0]
test ecx, ecx
jne 0x10030dcf
lea eax, [esp + 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 6
jmp 0x10030dfe
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, dword [esp + 0xc0]
lea edx, [esp + 0x150]
push edx
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esp + 0x10]
mov eax, dword [sym.imp.KERNEL32.dll_SetLastError]
call eax
push 8
lea eax, [esp + 0x159]
push eax
lea eax, [esi + 6]
push eax
call fcn.1009e350
add esp, 0xc
test eax, eax
je 0x10030e3a
lea eax, [esp + 0x155]
push eax
lea eax, [ebx + edi]
push str.____Serial_number:_______.8s_n
push eax
call fcn.1009d293
add esp, 0xc
add ebx, eax
movzx eax, byte [esp + 0x150]
push eax
lea eax, [ebx + edi]
push str.____EEPROM_version:_____0x_02X_n
push eax
call fcn.1009d293
add esp, 0xc
add ebx, eax
movzx eax, word [esp + 0x151]
push eax
lea eax, [ebx + edi]
push str.____HW_version:_________0x_04X_n
push eax
call fcn.1009d293
add esp, 0xc
add ebx, eax
push dword [esp + 0x15d]
lea eax, [ebx + edi]
push str.____Flags:______________0x_08X_n
push eax
call fcn.1009d293
add esp, 0xc
add ebx, eax
push dword [esp + 0x161]
lea eax, [ebx + edi]
push str.____Freq_calibration:____u_n
push eax
call fcn.1009d293
add esp, 0xc
add ebx, eax
movzx eax, byte [esp + 0x16a]
push eax
movzx eax, byte [esp + 0x16d]
push eax
movzx eax, byte [esp + 0x170]
push eax
movzx eax, byte [esp + 0x173]
push eax
movzx eax, byte [esp + 0x176]
push eax
movzx eax, byte [esp + 0x179]
push eax
lea eax, [ebx + edi]
push str.____MAC_address:_________02X:_02X:_02X:_02X:_02X:_02X_n
push eax
call fcn.1009d293
add esp, 0x20
add ebx, eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0xdc]
push dword [0x100db8a4]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [esp + 0x10]
jne 0x10030f4e
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + edi]
push str.____Power_ON:___________Failed__0x_08X__n
push eax
call fcn.1009d293
add esp, 0xc
add ebx, eax
lea eax, [esp + 0xb8]
push eax
call fcn.1002a240
jmp 0x100310e8
lea eax, [esp + 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0xc0]
test ecx, ecx
jne 0x10030f79
lea eax, [esp + 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 6
jmp 0x10030f1c
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, dword [esp + 0xc0]
push 1
call fcn.1001f1a0
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ecx, ecx
cmp dword [esp + 0x10], ecx
sete cl
test ecx, ecx
je 0x10030f22
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
sbb eax, dword [esp + 0x2c]
push 0
push 0x3e8
push eax
push ecx
call fcn.100a2ea0
push dword [esp + 0x44]
push dword [esp + 0x44]
push edx
push eax
call fcn.100a2df0
push eax
mov dword [esp + 0x1c], eax
lea eax, [ebx + edi]
push str.____Power_ON:___________OK___u_ms__n
push eax
mov dword [esp + 0x28], edx
call fcn.1009d293
add esp, 0xc
add ebx, eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0xdc]
push dword [0x100db8a4]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, dword [esp + 0x10]
jne 0x10031052
push 0x65b
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0xb8]
push eax
call fcn.1002a240
jmp 0x100310e8
lea eax, [esp + 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0xc0]
test ecx, ecx
jne 0x10031090
lea eax, [esp + 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0xb8]
push eax
call fcn.1002a240
jmp 0x100310e8
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, dword [esp + 0xc0]
push 0
call fcn.1001f1a0
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0xb8]
push eax
call fcn.1002a240
jmp 0x100310e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebx + edi]
push str.____Open:_______________Failed__0x_08X__n
push eax
call fcn.1009d293
add esp, 0xc
add ebx, eax
lea eax, [ebx + edi]
push 0x100b85b4
push eax
call fcn.1009d293
add esp, 8
mov dword [esp + 0xb8], vtable.g65ddc_device_interface.0
add ebx, eax
add esi, 0x1c
lea eax, [esp + 0xb8]
mov byte [esp + 0x82c], 6
push eax
call fcn.1002a240
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x10], eax
test eax, eax
je 0x10031147
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x10031147
push dword [esp + 0x10]
call fcn.1009c777
add esp, 4
push dword [esp + 0x120]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x124]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [esp + 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea eax, [esp + 0xc4]
mov byte [esp + 0x82c], 2
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [ebp + 8]
cmp esi, dword [ecx + 0xc]
jne 0x10030c30
mov edi, dword [esp + 0x54]
mov eax, dword [ecx + 8]
mov esi, dword [esp + 0x20]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x100311c8
lea eax, [ebx + esi]
push str.No_G65DDC_receiver_found._n
push eax
call fcn.1009d293
add esp, 8
jmp 0x100311da
push eax
lea eax, [ebx + esi]
push str.Total_receivers_found:__u_n
push eax
call fcn.1009d293
add esp, 0xc
add ebx, eax
push str._nG65DDCAPI_diagnostic_report___end_n
lea eax, [ebx + esi]
push eax
call fcn.1009d293
inc eax
add ebx, eax
push ebx
push esi
call fcn.1009d704
add esp, 0x10
mov dword [esp + 0x20], eax
test eax, eax
jne 0x10031205
mov dword [esp + 0x20], esi
jmp 0x10031209
mov esi, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call ebx
lea ecx, [esp + 0x90]
call fcn.1008d840
test edi, edi
je 0x10031257
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x824]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x824]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4