Function at 0x40364c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba4
push ebx
push esi
push edi
mov dword [ebp - 0x58], edx
mov dword [ebp - 4], eax
mov eax, 0x45074c
call fcn.00444eb0
mov dword [ebp - 0x38], 1
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.0044dc88
inc dword [ebp - 0x38]
mov dl, 1
mov word [ebp - 0x44], 8
mov eax, dword [0x430fbc]
call fcn.004020cc
mov esi, eax
lea edi, [ebp - 0x45c]
push esi
mov esi, 0x450120
mov ecx, 0x100
lea eax, [ebp - 0x45c]
rep movsd dword es:[edi], dword [esi]
pop esi
push eax
push 0x400
call sub.KERNEL32.DLL_GetLogicalDriveStringsA
test eax, eax
je 0x403701
lea ebx, [ebp - 0x45c]
jmp 0x4036fc
push ebx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 5
jne 0x4036f9
mov word [ebp - 0x44], 0x14
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0044dc50
inc dword [ebp - 0x38]
mov edx, dword [eax]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x34]
dec dword [ebp - 0x38]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0044dd20
add ebx, 4
cmp byte [ebx], 0
jne 0x4036c2
mov word [ebp - 0x44], 8
mov eax, 1
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jle 0x4038ce
mov word [ebp - 0x44], 8
xor ebx, ebx
jmp 0x4038b2
mov word [ebp - 0x44], 0x20
xor eax, eax
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
push edx
inc dword [ebp - 0x38]
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov eax, esi
inc dword [ebp - 0x38]
lea ecx, [ebp - 0xc]
mov edi, dword [eax]
mov edx, ebx
call dword [edi + 0xc]
lea eax, [ebp - 0xc]
mov ecx, 2
mov edx, 1
call fcn.0044de3c
cmp dword [ebp - 0x10], 0
je 0x403769
mov edx, dword [ebp - 0x10]
jmp 0x40376e
mov edx, 0x450694
xor eax, eax
call fcn.004039b4
dec dword [ebp - 0x38]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0044dd20
dec dword [ebp - 0x38]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0044dd20
mov word [ebp - 0x44], 0x2c
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
inc dword [ebp - 0x38]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
push 1
lea eax, [ebp - 0x14]
push eax
call fcn.0044dbcc
add esp, 8
lea eax, [ebp - 0x14]
call fcn.0044de08
mov edx, dword [ebp - 0x14]
mov al, byte [edx]
add al, 0xc0
call fcn.0043adb8
cmp edx, 0xffffffff
jne 0x4037d9
cmp eax, 0xffffffff
setne dl
and edx, 1
lea eax, [ebp - 0x14]
push edx
mov edx, 2
dec dword [ebp - 0x38]
call fcn.0044dd20
pop ecx
test cl, cl
je 0x4038b1
mov word [ebp - 0x44], 0x38
xor eax, eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov eax, esi
inc dword [ebp - 0x38]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x18]
xor edx, edx
mov dword [ebp - 0x1c], edx
lea ecx, [ebp - 0x1c]
inc dword [ebp - 0x38]
lea edx, [ebp - 4]
call fcn.0044dd64
lea eax, [ebp - 0x1c]
mov eax, dword [eax]
call fcn.0043ac4c
push eax
dec dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0044dd20
dec dword [ebp - 0x38]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0044dd20
pop ecx
test cl, cl
je 0x4038b1
mov word [ebp - 0x44], 0x44
xor eax, eax
mov edx, ebx
mov dword [ebp - 0x20], eax
mov eax, esi
inc dword [ebp - 0x38]
lea ecx, [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x58]
call fcn.0044dd50
dec dword [ebp - 0x38]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0044dd20
mov al, 1
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x38]
call fcn.0044dd20
pop eax
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
jmp 0x403986
inc ebx
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
cmp ebx, eax
jl 0x403726
dec dword [ebp - 0x5c]
cmp dword [ebp - 0x5c], 0
jg 0x403719
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x403910
mov word [ebp - 0x44], 0x50
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x24]
inc dword [ebp - 0x38]
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x58]
call fcn.0044dd50
dec dword [ebp - 0x38]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0044dd20
jmp 0x403941
mov word [ebp - 0x44], 0x5c
mov edx, 0x450695
lea eax, [ebp - 0x28]
call fcn.0044dc50
inc dword [ebp - 0x38]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x58]
call fcn.0044dd50
dec dword [ebp - 0x38]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0044dd20
mov ebx, esi
mov dword [ebp - 0x30], ebx
test ebx, ebx
je 0x403968
mov eax, dword [ebx]
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x44], 0x74
mov edx, 3
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x44], 0x68
xor eax, eax
mov edx, 2
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0x38]
call fcn.0044dd20
pop eax
mov edx, dword [ebp - 0x54]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret