Function at 0x4012c0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
push edi
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x1c], eax
call fcn.00408370
mov dword [esp + 0x18], eax
mov ebp, 0x41
xor ebx, ebx
lea ecx, [ebp - 0x41]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x1c]
test ecx, eax
je 0x401403
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push ebp
lea edx, [esp + 0x24]
push str.._c:
push edx
call esi
push ebp
lea eax, [esp + 0x40]
push str._c:_
push eax
call esi
add esp, 0x18
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x24]
push edx
push ebx
mov esi, eax
push ebx
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x401362
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407a30
add esp, 8
jmp 0x401403
lea edx, [esi - 2]
cmp edx, 2
ja 0x401403
cmp byte [esp + 0x4c], bl
jne 0x401389
cmp esi, 4
je 0x401389
push esi
lea eax, [esp + 0x24]
push eax
call fcn.00407a30
add esp, 8
jmp 0x401403
mov ecx, dword [esp + 0x14]
push ecx
push esi
lea edx, [esp + 0x28]
push edx
call fcn.00407a30
add esp, 0xc
push 0x34
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
je 0x4013d3
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], ebx
mov dword [eax + 0x24], ebx
mov dword [eax + 0x28], ebx
mov dword [eax + 0x2c], ebx
mov byte [eax + 0x30], 1
mov word [eax], bx
mov edi, eax
jmp 0x4013d5
xor edi, edi
push ebp
push 0x409254
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x10], ebx
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [edi + 0x1c], esi
mov esi, dword [esp + 0x48]
push edi
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], ecx
call fcn.00401270
add ebp, 1
lea edx, [ebp - 0x41]
cmp edx, 0x1a
jl 0x4012e9
cmp byte [esp + 0x4c], bl
jne 0x4014aa
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x34
push ebx
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
cmp eax, ebx
je 0x401457
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], ebx
mov dword [eax + 0x24], ebx
mov dword [eax + 0x28], ebx
mov dword [eax + 0x2c], ebx
mov byte [eax + 0x30], 1
mov word [eax], bx
mov edi, eax
jmp 0x401459
xor edi, edi
mov eax, dword [esp + 0x18]
push 8
push ebx
mov word [edi], bx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], 4
call ebp
push eax
call esi
mov edx, dword [esp + 0x48]
mov dword [eax], edi
mov dword [eax + 4], ebx
mov ecx, dword [edx + 4]
cmp ecx, ebx
je 0x40149d
cmp dword [ecx + 4], ebx
je 0x401498
lea ecx, [ecx]
mov ecx, dword [ecx + 4]
cmp dword [ecx + 4], ebx
jne 0x401490
mov dword [ecx + 4], eax
jmp 0x4014a0
mov dword [edx + 4], eax
mov ecx, dword [eax]
cmp word [ecx], bx
je 0x4014aa
add dword [edx], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 8