Function at 0x4395be
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x573510]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push eax
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x254], edi
call fcn.0040aa70
lea eax, [ebp - 0x24c]
push eax
call fcn.00439098
pop ecx
test al, al
je 0x439616
mov bl, 1
push edi
push 1
lea ecx, [ebp - 0x24c]
call fcn.00402ea0
mov al, bl
jmp 0x43986a
push edi
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x218], 7
call fcn.00403630
lea eax, [ebp - 0x230]
push eax
push esi
call fcn.004390fa
pop ecx
pop ecx
test al, al
jne 0x439651
push edi
push 1
lea ecx, [ebp - 0x230]
call fcn.00402ea0
xor bl, bl
jmp 0x439601
mov eax, dword [ebp - 0x238]
dec eax
push eax
lea ecx, [ebp - 0x24c]
call fcn.00405450
cmp word [eax], 0x5c
jne 0x4396b3
lea eax, [ebp - 0x24d]
push eax
mov eax, dword [ebp - 0x238]
dec eax
push eax
push edi
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x270]
call fcn.00405d00
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00402d90
xor ebx, ebx
push edi
inc ebx
push ebx
lea ecx, [ebp - 0x270]
call fcn.00402ea0
jmp 0x4396b6
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x234], 8
mov ecx, dword [ebp - 0x248]
jae 0x4396cb
lea ecx, [ebp - 0x248]
cmp dword [ebp - 0x218], 8
mov eax, dword [ebp - 0x22c]
jae 0x4396e0
lea eax, [ebp - 0x22c]
push ecx
push eax
call fcn.004574ac
pop ecx
pop ecx
test eax, eax
jne 0x4396ff
push edi
push ebx
lea ecx, [ebp - 0x230]
call fcn.00402ea0
jmp 0x4395ff
push ebx
push edi
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x254], 0x3a
call fcn.00406520
mov esi, eax
cmp esi, edi
je 0x43984e
cmp esi, 0xffffffff
je 0x43984e
cmp esi, ebx
jbe 0x439750
lea eax, [esi - 2]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00405450
cmp word [eax], 0x5c
je 0x439750
push edi
push ebx
jmp 0x439642
xor eax, eax
mov word [ebp - 0xc], ax
lea edi, [ebp - 0xa]
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esi - 1]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00405450
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x439836
cmp eax, edi
je 0x439836
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4397a1
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, dword [ebp - 0x238]
sub eax, esi
lea eax, [eax + edi - 1]
cmp eax, dword [ebp - 0x21c]
jne 0x439836
cmp dword [ebp - 0x218], 8
mov eax, dword [ebp - 0x22c]
jae 0x4397da
lea eax, [ebp - 0x22c]
push edi
lea ecx, [ebp - 0x214]
push ecx
push eax
call fcn.004572f5
add esp, 0xc
test eax, eax
jne 0x439836
inc esi
push esi
lea ecx, [ebp - 0x24c]
call fcn.00405450
push eax
push edi
lea ecx, [ebp - 0x230]
call fcn.00405450
push eax
call fcn.004574ac
pop ecx
pop ecx
test eax, eax
jne 0x439836
push eax
push 1
lea ecx, [ebp - 0x230]
call fcn.00402ea0
push 0
push 1
lea ecx, [ebp - 0x24c]
call fcn.00402ea0
mov al, 1
jmp 0x43986a
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.00402ea0
xor bl, bl
xor edi, edi
jmp 0x439601
push edi
push ebx
lea ecx, [ebp - 0x230]
call fcn.00402ea0
push edi
push ebx
lea ecx, [ebp - 0x24c]
call fcn.00402ea0
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045633d
leave
ret