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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xa9c
mov ebp, dword [esp + 0xab0]
lea eax, [esp + 0x7c]
mov dword [esp], 0
mov esi, dword [esp + 0xac0]
mov ebx, dword [esp + 0xac8]
mov dword [esp + 4], eax
call dbg.pthread_setcancelstate
lea eax, [ebp + 0x48]
mov dword [esp], eax
mov dword [esp + 0x58], eax
call dbg.pthread_mutex_lock
test eax, eax
jne 0x43aa7f
lea eax, [ebp + 0x4c]
mov dword [esp], eax
mov dword [esp + 0x5c], eax
call dbg.pthread_rwlock_rdlock
test eax, eax
jne 0x43aaeb
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call dbg.pthread_mutex_unlock
test eax, eax
jne 0x43ab66
mov eax, dword [esp + 0xac4]
mov dword [eax], 0
cmp byte [ebp + 0x30], 0
jne 0x43adfd
test ebx, ebx
mov edi, dword [ebp + 0x20]
je 0x43a9c3
lea eax, [esp + 0x80]
mov dword [esp], eax
call sym._cgtime
test esi, esi
je 0x43adee
mov eax, dword [esp + 0xab4]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 0
shl eax, 4
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xab8]
lea eax, [eax + eax*4]
add eax, eax
mov dword [esp + 0x54], eax
mov eax, 1
mov byte [esp + 0x3c], al
cmp byte [edi + 0x2034], 0
mov edx, esi
je 0x43a70a
mov ecx, dword [edi]
mov eax, dword [esp + 0x50]
mov ecx, dword [ecx + 0x28]
mov ecx, dword [ecx + eax + 0xc]
mov eax, dword [esp + 0x54]
movzx ecx, word [ecx + eax + 6]
cmp esi, ecx
je 0x43a9b4
movzx eax, byte [esp + 0x3c]
movzx ecx, byte [edi + 0x2035]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], edx
mov edx, edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 8
xor eax, 1
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0xab4]
movzx eax, al
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xacc]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x78]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xabc]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xab8]
mov dword [esp], eax
mov eax, ebp
call sym._usb_perform_transfer
test eax, eax
mov ebx, eax
je 0x43a783
cmp eax, 0xfffffff9
jne 0x43a9e3
lea eax, [esp + 0x88]
mov dword [esp], eax
call sym._cgtime
mov eax, dword [esp + 0x78]
add dword [esp + 0x48], eax
test ebx, ebx
je 0x43a8a0
cmp byte [0x745ef7], 0
jne 0x43a7c2
cmp byte [0x732fa0], 0
jne 0x43a7c2
mov ecx, dword [0x5bc2e0]
test ecx, ecx
jle 0x43a844
mov dword [esp], ebx
call sym._libusb_error_name_4
sub esp, 4
mov dword [esp + 0x3c], eax
call sym._cgusb_check_init
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x90]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xacc]
mov eax, dword [eax*4 + 0x5bc300]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 4]
mov eax, dword [eax + 8]
mov dword [esp], edx
mov dword [esp + 8], str._s__i__s_usb_write_err:__d___s
mov dword [esp + 4], 0xa00
mov dword [esp + 0xc], eax
call sym._snprintf_4
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], 0
mov dword [esp], 1
mov dword [esp + 4], edx
call sym.__applog
cmp ebx, 0xfffffffc
je 0x43a855
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x43a911
mov eax, dword [esp + 0xac4]
mov esi, dword [esp + 0x48]
mov dword [eax], esi
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call dbg.pthread_rwlock_unlock
test eax, eax
jne 0x43abd2
call dword [0x5bb9e0]
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.pthread_setcancelstate
add esp, 0xa9c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x4c], 0
add dword [esp + 0xabc], eax
sub esi, eax
lea eax, [esp + 0x80]
mov dword [esp + 4], eax
lea eax, [esp + 0x88]
mov dword [esp], eax
call sym._tdiff
fnstcw word [esp + 0x66]
fild qword [esp + 0x40]
fxch st(1)
movzx eax, word [esp + 0x66]
fmul dword [0x5d011c]
mov ah, 0xc
mov word [esp + 0x64], ax
fsubp st(1)
fldcw word [esp + 0x64]
fistp dword [esp + 0x60]
fldcw word [esp + 0x66]
mov ebx, dword [esp + 0x60]
test ebx, ebx
jle 0x43a90a
test esi, esi
mov byte [esp + 0x3c], 0
jne 0x43a6e1
xor ebx, ebx
jmp 0x43a855
mov eax, dword [edi + 4]
mov dword [esp], eax
call sym._libusb_reset_device_4
sub esp, 4
cmp byte [0x745ef7], 0
mov ebx, eax
jne 0x43a93c
cmp byte [0x732fa0], 0
jne 0x43a93c
mov eax, dword [0x5bc2e0]
test eax, eax
jle 0x43a99f
mov dword [esp], ebx
call sym._libusb_error_name_4
sub esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
lea edx, [esp + 0x90]
mov eax, dword [ebp + 8]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 4]
mov eax, dword [eax + 8]
mov dword [esp], edx
mov dword [esp + 8], str._s__i_attempted_reset_got_err:__d___s
mov dword [esp + 4], 0xa00
mov dword [esp + 0xc], eax
call sym._snprintf_4
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], 0
mov dword [esp], 1
mov dword [esp + 4], edx
call sym.__applog
test ebx, ebx
jne 0x43a9cd
mov eax, dword [esp + 0x78]
mov dword [esp + 0x4c], 1
jmp 0x43a8a8
sar edx, 1
mov ecx, 1
cmove edx, ecx
jmp 0x43a70a
mov eax, dword [edi]
mov ebx, dword [eax + 0x1c]
jmp 0x43a687
mov eax, dword [esp + 0xac4]
mov edi, dword [esp + 0x48]
cmp ebx, 0xfffffff9
mov dword [eax], edi
je 0x43a862
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call dbg.pthread_rwlock_unlock
test eax, eax
jne 0x43ac3e
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call dbg.pthread_mutex_lock
test eax, eax
jne 0x43acaa
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call dbg.pthread_rwlock_wrlock
test eax, eax
jne 0x43ad16
mov eax, ebp
call sym._release_cgpu
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call dbg.pthread_rwlock_unlock
test eax, eax
jne 0x43ad82
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call dbg.pthread_mutex_unlock
test eax, eax
je 0x43a876
call dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 0x18], 0xeb1
mov dword [esp + 0x14], str._usb_write
mov dword [esp + 0x10], str.usbutils.c
mov eax, dword [eax]
mov dword [esp + 8], 0x5cde80
mov dword [esp + 0xc], eax
jmp 0x43abfe
call dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 0x18], 0xe5d
mov dword [esp + 0x14], str._usb_write
lea edi, [esp + 0x90]
mov dword [esp + 0x10], str.usbutils.c
mov eax, dword [eax]
mov dword [esp + 8], 0x5cdeb4
mov dword [esp + 4], 0xa00
mov dword [esp], edi
mov dword [esp + 0xc], eax
call sym._snprintf_4
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], 0
call sym.__applog
mov dword [esp], 1
call sym.__quit
jmp 0x43a63a
call dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 0x18], 0xe5d
mov dword [esp + 0x14], str._usb_write
lea edi, [esp + 0x90]
mov dword [esp + 0x10], str.usbutils.c
mov eax, dword [eax]
mov dword [esp + 8], 0x5cde18
mov dword [esp + 4], 0xa00
mov dword [esp], edi
mov dword [esp + 0xc], eax
call sym._snprintf_4
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], 0
call sym.__applog
mov dword [esp], 1
call sym.__quit
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call dbg.pthread_mutex_unlock
test eax, eax
je 0x43a665
call dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 0x18], 0xe5d
mov dword [esp + 0x14], str._usb_write
lea edi, [esp + 0x90]
mov dword [esp + 0x10], str.usbutils.c
mov eax, dword [eax]
mov dword [esp + 8], 0x5cde80
mov dword [esp + 4], 0xa00
mov dword [esp], edi
mov dword [esp + 0xc], eax
call sym._snprintf_4
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], 0
call sym.__applog
mov dword [esp], 1
call sym.__quit
jmp 0x43a665
call dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 0x18], 0xeb3
mov dword [esp + 0x14], str._usb_write
mov dword [esp + 0x10], str.usbutils.c
mov eax, dword [eax]
mov dword [esp + 8], 0x5cdee4
mov dword [esp + 0xc], eax
lea esi, [esp + 0x90]
mov dword [esp + 4], 0xa00
mov dword [esp], esi
call sym._snprintf_4
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], 0
call sym.__applog
mov dword [esp], 1
call sym.__quit
jmp 0x43a876
call dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 0x18], 0xeaf
mov dword [esp + 0x14], str._usb_write
lea esi, [esp + 0x90]
mov dword [esp + 0x10], str.usbutils.c
mov eax, dword [eax]
mov dword [esp + 8], 0x5cdee4
mov dword [esp + 4], 0xa00
mov dword [esp], esi
mov dword [esp + 0xc], eax
call sym._snprintf_4
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], 0
call sym.__applog
mov dword [esp], 1
call sym.__quit
jmp 0x43a9f7
call dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 0x18], 0xeaf
mov dword [esp + 0x14], str._usb_write
lea esi, [esp + 0x90]
mov dword [esp + 0x10], str.usbutils.c
mov eax, dword [eax]
mov dword [esp + 8], 0x5cdeb4
mov dword [esp + 4], 0xa00
mov dword [esp], esi
mov dword [esp + 0xc], eax
call sym._snprintf_4
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], 0
call sym.__applog
mov dword [esp], 1
call sym.__quit
jmp 0x43aa0b
call dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 0x18], 0xeaf
mov dword [esp + 0x14], str._usb_write
lea esi, [esp + 0x90]
mov dword [esp + 0x10], str.usbutils.c
mov eax, dword [eax]
mov dword [esp + 8], 0x5cde4c
mov dword [esp + 4], 0xa00
mov dword [esp], esi
mov dword [esp + 0xc], eax
call sym._snprintf_4
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], 0
call sym.__applog
mov dword [esp], 1
call sym.__quit
jmp 0x43aa1f
call dword [sym.imp.msvcrt.dll__errno]
mov dword [esp + 0x18], 0xeb1
mov dword [esp + 0x14], str._usb_write
lea esi, [esp + 0x90]
mov dword [esp + 0x10], str.usbutils.c
mov eax, dword [eax]
mov dword [esp + 8], 0x5cdee4
mov dword [esp + 4], 0xa00
mov dword [esp], esi
mov dword [esp + 0xc], eax
call sym._snprintf_4
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], 0
call sym.__applog
mov dword [esp], 1
call sym.__quit
jmp 0x43aa3a
mov dword [esp + 0x48], 0
xor ebx, ebx
jmp 0x43a855
mov edx, 8
mov eax, ebp
mov ebx, 0xfffffffc
call sym._rejected_inc
jmp 0x43a9e3