Function at 0x41a4b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54bf8b
mov eax, dword fs:[0]
push eax
sub esp, 0x73c
mov eax, dword [0x60c9c8]
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.00531fb0
push 0xfe
lea ecx, [ebp - 0x116]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x118], ax
call fcn.00531fb0
add esp, 0x18
call fcn.0043e2f8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41a54b
push 0x80004005
call fcn.00402a80
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 0x41a6f6
push str.GetProcessImageFileNameW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x41a6d8
push esi
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x738], eax
test eax, eax
je 0x41a6d8
push 0x208
lea ecx, [ebp - 0x730]
push ecx
push eax
call ebx
test eax, eax
je 0x41a6d8
lea edx, [ebp - 0x118]
push edx
push 0x80
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x41a6d8
lea eax, [ebp - 0x730]
push eax
lea ecx, [ebp - 0x734]
call fcn.00403770
mov edi, dword [ebp - 0x734]
xor ebx, ebx
lea esi, [ebp - 0x118]
cmp word [ebp - 0x118], bx
je 0x41a6d8
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.00531fb0
push 2
push esi
lea ecx, [ebp - 0x18]
push 3
push ecx
call fcn.00533b6b
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 0x41a67a
lea ecx, [ebp - 0x320]
push ecx
push edi
call fcn.00533a71
add esp, 8
cmp eax, ebx
je 0x41a67a
sub eax, edi
sar eax, 1
je 0x41a6a0
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41a680
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 2], bx
lea esi, [esi + eax*2 + 2]
jne 0x41a610
jmp 0x41a6d8
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x734]
call fcn.0040c7f0
lea ecx, [ebp - 0x734]
push ecx
mov ecx, dword [ebp - 0x744]
mov dword [ebp - 0x73c], 1
call fcn.004034d0
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 0x41a6f6
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 0x41a719
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.00531f97
mov esp, ebp
pop ebp
ret 8