Function at 0x409e03
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4100a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0x4028a4
mov dword [ebp - 0x1c], esi
call fcn.00407fab
test al, al
jne 0x409e43
push 0x40282c
mov ecx, esi
call fcn.00407fab
mov edx, 0x800
test al, al
je 0x409e48
mov edx, 0x104
and dword [ebp - 0x18], 0
mov ecx, edi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x18]
jne 0x409e51
sub ecx, ebx
sar ecx, 1
cmp ecx, edx
jae 0x40a1ad
mov ecx, dword [esi + 0x1c]
call fcn.0040e6d4
movzx ebx, ax
mov ecx, esi
push 0x2e
pop eax
mov word [ebp - 0xe], ax
mov word [ebp - 0xc], ax
xor eax, eax
push 0x4028a4
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x10], bx
mov word [ebp - 0xa], bx
mov word [ebp - 8], ax
call fcn.00407fab
test al, al
je 0x409f60
mov ecx, 0x4025cc
mov eax, edi
mov dx, word [eax]
xor ebx, ebx
inc ebx
cmp dx, word [ecx]
jne 0x409ed4
test dx, dx
je 0x409ed0
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409ed4
add eax, 4
add ecx, 4
test dx, dx
jne 0x409eab
xor eax, eax
jmp 0x409ed8
sbb eax, eax
or eax, ebx
test eax, eax
je 0x409f53
push 3
lea eax, [ebp - 0xe]
push eax
push edi
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x409f53
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.msvcrt.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x409f53
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x18]
jne 0x409f06
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jb 0x409f4f
mov ecx, edi
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x409f22
sub ecx, edx
lea eax, [ebp - 0x10]
sar ecx, 1
add ecx, 0xfffffffd
push 3
push eax
lea eax, [edi + ecx*2]
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
mov ebx, eax
neg ebx
sbb ebx, ebx
neg ebx
test ebx, ebx
jne 0x409f5d
mov ebx, 0xc00d132b
jmp 0x40a1b2
mov ebx, dword [ebp - 0x14]
push 0x4028a4
mov ecx, esi
call fcn.00407fab
test al, al
je 0x409fa6
mov ecx, edi
call fcn.0040e742
test al, al
je 0x409f9c
push 4
push 0x4025d4
push edi
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x409f9c
add edi, 4
xor eax, eax
mov ebx, eax
jmp 0x40a19a
mov ebx, 0xc00d1327
jmp 0x40a1b2
push 0x40286c
mov ecx, esi
call fcn.00407fab
test al, al
jne 0x40a00f
push 0x402878
mov ecx, esi
call fcn.00407fab
test al, al
jne 0x409f93
push 0x40283c
mov ecx, esi
call fcn.00407fab
test al, al
je 0x40a0aa
movzx eax, word [edi]
mov ebx, 0xc00d1327
cmp eax, 0x41
jb 0x409fec
cmp eax, 0x5a
jbe 0x409ff9
add eax, 0xffffff9f
cmp ax, 0x19
ja 0x40a1b2
movzx eax, word [edi + 2]
cmp ax, word [ebp - 0x14]
jne 0x40a098
add edi, 4
jmp 0x40a060
add edi, 2
movzx eax, word [edi]
push eax
call dword [sym.imp.msvcrt.dll_iswdigit]
pop ecx
test eax, eax
jne 0x40a00c
movzx eax, word [edi]
cmp ax, bx
je 0x40a02f
test ax, ax
jne 0x409f9c
mov ecx, eax
test ax, ax
je 0x40a04b
add edi, 2
movzx eax, word [edi]
push eax
call dword [sym.imp.msvcrt.dll_iswdigit]
pop ecx
test eax, eax
jne 0x40a036
movzx ecx, word [edi]
movzx ebx, cx
neg ebx
sbb ebx, ebx
and ebx, 0xc00d1327
jmp 0x40a196
add edi, 2
movzx eax, word [edi]
push eax
call dword [sym.imp.msvcrt.dll_iswdigit]
pop ecx
test eax, eax
jne 0x40a05d
movzx eax, word [edi]
cmp ax, word [ebp - 0x14]
jne 0x40a098
add edi, 2
movzx eax, word [edi]
push eax
call dword [sym.imp.msvcrt.dll_iswdigit]
pop ecx
test eax, eax
jne 0x40a078
movzx eax, word [edi]
neg eax
sbb eax, eax
and ebx, eax
jmp 0x40a196
test ax, ax
jne 0x40a1b2
xor eax, eax
mov ebx, eax
jmp 0x40a196
push 0x40282c
mov ecx, esi
call fcn.00407fab
test al, al
je 0x40a14a
lea ecx, [ebp - 0x34]
mov ebx, 0xc00d1327
call fcn.004067af
push 3
push edi
lea ecx, [ebp - 0x34]
call fcn.004068ca
test eax, eax
js 0x40a140
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x40a140
push 0x402e78
lea ecx, [ebp - 0x40]
call fcn.004072bb
push edi
lea ecx, [ebp - 0x28]
call fcn.004072bb
lea ecx, [ebp - 0x40]
call fcn.00406d2f
lea ecx, [ebp - 0x28]
lea esi, [eax + 2]
call fcn.00406d2f
cmp eax, esi
jne 0x40a12d
push 2
push 0x402e78
lea ecx, [ebp - 0x28]
call fcn.00406f2d
sub eax, 2
neg eax
sbb eax, eax
and ebx, eax
lea ecx, [ebp - 0x28]
call fcn.00406a9c
lea ecx, [ebp - 0x40]
call fcn.00406a9c
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x34]
call fcn.00406a9c
jmp 0x40a196
push 0x4027e0
mov ecx, esi
call fcn.00407fab
test al, al
jne 0x40a178
push 0x4027b0
mov ecx, esi
call fcn.00407fab
test al, al
jne 0x40a178
cmp word [edi], bx
jne 0x409f9c
jmp 0x409f93
push 4
push 0x4025e0
push edi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x409f93
mov ebx, 0xc00d1327
test ebx, ebx
js 0x40a1b2
push edi
mov ecx, esi
call fcn.00409d86
test eax, eax
je 0x40a1b2
mov ebx, 0xc00d1325
jmp 0x40a1b2
mov ebx, 0xc00d1331
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f200
mov esp, ebp
pop ebp
ret 4