Function at 0x4348f0
Capabilities:
Get disk information
Get disk information via ioctl
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x645154]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x278], edi
mov dword [ebp - 0x284], esi
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], ax
push 0x13
push str.GetDriveInformation
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], eax
mov byte [ebp - 0x54], al
call fcn.00407228
push 4
mov dword [ebp - 4], 1
call fcn.00415250
mov ecx, eax
call fcn.004152d0
test al, al
je 0x4349c3
lea eax, [ebp - 0x50]
mov byte [ebp - 0x54], 1
push eax
push str.Entering:
push 4
call fcn.00415250
mov ecx, eax
call fcn.00414940
push eax
call fcn.00415250
push eax
call fcn.0040e050
add esp, 8
push eax
call fcn.0040dcd0
add esp, 8
push eax
call fcn.0040e050
push eax
call fcn.0040e570
add esp, 0xc
call fcn.00415250
mov ecx, eax
call fcn.00415230
mov eax, dword [edi]
mov dword [edi + 4], eax
push 0x322
mov dword [esi], 0
mov dword [esi + 4], 0
mov byte [ebp - 4], 2
call fcn.0044fc06
add esp, 4
mov ebx, eax
push ebx
push 0x190
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor eax, eax
cmp ax, word [ebx]
je 0x434c7b
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x434c15
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x280]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x434c15
push 0x220
lea eax, [ebp - 0x274]
push 0
push eax
call fcn.0059a520
mov esi, dword [ebp - 0x280]
add esp, 0xc
mov ecx, dword [ebp - 0x290]
mov edx, dword [ebp - 0x27c]
mov eax, dword [ebp - 0x28c]
mov dword [ebp - 0x26c], esi
sub esi, ecx
mov dword [ebp - 0x268], edx
sbb edx, eax
mov dword [ebp - 0x270], eax
xor eax, eax
mov dword [ebp - 0x274], ecx
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x260], edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp word [ebx], ax
jne 0x434aa1
xor ecx, ecx
jmp 0x434ab5
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x434aa6
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00407228
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 3
cmp eax, 0x100
jbe 0x434af9
cmp eax, 0xff
jae 0x434ade
push str.invalid_string_position
call fcn.005975f0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0xff
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [eax + 0x1fe], cx
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 0x284]
mov eax, dword [ebp - 0x280]
push ebx
add dword [ecx], eax
mov eax, dword [ebp - 0x27c]
adc dword [ecx + 4], eax
call fcn.00434ca0
add esp, 4
cmp eax, 0xffffffff
je 0x434b76
push 0
lea ecx, [ebp - 0x294]
mov dword [ebp - 0x30], 0
push ecx
push 0xc
lea ecx, [ebp - 0x38]
xorps xmm0, xmm0
push ecx
push 0
push 0
push 0x2d1080
push eax
movq qword [ebp - 0x38], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x434b76
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0
mov esi, dword [edi + 4]
lea eax, [ebp - 0x274]
cmp eax, esi
jae 0x434bcb
mov eax, dword [edi]
lea ecx, [ebp - 0x274]
cmp eax, ecx
ja 0x434bcb
sub ecx, eax
mov eax, 0x78787879
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x288], eax
cmp esi, dword [edi + 8]
jne 0x434bb6
push 1
mov ecx, edi
call fcn.00435120
imul esi, dword [ebp - 0x288], 0x220
mov eax, dword [edi + 4]
add esi, dword [edi]
test eax, eax
je 0x434bf5
jmp 0x434be6
cmp esi, dword [edi + 8]
jne 0x434bd9
push 1
mov ecx, edi
call fcn.00435120
mov eax, dword [edi + 4]
test eax, eax
je 0x434bf5
lea esi, [ebp - 0x274]
mov ecx, 0x88
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x278]
add dword [edi + 4], 0x220
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x434c15
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.0040745d
xor eax, eax
cmp ax, word [ebx]
je 0x434c2a
nop dword [eax]
add ebx, 2
xor eax, eax
cmp ax, word [ebx]
jne 0x434c20
add ebx, 2
jmp 0x4349f4
lea ecx, [ebp - 0x54]
call fcn.0040ef80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00595c5d
mov esp, ebp
pop ebp
ret