Function at 0x439720
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa90
mov eax, dword [0x646040]
xor eax, ebp
mov dword [esp + 0xa88], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x40]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea edi, [esp + 0x288]
push 0x3de
push str.file_util_win.cc
push str.DevicePathToDriveLetterPath
push edi
call fcn.00509c60
add esp, 0x10
xor eax, eax
mov ecx, esi
push eax
push eax
call fcn.00520c00
mov dword [esp + 0x28], 0xa
mov al, byte [0x64b456]
test al, al
jne 0x439a7e
push 0x800
push 0
push edi
call fcn.00568ad0
add esp, 0xc
push edi
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4399ea
lea ebx, [esp + 0x80]
push 0x208
push 0xff
push ebx
call fcn.00568ad0
add esp, 0xc
mov dword [esp + 0x7c], 0x3a
movzx eax, word [esp + 0x288]
test ax, ax
je 0x4399ea
lea ecx, [esp + 0x7a]
mov edx, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
xor esi, esi
dec esi
mov dword [esp], ecx
jmp 0x43983d
cmp byte [esp + 0x3f], 0
jns 0x43980e
push dword [esp + 0x34]
call fcn.00564050
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea ebx, [esp + 0x80]
xor esi, esi
dec esi
mov edx, edi
mov edi, dword [esp + 4]
cmp word [edi], 0
lea edi, [edi + 2]
jne 0x439824
movzx eax, word [edi]
test ax, ax
lea ecx, [esp + 0x7a]
je 0x4399ea
mov dword [esp + 4], edi
mov word [esp + 0x7a], ax
push 0x104
push ebx
push ecx
mov edi, edx
call edx
test eax, eax
je 0x43981e
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
push ebx
call fcn.00565872
add esp, 4
lea esi, [esp + 0x34]
mov ecx, esi
push eax
push ebx
call fcn.00550a00
mov ecx, esi
mov ebx, dword [ebp + 8]
push ebx
call fcn.00439ab0
test al, al
jne 0x439898
mov ecx, esi
push 0
push ebx
call fcn.0041ca10
test al, al
je 0x4397fb
lea eax, [esp + 0x80]
push eax
call fcn.00565872
add esp, 4
lea edx, [esp + 0x28]
lea esi, [esp + 8]
mov ecx, esi
push edx
push 0xffffffffffffffff
push eax
push ebx
call fcn.0053c060
lea eax, [esp + 0x7a]
push eax
call fcn.00565872
add esp, 4
movsx ecx, byte [esi + 0xb]
mov edi, 0x7fffffff
and edi, dword [esi + 8]
dec edi
test ecx, ecx
mov ebx, dword [esi + 4]
cmovns ebx, ecx
mov edx, 4
cmovs edx, edi
mov edi, eax
mov eax, edx
sub eax, ebx
cmp eax, edi
jae 0x4399ee
mov eax, edi
add eax, ebx
sub eax, edx
lea ecx, [esp + 8]
lea esi, [esp + 0x7a]
push esi
push edi
xor esi, esi
push esi
push esi
push ebx
push eax
push edx
call fcn.00418870
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
mov dword [eax + 8], ecx
movsd xmm0, qword [esp + 8]
movsd qword [eax], xmm0
xorps xmm0, xmm0
movsd qword [esp + 8], xmm0
mov dword [esp + 0x10], 0
movsx edx, byte [eax + 0xb]
test edx, edx
cmovs edx, dword [eax + 4]
cmovs eax, dword [eax]
test edx, edx
js 0x439a5d
sete cl
test eax, eax
setne ch
or ch, cl
mov esi, dword [ebp + 0xc]
je 0x439a60
lea ecx, [esp + 0x28]
push edx
push eax
call fcn.00550a00
cmp byte [esi + 0xb], 0
jns 0x439979
push dword [esi]
call fcn.00564050
add esp, 4
mov eax, dword [esp + 0x30]
mov dword [esi + 8], eax
movsd xmm0, qword [esp + 0x28]
movsd qword [esi], xmm0
mov byte [esp + 0x33], 0
mov word [esp + 0x28], 0
cmp byte [esp + 0x23], 0
jns 0x4399a9
push dword [esp + 0x18]
call fcn.00564050
add esp, 4
cmp byte [esp + 0x13], 0
js 0x439a63
cmp byte [esp + 0x3f], 0
jns 0x4399c7
push dword [esp + 0x34]
call fcn.00564050
add esp, 4
mov bl, 1
lea ecx, [esp + 0x40]
call fcn.00540880
mov ecx, dword [esp + 0xa88]
xor ecx, ebp
call fcn.00567335
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x4399c9
test edi, edi
je 0x439910
test cl, cl
jns 0x4399fe
mov esi, dword [esp + 8]
test ebx, ebx
je 0x439a34
lea eax, [esi + ebx*2]
xor ecx, ecx
lea edx, [esp + 0x7a]
cmp eax, edx
mov eax, 0
cmova eax, edi
cmp esi, edx
cmova eax, ecx
lea eax, [esp + eax*2]
add eax, 0x7a
mov dword [esp], eax
lea eax, [esi + edi*2]
lea ecx, [ebx + ebx]
push ecx
push esi
push eax
call fcn.00568550
add esp, 0xc
lea eax, [edi + edi]
push eax
push dword [esp + 4]
push esi
call fcn.00568550
add esp, 0xc
add ebx, edi
cmp byte [esp + 0x13], 0
jns 0x439a74
mov dword [esp + 0xc], ebx
mov word [esi + ebx*2], 0
jmp 0x439910
int3
int3
push dword [esp + 8]
call fcn.00564050
add esp, 4
jmp 0x4399b4
mov eax, ebx
and al, 0x7f
mov byte [esp + 0x13], al
jmp 0x439a52
movzx ecx, al
lea eax, [esp + 0x80]
mov dword [eax], edi
lea esi, [esp + 0x34]
mov dword [esi], str.ScopedBlockingCall
lea edx, [esp + 0x28]
push eax
push esi
call fcn.005b7340
add esp, 8
jmp 0x439792