Function at 0x5153bc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x5153c4
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x515882
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebx + 4]
mov dl, 1
mov eax, dword [0x514c2c]
call fcn.004aa110
mov dword [ebx + 0x60], eax
mov eax, dword [ebx + 0x64]
mov edx, dword [eax]
call dword [edx + 0x44]
cmp dword [ebx + 0x44], 0
je 0x515415
lea eax, [ebp - 0x24]
mov edx, dword [ebx + 0x44]
call fcn.004054bc
mov edx, dword [ebp - 0x24]
mov eax, dword [ebx + 0x60]
call fcn.004aa530
mov edx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x60]
call fcn.0046cb50
mov edx, dword [ebx + 0x4c]
mov eax, dword [ebx + 0x60]
call fcn.0046cb74
mov dl, byte [ebx + 0x50]
mov eax, dword [ebx + 0x60]
call fcn.00488a28
cmp byte [ebx + 0x50], 0
jne 0x515452
mov edx, dword [ebx + 0x54]
mov eax, dword [ebx + 0x60]
call fcn.0046cb04
mov edx, dword [ebx + 0x58]
mov eax, dword [ebx + 0x60]
call fcn.0046cb28
call sub.kernel32.dll_GetLogicalDrives
mov dword [ebp - 8], eax
xor esi, esi
mov ecx, esi
mov eax, 1
shl eax, cl
and eax, dword [ebp - 8]
je 0x51567e
mov eax, esi
add al, 0x41
mov byte [ebp - 0x1d], al
lea eax, [ebp - 0x28]
mov dl, byte [ebp - 0x1d]
call fcn.00404d88
lea eax, [ebp - 0x28]
mov edx, 0x51589c
call fcn.00404e94
mov eax, dword [ebp - 0x28]
call fcn.0040508c
push eax
call sub.kernel32.dll_GetDriveTypeA
mov edi, eax
cmp byte [ebx + 0x5c], 1
jne 0x5154ac
cmp edi, 2
je 0x51567e
cmp byte [ebx + 0x5d], 1
jne 0x5154bb
cmp edi, 5
je 0x51567e
cmp byte [ebx + 0x5e], 1
jne 0x5154ca
cmp edi, 3
je 0x51567e
cmp byte [ebx + 0x5f], 1
jne 0x5154d9
cmp edi, 4
je 0x51567e
cmp dword [ebx + 0x34], 2
je 0x5155e2
lea eax, [ebp - 0xc]
mov edx, 0x800
call fcn.00405218
lea eax, [ebp - 0x10]
mov edx, 0x800
call fcn.00405218
push 0x800
lea eax, [ebp - 0x10]
call fcn.004050e4
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x800
lea eax, [ebp - 0xc]
call fcn.004050e4
push eax
lea eax, [ebp - 0x2c]
mov dl, byte [ebp - 0x1d]
call fcn.00404d88
lea eax, [ebp - 0x2c]
mov edx, 0x51589c
call fcn.00404e94
mov eax, dword [ebp - 0x2c]
call fcn.0040508c
push eax
call sub.kernel32.dll_GetVolumeInformationA
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x515587
mov edx, dword [ebp - 0xc]
mov eax, 0x5158a8
call fcn.004051d0
mov edx, eax
dec edx
lea eax, [ebp - 0xc]
call fcn.00405218
mov edx, dword [ebp - 0x10]
mov eax, 0x5158a8
call fcn.004051d0
mov edx, eax
dec edx
lea eax, [ebp - 0x10]
call fcn.00405218
jmp 0x5155fc
mov eax, edi
sub eax, 3
je 0x515599
dec eax
je 0x5155a8
dec eax
je 0x5155b7
dec eax
je 0x5155c6
jmp 0x5155d3
lea eax, [ebp - 0xc]
mov edx, 0x5158b4
call fcn.00404c38
jmp 0x5155d3
lea eax, [ebp - 0xc]
mov edx, 0x5158c8
call fcn.00404c38
jmp 0x5155d3
lea eax, [ebp - 0xc]
mov edx, 0x5158e0
call fcn.00404c38
jmp 0x5155d3
lea eax, [ebp - 0xc]
mov edx, 0x5158f4
call fcn.00404c38
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
call fcn.00404ba0
jmp 0x5155fc
lea eax, [ebp - 0xc]
mov edx, 0x515908
call fcn.00404c38
lea eax, [ebp - 0x10]
call fcn.00404ba0
xor eax, eax
mov dword [ebp - 0x1c], eax
push edi
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x30]
mov dl, byte [ebp - 0x1d]
mov byte [eax + 1], dl
mov byte [eax], 1
lea ecx, [ebp - 0x30]
mov dl, 1
mov eax, dword [0x514ef4]
call fcn.00515340
mov edx, eax
mov eax, dword [ebx + 0x60]
mov eax, dword [eax + 0x308]
call fcn.00435cc4
push dword [ebp - 0xc]
push 0x515918
lea eax, [ebp - 0x3c]
mov dl, byte [ebp - 0x1d]
call fcn.00404d88
push dword [ebp - 0x3c]
push 0x515924
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.00404f4c
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
call fcn.004054bc
mov edx, dword [ebp - 0x34]
mov eax, dword [ebx + 0x60]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x280]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
cmp esi, 0x1a
jne 0x51545c
cmp byte [ebx + 0x30], 0
je 0x5156fb
mov eax, dword [ebx + 0x60]
mov eax, dword [eax + 0x308]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x5156fb
inc edi
xor esi, esi
lea eax, [ebp - 0x44]
lea edx, [ebx + 0x30]
call fcn.00404e14
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.00409c48
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebx + 0x60]
mov eax, dword [eax + 0x308]
mov edx, esi
call fcn.00435d60
lea edx, [eax + 4]
lea eax, [ebp - 0x48]
call fcn.00404e14
mov edx, dword [ebp - 0x48]
pop eax
call fcn.00404fd8
jne 0x5156f7
mov eax, dword [ebx + 0x60]
mov eax, dword [eax + 0x2f8]
mov edx, esi
mov ecx, dword [eax]
call dword [ecx + 0xd0]
jmp 0x5156fb
inc esi
dec edi
jne 0x5156a2
mov eax, dword [ebx + 0x60]
mov edx, dword [eax]
call dword [edx + 0xec]
dec eax
jne 0x515831
mov esi, dword [ebx + 0x60]
mov eax, dword [esi + 0x2f8]
mov edx, dword [eax]
call dword [edx + 0xcc]
mov edx, eax
mov eax, dword [esi + 0x308]
call fcn.00435d60
lea edx, [eax + 4]
lea eax, [ebx + 0x30]
mov cl, 1
call fcn.00403240
mov esi, dword [ebx + 0x60]
mov eax, dword [esi + 0x2f8]
mov edx, dword [eax]
call dword [edx + 0xcc]
mov edx, eax
mov eax, dword [esi + 0x308]
call fcn.00435d60
mov eax, dword [eax + 8]
mov dword [ebx + 0x34], eax
mov esi, dword [ebx + 0x60]
mov eax, dword [esi + 0x2f8]
mov edx, dword [eax]
call dword [edx + 0xcc]
mov edx, eax
mov eax, dword [esi + 0x308]
call fcn.00435d60
mov edx, dword [eax + 0xc]
lea eax, [ebx + 0x38]
call fcn.00404bf4
mov esi, dword [ebx + 0x60]
mov eax, dword [esi + 0x2f8]
mov edx, dword [eax]
call dword [edx + 0xcc]
mov edx, eax
mov eax, dword [esi + 0x308]
call fcn.00435d60
mov edx, dword [eax + 0x10]
lea eax, [ebx + 0x3c]
call fcn.00404bf4
mov esi, dword [ebx + 0x60]
mov eax, dword [esi + 0x2f8]
mov edx, dword [eax]
call dword [edx + 0xcc]
mov edx, eax
mov eax, dword [esi + 0x308]
call fcn.00435d60
mov eax, dword [eax + 0x14]
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 0x60]
mov eax, dword [eax + 0x2f8]
mov edx, dword [eax]
call dword [edx + 0xc8]
mov edi, eax
dec edi
test edi, edi
jl 0x51582b
inc edi
xor esi, esi
mov eax, dword [ebx + 0x60]
mov eax, dword [eax + 0x2f8]
mov edx, esi
call fcn.00465a6c
cmp al, 1
jne 0x515827
mov eax, dword [ebx + 0x60]
mov eax, dword [eax + 0x308]
mov edx, esi
call fcn.00435d60
lea edx, [eax + 4]
lea eax, [ebp - 0x4c]
call fcn.00404e14
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebx + 0x64]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec edi
jne 0x5157ed
mov byte [ebp - 1], 1
jmp 0x515835
mov byte [ebp - 1], 0
mov eax, dword [ebx + 0x60]
call fcn.00403c70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x515889
lea eax, [ebp - 0x4c]
mov edx, 6
call fcn.00404bc4
lea eax, [ebp - 0x34]
call fcn.004052d8
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00404bc4
lea eax, [ebp - 0x24]
call fcn.004052d8
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404bc4
ret