Function at 0x405374
Capabilities:
Get disk information

Disassembly:
push ebp
sub esp, 0x250
lea ebp, [esp - 4]
mov eax, dword [0x48e5fc]
xor eax, ebp
mov dword [ebp + 0x250], eax
push 0x60
mov eax, 0x46c891
call fcn.00451935
mov eax, dword [ebp + 0x25c]
push 5
pop ecx
mov esi, 0x47b754
lea edi, [ebp + 0x230]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x260]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x264]
xor ebx, ebx
mov dword [ebp - 0x30], eax
mov byte [ebp - 0xd], bl
mov word [ebp + 0x248], 0x20
mov word [ebp + 0x24a], 0x3a
mov word [ebp + 0x24c], 0x5c
mov word [ebp + 0x24e], bx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], ebx
or esi, 0xffffffff
cmp byte [ebp - 0xd], bl
jne 0x4055a7
mov edx, dword [ebp - 0x28]
xor edi, edi
inc edi
mov eax, edi
shl eax, cl
test edx, eax
je 0x405597
lea eax, [ebp + 0x248]
add ecx, 0x41
push eax
mov word [ebp + 0x248], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x405440
cmp eax, 6
jne 0x405597
mov eax, dword [ebp - 0x18]
push ebx
push ebx
push 3
push ebx
add eax, 0x30
inc dword [ebp - 0x18]
push 3
mov word [ebp + 0x240], ax
push 0xc0000000
lea eax, [ebp + 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, esi
mov dword [ebp - 0x1c], eax
je 0x405597
mov dword [ebp - 0x14], ebx
push 0x22d
lea eax, [ebp]
push ebx
push eax
call fcn.00449330
push 8
lea eax, [ebp + 4]
push 0x47b76c
push eax
mov dword [ebp], 0x1c
mov dword [ebp + 0xc], 0x2710
mov dword [ebp + 0x18], 0x211
mov dword [ebp + 0x10], 0x1b0501
call fcn.004495c0
mov al, byte [ebp - 0x14]
add esp, 0x18
push ebx
mov byte [ebp + 0x28], al
lea eax, [ebp - 0x34]
push eax
push 0x22d
lea eax, [ebp]
push eax
push 0x3c
push eax
push 0x4d008
push dword [ebp - 0x1c]
mov byte [ebp + 0x26], 0xec
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x405581
cmp byte [ebp + 0x62], bl
je 0x405581
push 0x13
lea eax, [ebp + 0x2c]
push eax
push 0xa
pop ecx
lea edx, [ebp - 0x50]
call fcn.00404a08
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
push esi
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00409767
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], esi
call fcn.00409695
push 0x2e
lea eax, [ebp + 0x2c]
push eax
push 0x1b
pop ecx
lea edx, [ebp - 0x50]
call fcn.00404a08
pop ecx
pop ecx
mov ecx, dword [ebp - 0x24]
push esi
push ebx
push eax
mov dword [ebp - 4], edi
call fcn.00409767
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], esi
call fcn.00409695
push 0x1a
lea eax, [ebp + 0x2c]
push eax
push 0x17
pop ecx
lea edx, [ebp - 0x6c]
call fcn.00404a08
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30]
push esi
push ebx
push eax
mov dword [ebp - 4], 2
call fcn.00409767
push ebx
push edi
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], esi
call fcn.00409695
mov byte [ebp - 0xd], 1
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jl 0x405477
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
inc ecx
cmp ecx, 0x20
mov dword [ebp - 0x20], ecx
jl 0x405400
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.00448d93
add ebp, 0x254
leave
ret