Function at 0x40acd0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x86c
mov eax, dword [0x42f370]
xor eax, esp
mov dword [esp + 0x864], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x545]
mov esi, ecx
push ebx
push eax
mov dword [esp + 0x28], esi
xor ebp, ebp
mov byte [esp + 0x54c], bl
call fcn.004145e0
push 0x103
lea ecx, [esp + 0x449]
push ebx
push ecx
mov byte [esp + 0x450], bl
call fcn.004145e0
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x18
xor eax, eax
mov byte [esi], bl
mov dword [esp + 0x14], eax
jmp 0x40ad44
mov eax, dword [esp + 0x14]
cmp eax, 0x10
jge 0x40af3c
push eax
lea edx, [esp + 0x544]
push str..PhysicalDrive_d
push edx
call fcn.00411287
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 7
push 0xc0000000
lea eax, [esp + 0x558]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40adb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x544]
push ecx
lea edx, [esp + 0x440]
push str.R_D_I_U_S_e1____C_F__.failed__szDriveName:_s__dwErrCode:_lu_n
push edx
call fcn.00411287
add esp, 0x10
lea eax, [esp + 0x438]
push eax
call edi
jmp 0x40af2f
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x18
lea edx, [esp + 0x2c]
push edx
push ebx
xor eax, eax
push ebx
push 0x74080
push esi
mov byte [esp + 0x40], bl
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov word [esp + 0x55], ax
mov byte [esp + 0x57], al
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40ae30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x544]
push eax
lea ecx, [esp + 0x440]
push str.R_D_I_U_S_e2____D_I_C_S_G_V_.failed__szDriveName:_s__dwErrCode:_lu_n
push ecx
call fcn.00411287
add esp, 0x10
lea edx, [esp + 0x438]
push edx
call edi
jmp 0x40af28
push 0x220
lea eax, [esp + 0x64d]
push ebx
push eax
mov dword [esp + 0x24], ebx
mov byte [esp + 0x654], bl
call fcn.004145e0
add esp, 0xc
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x221
lea edx, [esp + 0x654]
push edx
push 0x21
mov eax, edx
push eax
push 0x7c088
push esi
mov byte [esp + 0x672], 0xec
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40aeb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x544]
push ecx
lea edx, [esp + 0x440]
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.00411287
add esp, 0x10
lea eax, [esp + 0x438]
push eax
call edi
jmp 0x40af28
xor eax, eax
jmp 0x40aec0
movzx ecx, word [esp + eax*2 + 0x658]
mov dword [esp + eax*4 + 0x38], ecx
add eax, 1
cmp eax, 0x100
jl 0x40aec0
mov ebp, dword [esp + 0x1c]
mov ecx, ebp
lea eax, [esp + 0x38]
call fcn.0040a270
mov eax, ebp
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40aef0
sub eax, edx
push eax
lea edx, [esp + 0x544]
push edx
lea eax, [esp + 0x440]
push str.R_D_I_U_S_OK____succeed__szDriveName:_s__nSnLength:_d_n
push eax
call fcn.00411287
add esp, 0x10
lea ecx, [esp + 0x438]
push ecx
call edi
mov ebp, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add dword [esp + 0x14], 1
cmp ebp, ebx
je 0x40ad40
mov ecx, dword [esp + 0x874]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.004110f4
add esp, 0x86c
ret