Function at 0x4341a0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4adf18
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x4caef0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x1c]
call fcn.0040a290
mov dword [ebp - 4], 0
mov eax, 0x41
mov word [ebp - 0x28], ax
mov dword [ebp - 0x10], 0x20
mov dword [ebp - 0x14], 0
jmp 0x434217
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0x20
jge 0x43449d
mov edx, dword [ebp - 0x18]
and edx, 1
je 0x434484
lea ecx, [ebp - 0x30]
call fcn.0040a290
mov byte [ebp - 4], 1
push 1
movzx eax, word [ebp - 0x28]
push eax
lea ecx, [ebp - 0x60]
call fcn.00434c60
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x84]
push edx
lea ecx, [ebp - 0x30]
call fcn.0040a370
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.0040a350
push 0x4bec00
lea ecx, [ebp - 0x30]
call fcn.00434e10
push 0x4bec04
lea eax, [ebp - 0x30]
push eax
call fcn.00435170
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4342bd
mov dx, word [ebp - 0x28]
add dx, 1
mov word [ebp - 0x28], dx
mov eax, dword [ebp - 0x18]
shr eax, 1
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0040a350
jmp 0x43420e
mov ecx, dword [0x4d5328]
mov dword [ebp - 0x44], ecx
mov edx, dword [0x4d532c]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], 0x40000000
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x64], esp
lea eax, [ebp - 0x30]
push eax
call fcn.0040a2b0
mov dword [ebp - 0x88], eax
call fcn.00427ee0
add esp, 4
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x434325
cmp dword [ebp - 0x40], 1
jb 0x434325
ja 0x43431e
cmp dword [ebp - 0x44], 0
jbe 0x434325
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x2c]
call fcn.0040a290
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040a370
push 1
lea edx, [ebp - 0x6c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040a5c0
mov dword [ebp - 0x90], eax
push 0x4bec0c
mov eax, dword [ebp - 0x90]
push eax
call fcn.00435190
add esp, 8
mov byte [ebp - 0x65], al
lea ecx, [ebp - 0x6c]
call fcn.0040a350
movzx ecx, byte [ebp - 0x65]
test ecx, ecx
je 0x434385
push 0x4bec10
lea ecx, [ebp - 0x2c]
call fcn.00434e10
lea edx, [ebp - 0x70]
push edx
call fcn.00427b70
add esp, 4
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x98]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00434df0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.0040a350
push ecx
mov ecx, esp
mov dword [ebp - 0x74], esp
lea edx, [ebp - 0x2c]
push edx
call fcn.0040a2b0
mov dword [ebp - 0x9c], eax
call fcn.00427830
add esp, 4
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
je 0x43441a
push ecx
mov ecx, esp
mov dword [ebp - 0x78], esp
lea eax, [ebp - 0x30]
push eax
call fcn.0040a2b0
mov dword [ebp - 0xa4], eax
call fcn.00427890
add esp, 4
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
jne 0x434421
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x34], 0
je 0x43446c
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040a8b0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [ebp - 0x20]
jb 0x43446c
ja 0x434454
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp - 0x24]
jbe 0x43446c
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0040a370
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.0040a350
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0040a350
mov ax, word [ebp - 0x28]
add ax, 1
mov word [ebp - 0x28], ax
mov ecx, dword [ebp - 0x18]
shr ecx, 1
mov dword [ebp - 0x18], ecx
jmp 0x43420e
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040a2b0
mov eax, dword [ebp - 0x7c]
or eax, 1
mov dword [ebp - 0x7c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040a350
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret