Function at 0x43e4a0
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x10054]
mov eax, 0x10054
call fcn.0048f460
push 0xffffffffffffffff
push 0x4ad618
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4ecba0]
xor eax, ebp
mov dword [ebp + 0x10050], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10068]
mov esi, dword [ebp + 0x1005c]
xor ebx, ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x11], bl
call fcn.0046d74a
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x43e514
push 0x80004005
call fcn.00402240
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 0x10064]
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
cmp edi, 0xffff
jbe 0x43e54e
push edi
lea ecx, [ebp - 0x1c]
push 0x4bb638
push ecx
mov byte [ebp - 0x11], 1
call fcn.00402d80
add esp, 0xc
movzx edx, di
mov edi, dword [ebp + 0x1006c]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x20], edi
cmp esi, ebx
je 0x43e95c
cmp esi, 0xffffffff
je 0x43e95c
cmp edi, 0x100
ja 0x43e95c
mov bl, byte [ebp + 0x10060]
cmp bl, 1
jne 0x43e665
push 0x10050
lea eax, [ebp]
push 0
push eax
call fcn.0048f850
mov edx, dword [ebp - 0x18]
movzx eax, byte [edx]
add esp, 0xc
mov byte [ebp + 0x1d], al
mov al, byte [ebp - 0x11]
push 0
add al, 0x50
mov byte [ebp + 0x1e], al
mov eax, dword [ebp + 0x10064]
mov ecx, 0x2c
mov word [ebp], cx
lea edx, [ebp - 0x28]
push edx
push 0x10050
mov ecx, eax
mov byte [ebp + 0x20], al
lea eax, [ebp]
push eax
shr ecx, 8
push 0x10050
mov byte [ebp + 0x1f], cl
mov ecx, eax
push ecx
push 0x4d004
push esi
mov byte [ebp + 6], 6
mov byte [ebp + 7], 0x18
mov byte [ebp + 8], 0
mov dword [ebp + 0xc], 0
mov dword [ebp + 0x10], 0x3c
mov dword [ebp + 0x14], 0x50
mov dword [ebp + 0x18], 0x30
mov byte [ebp + 0x1c], 0xe5
mov byte [ebp + 0x21], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov bl, al
test bl, bl
je 0x43e62a
cmp byte [ebp + 2], 0
je 0x43e90d
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, byte [ebp + 2]
push eax
push edx
movzx eax, bl
push eax
push edi
push 1
push esi
push 0x31f4
push str.CAsmtUSBDev::SCSI2464_AccessRegister
push str._s:_d:_SCSI2464_AccessRegister:__status__Fail__hDev:_x___ReadWrite:_x___dwTotalLen:_x___status:_x___ScsiStatus:_x___dwErrorCode:_x
call fcn.0044b7f0
add esp, 0x24
lea ecx, [ebp - 0x1c]
call fcn.004024d0
or eax, 0xffffffff
jmp 0x43e935
mov ecx, dword [ebp - 0x18]
push edi
push 0
push ecx
call fcn.0048f850
add esp, 0xc
mov eax, dword [ebp - 0x20]
test eax, eax
jbe 0x43e8fc
cmp eax, 0x10000
jbe 0x43e690
mov esi, 0x10000
mov dword [ebp - 0x34], esi
jmp 0x43e695
mov dword [ebp - 0x34], eax
mov esi, eax
push 0x10050
lea edx, [ebp]
push 0
push edx
call fcn.0048f850
add esp, 0xc
cmp bl, 1
setne cl
mov dl, bl
dec dl
mov eax, 0x2c
mov word [ebp], ax
movzx eax, dl
mov dl, byte [ebp - 0x20]
neg eax
sbb eax, eax
and eax, 0xffffffc7
add eax, 0x3c
mov byte [ebp + 8], cl
mov dword [ebp + 0x10], eax
mov al, byte [ebp - 0x11]
push 0
cmp bl, 1
sete cl
add al, 0x50
add cl, 0xe4
mov byte [ebp + 0x1d], dl
mov byte [ebp + 0x1e], al
mov eax, dword [ebp - 0x38]
mov byte [ebp + 0x1c], cl
lea edx, [ebp - 0x28]
push edx
mov edx, dword [ebp - 0x2c]
mov dword [ebp + 0xc], esi
mov ecx, eax
mov byte [ebp + 0x20], al
add esi, 0x50
push esi
lea eax, [ebp]
push eax
shr ecx, 8
mov byte [ebp + 0x1f], cl
mov edi, 0x10050
push edi
mov ecx, eax
push ecx
push 0x4d004
push edx
mov byte [ebp + 6], 6
mov byte [ebp + 7], 0x18
mov dword [ebp + 0x14], 0x50
mov dword [ebp + 0x18], 0x30
mov byte [ebp + 0x21], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov byte [ebp - 0x12], al
test al, al
jne 0x43e864
call fcn.0046d74a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43e75e
push 0x80004005
call fcn.00402240
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x24], 1
jmp 0x43e780
cmp dword [ebp - 0x24], 0x1e
jg 0x43e83b
push 0
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x2c]
push esi
lea edx, [ebp]
push edx
push edi
mov eax, edx
push eax
push 0x4d004
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x43e87b
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0x30]
push 0x4ba0ac
push eax
call fcn.00402d80
add esp, 0xc
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x3c]
push str._n::DeviceIoControl_success_after_retry:
push edx
call fcn.0040cc10
add esp, 0xc
push 0x4bb0a0
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 3
call fcn.0040cb30
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43e818
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43e83b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43e85e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x12], 0
je 0x43e88b
cmp byte [ebp + 2], 0
jne 0x43e88b
mov ecx, dword [ebp - 0x34]
sub dword [ebp - 0x20], ecx
mov edi, dword [ebp + 0x1006c]
jmp 0x43e674
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x24]
jmp 0x43e780
mov esi, dword [ebp + 0x1006c]
mov edx, dword [ebp - 0x18]
push esi
push 0
push edx
call fcn.0048f850
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, byte [ebp - 0x12]
push eax
movzx eax, byte [ebp + 2]
push eax
mov eax, dword [ebp - 0x2c]
push ecx
push esi
movzx edx, bl
push edx
push eax
push 0x3228
push str.CAsmtUSBDev::SCSI2464_AccessRegister
push str._s:_d:_SCSI2464_AccessRegister:__status__Fail__hDev:_x___ReadWrite:_x___BufLen:_x___status:_x___ScsiStatus:_x___dwErrorCode:_x
call fcn.0044b7f0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 0x24
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43e8f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x43e935
mov edx, dword [ebp - 0x18]
push edi
lea ecx, [ebp + 0x50]
push ecx
push edx
call fcn.00490450
add esp, 0xc
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43e933
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x10050]
xor ecx, ebp
call fcn.0048f35c
add ebp, 0x10054
mov esp, ebp
pop ebp
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
movzx eax, byte [ebp + 0x10060]
push edi
push eax
push esi
push 0x31d6
push str.CAsmtUSBDev::SCSI2464_AccessRegister
push str._s:_d:__hDev__NULL__or__dwTotalLen___CONFIG_BIN_SIZE___hDev:_x___ReadWrite:_x___BufLen:_x___dwErrorCode:_x
call fcn.0044b7f0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 0x1c
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43e9aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffff6
jmp 0x43e935