Function at 0x436240
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 [0x644040]
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 0x3d9
push str.file_util_win.cc
push str.DevicePathToDriveLetterPath
push edi
call fcn.005068d0
add esp, 0x10
xor eax, eax
mov ecx, esi
push eax
push eax
call fcn.00520200
mov dword [esp + 0x28], 0xa
mov al, byte [0x649446]
test al, al
jne 0x436598
push 0x800
push 0
push edi
call fcn.00569910
add esp, 0xc
push edi
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x436504
lea ebx, [esp + 0x80]
push 0x208
push 0xff
push ebx
call fcn.00569910
add esp, 0xc
mov dword [esp + 0x7c], 0x3a
movzx eax, word [esp + 0x288]
test ax, ax
je 0x436504
lea ecx, [esp + 0x7a]
mov edx, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
xor esi, esi
dec esi
mov dword [esp], ecx
jmp 0x43635d
cmp byte [esp + 0x3f], 0
jns 0x43632e
push dword [esp + 0x34]
call fcn.00564ea0
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 0x436344
movzx eax, word [edi]
test ax, ax
lea ecx, [esp + 0x7a]
je 0x436504
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 0x43633e
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
push ebx
call fcn.005666c2
add esp, 4
lea esi, [esp + 0x34]
mov ecx, esi
push eax
push ebx
call fcn.0054e8c0
mov ecx, esi
mov ebx, dword [ebp + 8]
push ebx
call fcn.004365d0
test al, al
jne 0x4363b8
mov ecx, esi
push 0
push ebx
call fcn.00410220
test al, al
je 0x43631b
lea eax, [esp + 0x80]
push eax
call fcn.005666c2
add esp, 4
lea edx, [esp + 0x28]
lea esi, [esp + 8]
mov ecx, esi
push edx
push 0xffffffffffffffff
push eax
push ebx
call fcn.0053a010
lea eax, [esp + 0x7a]
push eax
call fcn.005666c2
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 0x436508
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.00429800
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 0x436577
mov esi, dword [ebp + 0xc]
je 0x436478
test eax, eax
je 0x43658b
lea ecx, [esp + 0x28]
push edx
push eax
call fcn.0054e8c0
cmp byte [esi + 0xb], 0
jns 0x436493
push dword [esi]
call fcn.00564ea0
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 0x4364c3
push dword [esp + 0x18]
call fcn.00564ea0
add esp, 4
cmp byte [esp + 0x13], 0
js 0x43657a
cmp byte [esp + 0x3f], 0
jns 0x4364e1
push dword [esp + 0x34]
call fcn.00564ea0
add esp, 4
mov bl, 1
lea ecx, [esp + 0x40]
call fcn.0053b480
mov ecx, dword [esp + 0xa88]
xor ecx, ebp
call fcn.00568175
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x4364e3
test edi, edi
je 0x436430
test cl, cl
jns 0x436518
mov esi, dword [esp + 8]
test ebx, ebx
je 0x43654e
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.00569390
add esp, 0xc
lea eax, [edi + edi]
push eax
push dword [esp + 4]
push esi
call fcn.00569390
add esp, 0xc
add ebx, edi
cmp byte [esp + 0x13], 0
jns 0x43658e
mov dword [esp + 0xc], ebx
mov word [esi + ebx*2], 0
jmp 0x436430
int3
push dword [esp + 8]
call fcn.00564ea0
add esp, 4
jmp 0x4364ce
int3
mov eax, ebx
and al, 0x7f
mov byte [esp + 0x13], al
jmp 0x43656c
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.005b8bd0
add esp, 8
jmp 0x4362b2