Function at 0x4386d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464fa1
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x479008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
call fcn.004015e0
cmp byte [0x47b1a1], 0
jne 0x43885a
mov ecx, ebx
call fcn.004015e0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x438744
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.0041bfdb
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
push esi
push edi
mov dword [ebp - 4], 0
call ebx
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x438915
cmp ebx, edi
ja 0x438915
lea ecx, [ebp - 0x40]
call fcn.00435600
xor ecx, ecx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x438845
mov eax, dword [ebp - 0x1c]
mov ebx, 1
mov dword [ebp - 0x18], eax
cmp byte [esi + ebx - 1], 0
jne 0x438835
lea eax, [ecx + esi]
push eax
lea ecx, [ebp - 0x40]
call fcn.004358f0
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
neg eax
sbb edi, edi
inc edi
mov byte [ebp - 4], 2
push 8
mov dword [ebp - 0x34], 0
call fcn.0041bfdb
xor ecx, ecx
mov dword [ebp - 0x34], eax
add esp, 4
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x40]
mov dword [ebp - 0x2c], 3
mov word [eax], cx
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 0x10]
or eax, 2
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
call fcn.00435ac0
mov edi, dword [ebp - 0x10]
and edi, 0xfffffffd
mov dword [ebp - 4], 1
or edi, 1
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 3
call fcn.00401660
mov byte [ebp - 4], 1
push dword [ebp - 0x34]
call fcn.0041bebc
mov eax, dword [ebp - 0x18]
add esp, 4
mov ecx, ebx
inc ebx
sub eax, 1
mov dword [ebp - 0x18], eax
jne 0x438793
mov ebx, dword [ebp - 0x1c]
push dword [ebp - 0x40]
cmp ecx, ebx
sete bl
call fcn.0041bebc
add esp, 4
jmp 0x438917
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
je 0x438730
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041bfdb
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
push esi
push ebx
mov dword [ebp - 4], 4
call edi
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x438915
cmp edi, ebx
ja 0x438915
lea ecx, [ebp - 0x40]
call fcn.00435780
xor eax, eax
mov byte [ebp - 4], 5
xor ebx, ebx
mov dword [ebp - 0x1c], eax
test edi, edi
je 0x438903
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edi, 2
cmp word [esi + edi - 2], 0
jne 0x4388f5
lea eax, [ecx + esi]
push eax
lea ecx, [ebp - 0x40]
call fcn.004357b0
mov ecx, dword [ebp - 0x20]
lea eax, [ebx + 1]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x24], edi
call fcn.00401660
mov eax, dword [ebp - 0x10]
mov ecx, edi
inc ebx
add edi, 2
cmp ebx, eax
jb 0x4388c7
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x40]
cmp eax, edi
sete bl
call fcn.0041bebc
add esp, 4
jmp 0x438917
xor bl, bl
push esi
call fcn.0041bebc
mov al, bl
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret