Function at 0x403810
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e2fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x4e8
mov eax, dword [0x66a344]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4f4], ecx
mov dword [ebp - 0x4e4], 0
push 0x5f5b88
lea ecx, [ebp - 0x4e0]
call fcn.00404a20
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x4038a0
lea eax, [ebp - 0x4e0]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404910
mov ecx, dword [ebp - 0x4e4]
or ecx, 1
mov dword [ebp - 0x4e4], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4e0]
call fcn.00404b90
mov eax, dword [ebp + 8]
jmp 0x403a99
lea edx, [ebp - 0x4c8]
push edx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x403a66
mov dword [ebp - 0x4e8], 0
jmp 0x4038d5
mov eax, dword [ebp - 0x4e8]
add eax, 4
mov dword [ebp - 0x4e8], eax
mov ecx, dword [ebp - 0x4e8]
movzx edx, word [ebp + ecx*2 - 0x4c8]
test edx, edx
je 0x403a66
push 0x5f5b8c
mov eax, dword [ebp - 0x4e8]
lea ecx, [ebp + eax*2 - 0x4c8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403925
push 0x5f5b94
mov edx, dword [ebp - 0x4e8]
lea eax, [ebp + edx*2 - 0x4c8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x403927
jmp 0x4038c6
mov ecx, 2
imul edx, ecx, 0
mov eax, dword [ebp - 0x4e8]
mov cx, word [ebp + eax*2 - 0x4c8]
mov word [ebp + edx - 0x18], cx
mov edx, 2
shl edx, 0
mov eax, dword [ebp - 0x4e8]
mov cx, word [ebp + eax*2 - 0x4c6]
mov word [ebp + edx - 0x18], cx
mov edx, 2
shl edx, 1
mov dword [ebp - 0x4ec], edx
cmp dword [ebp - 0x4ec], 6
jae 0x403975
jmp 0x40397a
call fcn.0043c0e1
xor eax, eax
mov ecx, dword [ebp - 0x4ec]
mov word [ebp + ecx - 0x18], ax
push 0x64
lea edx, [ebp - 0xe0]
push edx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x4039d4
push 0x5f5b9c
mov ecx, dword [ebp + 8]
call fcn.00404a20
mov ecx, dword [ebp - 0x4e4]
or ecx, 1
mov dword [ebp - 0x4e4], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4e0]
call fcn.00404b90
mov eax, dword [ebp + 8]
jmp 0x403a99
lea edx, [ebp - 0xe0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x4f0], eax
mov eax, dword [ebp - 0x4f0]
push eax
lea ecx, [ebp - 0xe0]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004affc4
add esp, 0xc
test eax, eax
jne 0x403a61
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x4e0]
call fcn.00406640
mov ecx, dword [ebp - 0x4f0]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
push eax
lea ecx, [ebp - 0x4e0]
call fcn.00406640
lea ecx, [ebp - 0x4e0]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00404910
mov edx, dword [ebp - 0x4e4]
or edx, 1
mov dword [ebp - 0x4e4], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4e0]
call fcn.00404b90
mov eax, dword [ebp + 8]
jmp 0x403a99
jmp 0x4038c6
lea eax, [ebp - 0x4e0]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404910
mov ecx, dword [ebp - 0x4e4]
or ecx, 1
mov dword [ebp - 0x4e4], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4e0]
call fcn.00404b90
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043c1bd
mov esp, ebp
pop ebp
ret 8