Function at 0x43d4d0
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x10054]
mov eax, 0x10054
call fcn.0048f460
push 0xffffffffffffffff
push 0x4ad4c0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
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 esi, dword [ebp + 0x1005c]
mov eax, dword [ebp + 0x10068]
mov edi, dword [ebp + 0x1006c]
xor ecx, ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], edi
cmp esi, ecx
je 0x43d8d2
cmp esi, 0xffffffff
je 0x43d8d2
cmp edi, 0x100
ja 0x43d8d2
mov bl, byte [ebp + 0x10060]
cmp bl, 1
jne 0x43d62d
push 0x10050
push ecx
lea eax, [ebp]
push eax
call fcn.0048f850
mov edx, dword [ebp - 0x1c]
mov al, byte [edx]
add esp, 0xc
push 0
mov byte [ebp + 0x1d], al
mov eax, dword [ebp + 0x10064]
mov ecx, 0x2c
mov word [ebp], cx
lea edx, [ebp - 0x2c]
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 + 0x1e], 0
mov byte [ebp + 0x21], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov bl, al
test bl, bl
je 0x43d5fa
cmp byte [ebp + 2], 0
je 0x43d8a9
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 0xe1d
push str.CAsmtUSBDev::SCSI2105_AccessRegister
push str._s:_d:__status__Fail__hDev:_x___ReadWrite:_x___dwTotalLen:_x___status:_x___ScsiStatus:_x___dwErrorCode:_x
call fcn.0044b7f0
add esp, 0x24
or eax, 0xffffffff
jmp 0x43d8ab
push edi
push ecx
push eax
call fcn.0048f850
add esp, 0xc
jmp 0x43d640
mov eax, dword [ebp - 0x18]
test eax, eax
jbe 0x43d898
cmp eax, 0x10000
jbe 0x43d65c
mov esi, 0x10000
mov dword [ebp - 0x30], esi
jmp 0x43d661
mov dword [ebp - 0x30], eax
mov esi, eax
push 0x10050
lea ecx, [ebp]
push 0
push ecx
call fcn.0048f850
add esp, 0xc
cmp bl, 1
setne al
mov cl, bl
dec cl
mov edx, 0x2c
mov word [ebp], dx
movzx edx, cl
mov cl, byte [ebp - 0x18]
neg edx
sbb edx, edx
and edx, 0xffffffc7
add edx, 0x3c
mov byte [ebp + 8], al
cmp bl, 1
sete al
add al, 0xe4
mov byte [ebp + 0x1c], al
mov eax, dword [ebp + 0x10064]
push 0
mov dword [ebp + 0x10], edx
mov edx, eax
mov byte [ebp + 0x20], al
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
mov dword [ebp + 0xc], esi
mov byte [ebp + 0x1d], cl
add esi, 0x50
push esi
lea ecx, [ebp]
push ecx
shr edx, 8
mov byte [ebp + 0x1f], dl
mov edi, 0x10050
push edi
mov edx, ecx
push edx
push 0x4d004
push eax
mov byte [ebp + 6], 6
mov byte [ebp + 7], 0x18
mov dword [ebp + 0x14], 0x50
mov dword [ebp + 0x18], 0x30
mov byte [ebp + 0x1e], 0
mov byte [ebp + 0x21], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov byte [ebp - 0x11], al
test al, al
jne 0x43d826
call fcn.0046d74a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43d728
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 - 0x24], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x20], 0x1e
jg 0x43d7fd
push 0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x28]
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 0x43d83d
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x24]
push 0x4ba0ac
push eax
call fcn.00402d80
add esp, 0xc
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x38]
push str._n::DeviceIoControl_success_after_retry:
push edx
call fcn.0040cc10
add esp, 0xc
push 0x4bb0a0
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 2
call fcn.0040cb30
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43d7da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x38]
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 0x43d7fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43d820
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x11], 0
je 0x43d84d
cmp byte [ebp + 2], 0
jne 0x43d84d
mov ecx, dword [ebp - 0x30]
sub dword [ebp - 0x18], ecx
mov edi, dword [ebp + 0x1006c]
jmp 0x43d640
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x20]
jmp 0x43d742
mov esi, dword [ebp + 0x1006c]
mov edx, dword [ebp - 0x1c]
push esi
push 0
push edx
call fcn.0048f850
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, byte [ebp - 0x11]
push eax
movzx eax, byte [ebp + 2]
push eax
mov eax, dword [ebp - 0x28]
push ecx
push esi
movzx edx, bl
push edx
push eax
push 0xe51
push str.CAsmtUSBDev::SCSI2105_AccessRegister
push str._s:_d:_SCSI2105_AccessRegister:__status__Fail__hDev:_x___ReadWrite:_x___BufLen:_x___status:_x___ScsiStatus:_x___dwErrorCode:_x
call fcn.0044b7f0
add esp, 0x24
or eax, 0xffffffff
jmp 0x43d8ab
mov edx, dword [ebp - 0x1c]
push edi
lea ecx, [ebp + 0x50]
push ecx
push edx
call fcn.00490450
add esp, 0xc
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 0xdff
push str.CAsmtUSBDev::SCSI2105_AccessRegister
push str._s:_d:__hDev__NULL__or__dwTotalLen___CONFIG_BIN_SIZE___hDev:_x___ReadWrite:_x___BufLen:_x___dwErrorCode:_x
call fcn.0044b7f0
add esp, 0x1c
mov eax, 0xfffffff6
jmp 0x43d8ab