Function at 0x417670
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x858
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 - 0x858], esi
mov dword [ebp - 0x84c], 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_OutputDebugStringA]
add esp, 0x18
xor eax, eax
mov byte [esi], bl
mov dword [ebp - 0x850], eax
jmp 0x4176e6
mov eax, dword [ebp - 0x850]
cmp eax, 0x10
jge 0x417901
push eax
lea edx, [ebp - 0x20c]
push str..PhysicalDrive_d
push edx
call fcn.0041874b
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 7
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x417754
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x108]
push str.R_D_I_U_S_e1____C_F__.failed__szDriveName:_s__dwErrCode:_lu_n
push edx
call fcn.0041874b
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call edi
jmp 0x4178ef
push ebx
lea ecx, [ebp - 0x854]
push ecx
push 0x18
lea edx, [ebp - 0x848]
push edx
push ebx
xor eax, eax
push ebx
push 0x74080
push esi
mov byte [ebp - 0x848], bl
mov dword [ebp - 0x847], eax
mov dword [ebp - 0x843], eax
mov dword [ebp - 0x83f], eax
mov dword [ebp - 0x83b], eax
mov dword [ebp - 0x837], eax
mov word [ebp - 0x833], ax
mov byte [ebp - 0x831], al
mov dword [ebp - 0x854], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4177e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x108]
push str.R_D_I_U_S_e2____D_I_C_S_G_V_.failed__szDriveName:_s__dwErrCode:_lu_n
push ecx
call fcn.0041874b
add esp, 0x10
lea edx, [ebp - 0x108]
push edx
call edi
jmp 0x4178e8
push 0x220
lea eax, [ebp - 0x42f]
push ebx
push eax
mov dword [ebp - 0x854], ebx
mov byte [ebp - 0x430], bl
call fcn.00419b60
add esp, 0xc
push ebx
lea ecx, [ebp - 0x854]
push ecx
push 0x221
lea edx, [ebp - 0x430]
push edx
push 0x21
mov eax, edx
push eax
push 0x7c088
push esi
mov byte [ebp - 0x426], 0xec
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x417861
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x108]
push str.R_D_I_U_S_e3____D_I_C_S_R_D_D_.failed__szDriveName:_s__dwErrCode:_lu_n
push edx
call fcn.0041874b
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call edi
jmp 0x4178e8
xor eax, eax
jmp 0x417870
movzx ecx, word [ebp + eax*2 - 0x420]
mov dword [ebp + eax*4 - 0x830], ecx
inc eax
cmp eax, 0x100
jl 0x417870
mov edx, dword [ebp - 0x858]
push edx
push 0x13
lea eax, [ebp - 0x830]
push 0xa
push eax
call fcn.00416ca0
mov eax, dword [ebp - 0x858]
add esp, 0x10
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4178b0
sub eax, edx
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x108]
push str.R_D_I_U_S_OK____succeed__szDriveName:_s__nSnLength:_d_n
push edx
call fcn.0041874b
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call edi
mov dword [ebp - 0x84c], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x850]
cmp dword [ebp - 0x84c], ebx
je 0x4176e0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x84c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004180c9
mov esp, ebp
pop ebp
ret