Function at 0x40c531
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.0042770f
add esp, 4
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, 0x45c3a6
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
push 8
call fcn.0042770f
add esp, 4
mov dword [ebp - 0x14], eax
mov edi, eax
mov esi, 0x45c3a6
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push 8
call fcn.0042770f
add esp, 4
mov dword [ebp - 0x18], eax
mov edi, eax
mov esi, 0x45c3a6
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], esp
mov eax, 0x45c3a6
test eax, eax
je 0x40c5bd
add eax, 8
push eax
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsA]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x40c5e9
push 0x19
push 0x4010d6b
push 6
call fcn.00427721
add esp, 0xc
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x1bc
call fcn.004286c0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40c61f
push ebx
call fcn.00427715
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], esp
mov eax, dword [ebp - 8]
test eax, eax
je 0x40c630
add eax, 8
push eax
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsA]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x40c65a
push 0x6c
push 0x4010d6b
push 6
call fcn.00427721
add esp, 0xc
push 0
push 0
push 0
push 0x80000005
push 0
push 0x45c6b6
push 0x80000005
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40c67f
mov eax, 0x45c3a6
push eax
push 3
mov ebx, 0x1c4
call fcn.004292a0
add esp, 0x28
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40c6b7
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40c6b3
imul eax, dword [ebx]
jmp 0x40c6a8
mov ecx, eax
test ecx, ecx
je 0x40c6d6
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40c6cf
push ebx
push eax
call fcn.00427715
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40c6bd
call fcn.00427715
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0xc]
call fcn.00409000
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x2c]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fsub qword [0x45c3ee]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.00402a85
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x40cd0d
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x10]
cmp eax, 0
jge 0x40c73a
push 0x166
push 0x4010d6b
push 0xa
call fcn.00427721
add esp, 0xc
mov dword [ebp - 0x24], eax
lea ebx, [ebp - 0x28]
call fcn.004010c7
push ecx
shl ecx, 2
add ecx, 8
push ecx
call fcn.0042770f
add esp, 4
mov edi, eax
mov dword [edi], 1
add edi, 4
pop ecx
push eax
push ecx
lea esi, [ebp - 0x24]
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov ebx, dword [ebp - 0x14]
call fcn.004010c7
pop edx
test ecx, ecx
je 0x40c796
push edi
push edx
push ecx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40c78c
push ebx
call fcn.00427715
add esp, 4
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x40c77b
pop edx
pop edi
test edx, edx
je 0x40c7a4
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
push dword [ebp - 0x14]
call fcn.00427715
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x10]
cmp eax, 0
jge 0x40c7d9
push 0x18a
push 0x4010d6b
push 0xa
call fcn.00427721
add esp, 0xc
mov dword [ebp - 0x24], eax
lea ebx, [ebp - 0x28]
call fcn.004010c7
push ecx
shl ecx, 2
add ecx, 8
push ecx
call fcn.0042770f
add esp, 4
mov edi, eax
mov dword [edi], 1
add edi, 4
pop ecx
push eax
push ecx
lea esi, [ebp - 0x24]
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov ebx, dword [ebp - 0x18]
call fcn.004010c7
pop edx
test ecx, ecx
je 0x40c835
push edi
push edx
push ecx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40c82b
push ebx
call fcn.00427715
add esp, 4
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x40c81a
pop edx
pop edi
test edx, edx
je 0x40c843
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
push dword [ebp - 0x18]
call fcn.00427715
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push eax
lea eax, [ebp - 0x1c]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x40cd0a
mov ebx, dword [ebp - 0xc]
call fcn.004010c7
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x40c893
push 0x1cf
push 0x4010d6b
push 4
call fcn.00427721
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40c8b0
push 0x1cf
push 0x4010d6b
push 1
call fcn.00427721
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
test eax, eax
je 0x40c8d4
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0042770f
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40c8e5
push ebx
call fcn.00427715
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
call fcn.004010c7
push ebx
push ecx
push 0x80000005
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40c906
mov eax, 0x45c3a6
push eax
push 1
mov ebx, 0x194
call fcn.00428e50
add esp, 0x10
dec eax
jns 0x40c933
push 0x210
push 0x4010d6b
push 4
call fcn.00427721
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40c950
push 0x210
push 0x4010d6b
push 1
call fcn.00427721
add esp, 0xc
add ebx, eax
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov byte [ebx], 0
mov ebx, dword [ebp - 0x14]
call fcn.004010c7
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x40c982
push 0x235
push 0x4010d6b
push 4
call fcn.00427721
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40c99f
push 0x235
push 0x4010d6b
push 1
call fcn.00427721
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
push 0x80000005
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40c9ba
mov eax, 0x45c3a6
push eax
push 1
mov ebx, 0x168
call fcn.00428410
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40c9e6
push ebx
call fcn.00427715
add esp, 4
pop eax
mov ebx, dword [ebp - 0x24]
mov dword [ebx], eax
push 0x80000301
push 0
push 0x104
push 1
mov ebx, 0x184
call fcn.00428b80
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40ca21
push ebx
call fcn.00427715
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x14]
call fcn.004010c7
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x40ca4c
push 0x2b9
push 0x4010d6b
push 4
call fcn.00427721
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40ca69
push 0x2b9
push 0x4010d6b
push 1
call fcn.00427721
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], esp
push 0x104
push dword [ebp - 0x20]
mov ebx, dword [ebp - 0x24]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_QueryDosDeviceA]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x40caa7
push 0x2b9
push 0x4010d6b
push 6
call fcn.00427721
add esp, 0xc
mov ebx, dword [ebp - 0x18]
call fcn.004010c7
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x40cace
push 0x2ea
push 0x4010d6b
push 4
call fcn.00427721
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40caeb
push 0x2ea
push 0x4010d6b
push 1
call fcn.00427721
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40cb0f
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.0042770f
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x24]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40cb22
push ebx
call fcn.00427715
add esp, 4
pop eax
mov ebx, dword [ebp - 0x24]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x18]
call fcn.004010c7
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x40cb4f
push 0x350
push 0x4010d6b
push 4
call fcn.00427721
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40cb6c
push 0x350
push 0x4010d6b
push 1
call fcn.00427721
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
push 0x45c348
mov ebx, dword [ebp - 0x24]
push dword [ebx]
mov ecx, 2
call fcn.0040106b
add esp, 8
mov dword [ebp - 0x28], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x40cba1
mov eax, 0x45c309
push eax
push 0x80000004
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40cbb7
mov eax, 0x45c309
push eax
push 2
mov ebx, 0xb0
call fcn.00429460
add esp, 0x1c
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40cbdd
push ebx
call fcn.00427715
add esp, 4
cmp dword [ebp - 0x2c], 0
je 0x40cd02
mov ebx, dword [ebp - 0x18]
call fcn.004010c7
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x40cc0e
push 0x38c
push 0x4010d6b
push 4
call fcn.00427721
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40cc2b
push 0x38c
push 0x4010d6b
push 1
call fcn.00427721
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x14]
call fcn.004010c7
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x40cc5a
push 0x38c
push 0x4010d6b
push 4
call fcn.00427721
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40cc77
push 0x38c
push 0x4010d6b
push 1
call fcn.00427721
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
push closesocket
push 0
push 1
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push 1
push 0x80000004
push 0
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
test eax, eax
jne 0x40ccb8
mov eax, 0x45c309
push eax
push 0x80000004
push 0
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x40ccce
mov eax, 0x45c309
push eax
push 0x80000004
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40cce4
mov eax, 0x45c309
push eax
push 6
mov ebx, 0x180
call fcn.00429040
add esp, 0x4c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
jmp 0x40cd30
pop eax
pop ebx
pop ecx
jmp 0x40c85e
add esp, 0xc
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x40cd2b
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.0042770f
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40cd30
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40cd41
push ebx
call fcn.00427715
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40cd5f
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40cd5b
imul eax, dword [ebx]
jmp 0x40cd50
mov ecx, eax
test ecx, ecx
je 0x40cd7e
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40cd77
push ebx
push eax
call fcn.00427715
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40cd65
call fcn.00427715
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40cda4
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40cda0
imul eax, dword [ebx]
jmp 0x40cd95
mov ecx, eax
test ecx, ecx
je 0x40cdc3
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40cdbc
push ebx
push eax
call fcn.00427715
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40cdaa
call fcn.00427715
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x40cde9
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40cde5
imul eax, dword [ebx]
jmp 0x40cdda
mov ecx, eax
test ecx, ecx
je 0x40ce08
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40ce01
push ebx
push eax
call fcn.00427715
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40cdef
call fcn.00427715
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40ce20
push ebx
call fcn.00427715
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4