Function at 0x416e10
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
mov eax, dword [0x439190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x20b]
push ebx
push eax
mov dword [ebp - 0x868], esi
mov dword [ebp - 0x85c], ebx
mov byte [ebp - 0x20c], bl
call fcn.00419b60
push 0x103
lea ecx, [ebp - 0x107]
push ebx
push ecx
mov byte [ebp - 0x108], bl
call fcn.00419b60
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
add esp, 0x18
mov byte [esi], bl
mov dword [ebp - 0x860], ebx
jmp 0x416e80
cmp ebx, 0x10
jge 0x417133
push ebx
lea edx, [ebp - 0x20c]
push str..PhysicalDrive_d
push edx
call fcn.0041874b
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x416ef5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x108]
push str.R_D_I_W_A_R_e1____C_F__.failed__szDriveName:_s__dwErrCode:_lu_n
push edx
call fcn.0041874b
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x41711f
xor eax, eax
push eax
lea ecx, [ebp - 0x864]
push ecx
push 0x18
lea edx, [ebp - 0x858]
push edx
push eax
push eax
push 0x74080
push esi
mov byte [ebp - 0x858], 0
mov dword [ebp - 0x857], eax
mov dword [ebp - 0x853], eax
mov dword [ebp - 0x84f], eax
mov dword [ebp - 0x84b], eax
mov dword [ebp - 0x847], eax
mov word [ebp - 0x843], ax
mov byte [ebp - 0x841], al
mov dword [ebp - 0x864], eax
call edi
test eax, eax
jne 0x416f66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20c]
push eax
push str.R_D_I_W_A_R_e2____D_I_C_S_G_V_.failed__szDriveName:_s__dwErrCode:_lu_n
jmp 0x417074
mov bl, byte [ebp - 0x855]
test bl, bl
jne 0x416fa1
lea eax, [ebp - 0x20c]
push eax
movzx ecx, bl
push ecx
lea edx, [ebp - 0x108]
push str.R_D_I_W_A_R_e3____stVersionParams.bIDEDeviceMap__d____0__szDriveName:_s_n
push edx
call fcn.0041874b
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x417112
push 0x20f
lea ecx, [ebp - 0x41b]
push 0
push ecx
mov byte [ebp - 0x41c], 0
call fcn.00419b60
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x838], eax
mov dword [ebp - 0x83c], eax
mov dword [ebp - 0x834], eax
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x82c], eax
mov dword [ebp - 0x828], eax
mov dword [ebp - 0x824], eax
mov byte [ebp - 0x820], al
mov al, byte [ebp - 0x860]
push 0
mov cl, al
shr bl, cl
mov dl, al
and dl, 1
mov byte [ebp - 0x834], al
lea eax, [ebp - 0x864]
push eax
push 0x210
or dl, 0xfa
shl dl, 4
and bl, 0x10
lea ecx, [ebp - 0x41c]
push ecx
neg bl
push 0x20
mov byte [ebp - 0x837], dl
sbb bl, bl
lea edx, [ebp - 0x840]
push edx
and bl, 0xb5
push 0x7c088
add bl, 0xec
push esi
mov word [ebp - 0x83b], 0x101
mov byte [ebp - 0x836], bl
mov dword [ebp - 0x840], 0x200
call edi
test eax, eax
jne 0x417095
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20c]
push eax
push str.R_D_I_W_A_R_e4____D_I_C_S_R_D_D_.failed__szDriveName:_s__dwErrCode:_lu_n
lea ecx, [ebp - 0x108]
push ecx
call fcn.0041874b
add esp, 0x10
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x417112
xor eax, eax
jmp 0x4170a0
movzx ecx, word [ebp + eax*2 - 0x40c]
mov dword [ebp + eax*4 - 0x81c], ecx
inc eax
cmp eax, 0x100
jl 0x4170a0
mov ebx, dword [ebp - 0x868]
push ebx
push 0x13
lea edx, [ebp - 0x81c]
push 0xa
push edx
call fcn.00416ca0
mov eax, ebx
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4170d6
sub eax, edx
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x108]
push str.R_D_I_W_A_R_OK____succeed__szDriveName:_s__nSnLength:_d_n
push ecx
call fcn.0041874b
add esp, 0x10
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x85c], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x860]
inc ebx
cmp dword [ebp - 0x85c], 0
mov dword [ebp - 0x860], ebx
je 0x416e80
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x85c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004180c9
mov esp, ebp
pop ebp
ret