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

Disassembly:
cmp dword [ecx + 0x28], 0
jne 0x42e51b
jmp fcn.0042ecf0
mov dword [ecx + 0x28], 1
add ecx, 0xc
jmp 0x42e7d0
sub esp, 0x60
mov eax, dword [0x4f00a8]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebp
mov ebp, dword [esp + 0x68]
push esi
mov esi, ecx
or eax, 0xffffffff
push edi
mov edi, dword [esp + 0x78]
cmp dword [esi + 8], eax
je 0x42ea8b
cmp dword [esi + 0xc], eax
je 0x42ea8b
cmp dword [esi + 0x10], eax
je 0x42ea8b
push ebx
test ebp, ebp
je 0x42e8fb
mov bl, byte [esp + 0x78]
cmp bl, 0x10
ja 0x42e8fb
push 0x5c
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004911c0
mov dl, byte [esi + 0xc]
mov cl, byte [esi + 8]
mov al, byte [esi + 0x10]
mov byte [esp + 0x31], bl
movzx ebx, bl
push ebx
mov byte [esp + 0x28], dl
mov byte [esp + 0x22], cl
mov ecx, dword [esp + 0x90]
lea edx, [esp + 0x50]
push ebp
push edx
mov byte [esp + 0x28], 2
mov byte [esp + 0x31], al
mov byte [esp + 0x3c], 0x18
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ecx
call fcn.00492030
mov eax, dword [esp + 0x9c]
add esp, 0x18
sub eax, 0
je 0x42e894
sub eax, 1
je 0x42e88d
sub eax, 1
jne 0x42e8fb
mov byte [esp + 0x13], al
jmp 0x42e899
mov byte [esp + 0x13], 0x50
jmp 0x42e899
mov byte [esp + 0x13], 0x48
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0x18]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x2c], edi
call ecx
add esp, 4
test eax, eax
jne 0x42e8ce
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x11], 1
je 0x42e912
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, byte [esp + 0x11]
push eax
push edx
push str.__SendASPI32Command_failed__status:_0x_.2X__last_error:__d.
push 0x537f80
call fcn.00444320
add esp, 0x10
pop ebx
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004911aa
add esp, 0x60
ret 0x14
mov al, byte [esp + 0x27]
test al, al
je 0x42ea74
movzx eax, al
push eax
push str.__Error:_SCSI_command_failed__returned:_0x_.2X.
push 0x537f80
call fcn.00444320
push str.__CDB:_t
push 0x537f80
call fcn.00444280
add esp, 0x14
xor esi, esi
test ebx, ebx
jbe 0x42e97c
lea esp, [esp]
test esi, esi
jne 0x42e960
movzx ecx, byte [ebp]
push ecx
push str.0x_.2X
jmp 0x42e96a
movzx edx, byte [esi + ebp]
push edx
push str._0x_.2X
push 0x537f80
call fcn.00444280
inc esi
add esp, 0xc
cmp esi, ebx
jb 0x42e950
push 0x4c49ac
push 0x537f80
call fcn.00444320
movzx eax, byte [esp + 0x5f]
movzx ecx, byte [esp + 0x5e]
movzx edx, byte [esp + 0x5d]
push eax
movzx eax, byte [esp + 0x60]
push ecx
movzx ecx, byte [esp + 0x63]
push edx
movzx edx, byte [esp + 0x66]
push eax
movzx eax, byte [esp + 0x69]
push ecx
movzx ecx, byte [esp + 0x6c]
push edx
push eax
push ecx
push str.__Sense:_t0x_.2X_0x_.2X_0x_.2X_0x_.2X_0x_.2X_0x_.2X_0x_.2X_0x_.2X
push 0x537f80
call fcn.00444320
movzx edx, byte [esp + 0x8f]
movzx eax, byte [esp + 0x8e]
movzx ecx, byte [esp + 0x8d]
push edx
movzx edx, byte [esp + 0x90]
push eax
movzx eax, byte [esp + 0x93]
push ecx
movzx ecx, byte [esp + 0x96]
push edx
movzx edx, byte [esp + 0x99]
push eax
movzx eax, byte [esp + 0x9c]
push ecx
push edx
push eax
push str.___t0x_.2X_0x_.2X_0x_.2X_0x_.2X_0x_.2X_0x_.2X_0x_.2X_0x_.2X
push 0x537f80
call fcn.00444320
movzx ecx, byte [esp + 0xbf]
movzx edx, byte [esp + 0xbe]
movzx eax, byte [esp + 0xbd]
add esp, 0x58
push ecx
movzx ecx, byte [esp + 0x68]
push edx
movzx edx, byte [esp + 0x6b]
push eax
movzx eax, byte [esp + 0x6e]
push ecx
movzx ecx, byte [esp + 0x71]
push edx
movzx edx, byte [esp + 0x74]
push eax
push ecx
push edx
push str.___t0x_.2X_0x_.2X_0x_.2X_0x_.2X_0x_.2X_0x_.2X_0x_.2X_0x_.2X
push 0x537f80
call fcn.00444320
add esp, 0x28
jmp 0x42e8fb
pop ebx
pop edi
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004911aa
add esp, 0x60
ret 0x14
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
xor ecx, esp
xor al, al
call fcn.004911aa
add esp, 0x60
ret 0x14