Function at 0x409d90
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d19b
mov eax, dword fs:[0]
push eax
sub esp, 0x73c
mov eax, dword [0x5976b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x40e
lea edx, [ebp - 0x72e]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0x744], eax
mov dword [ebp - 0x73c], ebx
mov dword [ebp - 0x738], ebx
mov word [ebp - 0x730], cx
call fcn.005149a0
push 0xfe
lea ecx, [ebp - 0x116]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x118], ax
call fcn.005149a0
add esp, 0x18
call fcn.004170fe
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x409e2b
push 0x80004005
call fcn.00401550
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x734], edi
push str.psapi.dll
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x740], eax
cmp eax, ebx
je 0x409fd6
push str.GetProcessImageFileNameW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x409fb8
push esi
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x738], eax
test eax, eax
je 0x409fb8
push 0x208
lea ecx, [ebp - 0x730]
push ecx
push eax
call ebx
test eax, eax
je 0x409fb8
lea edx, [ebp - 0x118]
push edx
push 0x80
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x409fb8
lea eax, [ebp - 0x730]
push eax
lea ecx, [ebp - 0x734]
call fcn.004047d0
mov edi, dword [ebp - 0x734]
xor ebx, ebx
lea esi, [ebp - 0x118]
cmp word [ebp - 0x118], bx
je 0x409fb8
lea esp, [esp]
push 0x206
lea eax, [ebp - 0x31e]
xor ecx, ecx
xor edx, edx
push ebx
push eax
mov word [ebp - 0x18], cx
mov dword [ebp - 0x16], ebx
mov word [ebp - 0x320], dx
call fcn.005149a0
push 2
push esi
lea ecx, [ebp - 0x18]
push 3
push ecx
call fcn.00516051
add esp, 0x1c
push 0x104
lea edx, [ebp - 0x320]
push edx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp dword [edi - 0xc], ebx
jl 0x409f5a
lea ecx, [ebp - 0x320]
push ecx
push edi
call fcn.005154df
add esp, 8
cmp eax, ebx
je 0x409f5a
sub eax, edi
sar eax, 1
je 0x409f80
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409f60
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], bx
lea esi, [esi + eax*2 + 2]
jne 0x409ef0
jmp 0x409fb8
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x734]
call fcn.00404290
lea ecx, [ebp - 0x734]
push ecx
mov ecx, dword [ebp - 0x744]
mov dword [ebp - 0x73c], 1
call fcn.00404700
mov edi, dword [ebp - 0x734]
mov edx, dword [ebp - 0x740]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x738]
test eax, eax
je 0x409fd6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409ff9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x73c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00514990
mov esp, ebp
pop ebp
ret 8