Function at 0x54a7cc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x3d
push 0
push 0
dec ecx
jne 0x54a7d4
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x54ad30
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x54acf8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5fda0]
call fcn.0051d0b4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5fda0]
mov edx, dword [eax]
call dword [edx + 0xd4]
mov ebx, 2
lea eax, [ebp - 0x144]
lea edx, [ebx + 0x41]
call fcn.00404b48
lea eax, [ebp - 0x144]
mov edx, 0x54ad48
call fcn.00404c28
mov eax, dword [ebp - 0x144]
call fcn.00404e18
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x54acca
push 0
push 0x400
push 0
push 0x400
mov eax, ebx
inc eax
call fcn.00409a98
call fcn.004059a0
call fcn.004059a0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jne 0x54a894
cmp dword [ebp - 0x18], 0x400
jae 0x54a89a
jmp 0x54acca
jl 0x54acca
lea eax, [ebp - 0x140]
mov edx, 0xff
call fcn.00407c54
push 0xff
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x148]
lea edx, [ebx + 0x41]
call fcn.00404b48
lea eax, [ebp - 0x148]
mov edx, 0x54ad48
call fcn.00404c28
mov eax, dword [ebp - 0x148]
call fcn.00404e18
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov eax, ebx
inc eax
call fcn.00409a64
mov edi, ebx
and edi, 0xff
mov ecx, dword [ebp - 4]
mov dword [ecx + edi*8 + 0x5fa58], eax
mov dword [ecx + edi*8 + 0x5fa5c], edx
push 0
push 0x400
push 0
push 0x400
mov eax, dword [ebp - 4]
mov edx, dword [eax + edi*8 + 0x5fa5c]
mov eax, dword [eax + edi*8 + 0x5fa58]
call fcn.004059a0
call fcn.004059a0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5fda0]
mov eax, dword [eax + 0x22c]
call fcn.0047e2d8
mov esi, eax
lea eax, [ebp - 0x154]
lea edx, [ebx + 0x41]
call fcn.00404b48
lea eax, [ebp - 0x154]
mov edx, 0x54ad54
call fcn.00404c28
mov eax, dword [ebp - 0x154]
call fcn.00404e18
mov edx, eax
lea eax, [ebp - 0x150]
call fcn.00404b58
push dword [ebp - 0x150]
lea eax, [ebp - 0x158]
lea edx, [ebp - 0x140]
mov ecx, pe_nt_image_headers32
call fcn.00404bd0
push dword [ebp - 0x158]
push 0x54ad64
lea eax, [ebp - 0x14c]
mov edx, 3
call fcn.00404ce0
mov edx, dword [ebp - 0x14c]
mov eax, esi
call fcn.0047dd28
push dword [ebp - 0x14]
push dword [ebp - 0x18]
lea eax, [ebp - 0x15c]
call fcn.00409380
mov edx, dword [ebp - 0x15c]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0x160]
mov eax, dword [ebp - 8]
call fcn.00409350
mov edx, dword [ebp - 0x160]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, edi
lea ecx, [ebp - 0x1b8]
mov eax, dword [0x595e08]
mov eax, dword [eax]
call fcn.004ca61c
cmp dword [ebp - 0x1b8], 0
je 0x54ac36
mov edx, edi
lea ecx, [ebp - 0x1b8]
mov eax, dword [0x595e08]
mov eax, dword [eax]
call fcn.004ca61c
lea edx, [ebp - 0x1a0]
lea eax, [ebp - 0x1bc]
call fcn.00404bc4
mov eax, dword [ebp - 0x1bc]
mov edx, 0x40
call fcn.00409498
mov edi, eax
test edi, edi
jg 0x54aa90
mov eax, dword [esi + 8]
mov edx, 0x54ad70
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi + 8]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [esi + 8]
mov edx, 0x54ad70
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x54acca
lea edx, [ebp - 0x40]
mov ecx, 0x10
mov eax, edi
call fcn.00409520
mov eax, edi
call fcn.004095bc
mov edi, dword [ebp - 0x3c]
mov eax, edi
shl eax, 2
add eax, 0x64
xor edx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x40]
shl eax, 2
cdq
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
jne 0x54aad4
cmp dword [ebp - 0x28], 0
jae 0x54aae4
jmp 0x54aad6
jge 0x54aae4
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push 0
push 4
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x40]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
sub eax, 1
sbb edx, 0
call fcn.0040597c
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0
jne 0x54ab1a
cmp dword [ebp - 0x30], 0
jae 0x54ab2a
jmp 0x54ab1c
jge 0x54ab2a
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c0]
call fcn.00409380
mov edx, dword [ebp - 0x1c0]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea ecx, [ebp - 0x1c8]
mov eax, dword [0x596098]
mov eax, dword [eax]
mov edx, 0xb3
call fcn.004da60c
push dword [ebp - 0x1c8]
push 0x54ad7c
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x1cc]
call fcn.00409380
push dword [ebp - 0x1cc]
lea ecx, [ebp - 0x1d0]
mov eax, dword [0x596098]
mov eax, dword [eax]
mov edx, 0xb4
call fcn.004da60c
push dword [ebp - 0x1d0]
push 0x54ad7c
push dword [ebp - 0x24]
push dword [ebp - 0x28]
lea eax, [ebp - 0x1d4]
call fcn.00409380
push dword [ebp - 0x1d4]
lea ecx, [ebp - 0x1d8]
mov eax, dword [0x596098]
mov eax, dword [eax]
mov edx, 0xb5
call fcn.004da60c
push dword [ebp - 0x1d8]
push 0x54ad7c
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
lea eax, [ebp - 0x1dc]
call fcn.00409380
push dword [ebp - 0x1dc]
lea eax, [ebp - 0x1c4]
mov edx, 9
call fcn.00404ce0
mov edx, dword [ebp - 0x1c4]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x1e0]
call fcn.00409380
mov edx, dword [ebp - 0x1e0]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x54acca
cmp dword [ebp - 8], 0x1f4
jle 0x54ac7c
mov eax, dword [0x595ea0]
mov eax, dword [eax]
movzx eax, byte [eax + 8]
cmp ebx, eax
jne 0x54ac57
sub dword [ebp - 8], 0x400
jmp 0x54ac5e
sub dword [ebp - 8], 0x1f4
lea edx, [ebp - 0x1e4]
mov eax, dword [ebp - 8]
call fcn.00409350
mov edx, dword [ebp - 0x1e4]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x54ac89
mov eax, dword [esi + 8]
mov edx, 0x54ad70
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea ecx, [ebp - 0x1e8]
mov eax, dword [0x596098]
mov eax, dword [eax]
mov edx, 0xb2
call fcn.004da60c
mov edx, dword [ebp - 0x1e8]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0x1ec]
mov eax, dword [ebp - 8]
call fcn.00409350
mov edx, dword [ebp - 0x1ec]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
cmp ebx, 0x1a
jne 0x54a822
mov eax, dword [ebp - 4]
cmp byte [eax + 0x84a], 0
je 0x54acee
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5fda0]
call fcn.0051d0bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x54ad02
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54ad37
lea eax, [ebp - 0x1ec]
mov edx, 0xd
call fcn.0040498c
lea eax, [ebp - 0x160]
mov edx, 8
call fcn.0040498c
ret