Function at 0x43f2f0
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x10054]
mov eax, 0x10054
call fcn.0048f460
push 0xffffffffffffffff
push 0x4ad708
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 eax, dword [ebp + 0x1006c]
mov esi, dword [ebp + 0x1005c]
xor edi, edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], edi
call fcn.0046d74a
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x43f364
push 0x80004005
call fcn.00402240
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
test esi, esi
je 0x43f731
cmp esi, 0xffffffff
je 0x43f731
push 0x10050
lea ecx, [ebp]
push 0
push ecx
call fcn.0048f850
mov edx, dword [ebp + 0x10064]
add esp, 0xc
xor eax, eax
lea ebx, [ebx]
mov ecx, dword [ebp + 0x10068]
cmp eax, ecx
jae 0x43f3c4
mov cl, byte [eax + edx]
mov byte [ebp + eax + 0x1c], cl
inc eax
jmp 0x43f3b0
mov al, byte [ebp + 0x10060]
cmp al, 1
jne 0x43f48e
push 0
lea eax, [ebp - 0x28]
push eax
push 0x10050
mov byte [ebp + 6], cl
lea ecx, [ebp]
push ecx
mov edx, 0x2c
push 0x10050
mov word [ebp], dx
mov edx, ecx
push edx
push 0x4d004
push esi
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
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov bl, al
test bl, bl
je 0x43f435
cmp byte [ebp + 2], 0
je 0x43f6e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
movzx eax, byte [ebp + 2]
push eax
movzx ecx, bl
push ecx
push edi
push 1
push esi
push 0x368a
push str.CAsmtUSBDev::SCSI_CMD
push str._s:_d:_SCSI_CMD:__status__Fail__hDev:_x___ReadWrite:_x___dwTotalLen:_x___status:_x___ScsiStatus:_x___dwErrorCode:_x
call fcn.0044b7f0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
add esp, 0x24
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43f486
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x43f70a
mov ecx, dword [ebp - 0x18]
mov dword [ecx], 0
test edi, edi
jbe 0x43f6cb
cmp edi, 0x10000
jbe 0x43f4b1
mov ebx, 0x10000
mov dword [ebp - 0x24], ebx
jmp 0x43f4b6
mov dword [ebp - 0x24], edi
mov ebx, edi
mov cl, byte [ebp + 0x10068]
cmp al, 1
mov edx, 0x2c
mov word [ebp], dx
setne dl
dec al
movzx eax, al
push 0
neg eax
mov byte [ebp + 6], cl
sbb eax, eax
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x30]
and eax, 0xffffffc7
mov byte [ebp + 8], dl
lea esi, [ebx + 0x50]
push esi
lea edx, [ebp]
push edx
add eax, 0x3c
mov dword [ebp + 0x10], eax
mov edi, 0x10050
push edi
mov eax, edx
push eax
push 0x4d004
push ecx
mov byte [ebp + 7], 0x18
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x14], 0x50
mov dword [ebp + 0x18], 0x30
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov byte [ebp - 0x11], al
test al, al
jne 0x43f643
call fcn.0046d74a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x43f542
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 - 0x2c], eax
mov byte [ebp - 4], 2
mov ebx, 1
lea ebx, [ebx]
cmp ebx, 0x1e
jg 0x43f617
push 0
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x30]
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 0x43f65a
push ebx
lea edx, [ebp - 0x2c]
push 0x4ba0ac
push edx
call fcn.00402d80
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x38]
push str._n::DeviceIoControl_success_after_retry:
push ecx
call fcn.0040cc10
add esp, 0xc
push 0x4bb0a0
push eax
lea edx, [ebp - 0x34]
push edx
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 - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43f5f4
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], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43f617
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2c]
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 0x43f63a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x11], 0
je 0x43f668
mov ebx, dword [ebp - 0x24]
cmp byte [ebp + 2], 0
jne 0x43f668
sub dword [ebp - 0x1c], ebx
mov edi, dword [ebp - 0x1c]
mov al, byte [ebp + 0x10060]
jmp 0x43f497
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
jmp 0x43f560
mov ecx, dword [ebp - 0x18]
mov dword [ecx], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, byte [ebp + 2]
movzx ecx, byte [ebp + 0x10060]
push eax
movzx eax, byte [ebp - 0x11]
push edx
mov edx, dword [ebp - 0x30]
push eax
mov eax, dword [ebp + 0x10070]
push eax
push ecx
push edx
push 0x36b8
push str.CAsmtUSBDev::SCSI_CMD
push str._s:_d:_SCSI_CMD:__status__Fail__hDev:_x___ReadWrite:_x___BufLen:_x___status:_x___ScsiStatus:_x___dwErrorCode:_x
call fcn.0044b7f0
mov eax, dword [ebp - 0x20]
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
jmp 0x43f47a
mov eax, dword [ebp + 0x10070]
mov edx, dword [ebp - 0x18]
push eax
lea ecx, [ebp + 0x50]
push ecx
push edx
call fcn.00490450
add esp, 0xc
mov eax, dword [ebp - 0x20]
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 0x43f708
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 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
movzx eax, byte [ebp + 0x10060]
push 0
push eax
push esi
push 0x366b
push str.CAsmtUSBDev::SCSI_CMD
push str._s:_d:__hDev__NULL__or__dwTotalLen___CONFIG_BIN_SIZE___hDev:_x___ReadWrite:_x___BufLen:_x___dwErrorCode:_x
call fcn.0044b7f0
lea eax, [ebx - 0x10]
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 0x43f77d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffff6
jmp 0x43f70a