Function at 0x40fd22
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.004268a9
add esp, 4
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, 0x45134f
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.004268a9
add esp, 4
mov dword [ebp - 0x14], eax
mov edi, eax
mov esi, 0x45134f
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push 8
call fcn.004268a9
add esp, 4
mov dword [ebp - 0x18], eax
mov edi, eax
mov esi, 0x45134f
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, 0x45134f
test eax, eax
je 0x40fdae
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 0x40fdda
push 0x19
push 0x4010d6b
push 6
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x1bc
call fcn.00427600
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40fe10
push ebx
call fcn.004268af
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], esp
mov eax, dword [ebp - 8]
test eax, eax
je 0x40fe21
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 0x40fe4b
push 0x6c
push 0x4010d6b
push 6
call fcn.004268b5
add esp, 0xc
push 0
push 0
push 0
push 0x80000005
push 0
push 0x451815
push 0x80000005
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40fe70
mov eax, 0x45134f
push eax
push 3
mov ebx, 0x1c4
call fcn.00428340
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 0x40fea8
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40fea4
imul eax, dword [ebx]
jmp 0x40fe99
mov ecx, eax
test ecx, ecx
je 0x40fec7
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40fec0
push ebx
push eax
call fcn.004268af
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40feae
call fcn.004268af
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0xc]
call fcn.0040847f
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x2c]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fsub qword [0x451397]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.00401f8d
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4104fe
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x10]
cmp eax, 0
jge 0x40ff2b
push 0x166
push 0x4010d6b
push 0xa
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 0x24], eax
lea ebx, [ebp - 0x28]
call fcn.00401164
push ecx
shl ecx, 2
add ecx, 8
push ecx
call fcn.004268a9
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.00401164
pop edx
test ecx, ecx
je 0x40ff87
push edi
push edx
push ecx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40ff7d
push ebx
call fcn.004268af
add esp, 4
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x40ff6c
pop edx
pop edi
test edx, edx
je 0x40ff95
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
push dword [ebp - 0x14]
call fcn.004268af
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x10]
cmp eax, 0
jge 0x40ffca
push 0x18a
push 0x4010d6b
push 0xa
call fcn.004268b5
add esp, 0xc
mov dword [ebp - 0x24], eax
lea ebx, [ebp - 0x28]
call fcn.00401164
push ecx
shl ecx, 2
add ecx, 8
push ecx
call fcn.004268a9
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.00401164
pop edx
test ecx, ecx
je 0x410026
push edi
push edx
push ecx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x41001c
push ebx
call fcn.004268af
add esp, 4
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x41000b
pop edx
pop edi
test edx, edx
je 0x410034
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
push dword [ebp - 0x18]
call fcn.004268af
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 0x4104fb
mov ebx, dword [ebp - 0xc]
call fcn.00401164
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x410084
push 0x1cf
push 0x4010d6b
push 4
call fcn.004268b5
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4100a1
push 0x1cf
push 0x4010d6b
push 1
call fcn.004268b5
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 0x4100c5
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004268a9
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 0x4100d6
push ebx
call fcn.004268af
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
call fcn.00401164
push ebx
push ecx
push 0x80000005
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4100f7
mov eax, 0x45134f
push eax
push 1
mov ebx, 0x194
call fcn.00427ef0
add esp, 0x10
dec eax
jns 0x410124
push 0x210
push 0x4010d6b
push 4
call fcn.004268b5
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x410141
push 0x210
push 0x4010d6b
push 1
call fcn.004268b5
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.00401164
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x410173
push 0x235
push 0x4010d6b
push 4
call fcn.004268b5
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x410190
push 0x235
push 0x4010d6b
push 1
call fcn.004268b5
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 0x4101ab
mov eax, 0x45134f
push eax
push 1
mov ebx, 0x168
call fcn.00427350
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 0x4101d7
push ebx
call fcn.004268af
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.00427ac0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x410212
push ebx
call fcn.004268af
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x14]
call fcn.00401164
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x41023d
push 0x2b9
push 0x4010d6b
push 4
call fcn.004268b5
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x41025a
push 0x2b9
push 0x4010d6b
push 1
call fcn.004268b5
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 0x410298
push 0x2b9
push 0x4010d6b
push 6
call fcn.004268b5
add esp, 0xc
mov ebx, dword [ebp - 0x18]
call fcn.00401164
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x4102bf
push 0x2ea
push 0x4010d6b
push 4
call fcn.004268b5
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4102dc
push 0x2ea
push 0x4010d6b
push 1
call fcn.004268b5
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x410300
push eax
mov ebx, eax
call fcn.0040109d
inc eax
push eax
call fcn.004268a9
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 0x410313
push ebx
call fcn.004268af
add esp, 4
pop eax
mov ebx, dword [ebp - 0x24]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x18]
call fcn.00401164
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x410340
push 0x350
push 0x4010d6b
push 4
call fcn.004268b5
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x41035d
push 0x350
push 0x4010d6b
push 1
call fcn.004268b5
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
push 0x451318
mov ebx, dword [ebp - 0x24]
push dword [ebx]
mov ecx, 2
call fcn.00401108
add esp, 8
mov dword [ebp - 0x28], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x410392
mov eax, 0x45131a
push eax
push 0x80000004
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x4103a8
mov eax, 0x45131a
push eax
push 2
mov ebx, 0xb0
call fcn.00428500
add esp, 0x1c
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4103ce
push ebx
call fcn.004268af
add esp, 4
cmp dword [ebp - 0x2c], 0
je 0x4104f3
mov ebx, dword [ebp - 0x18]
call fcn.00401164
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x4103ff
push 0x38c
push 0x4010d6b
push 4
call fcn.004268b5
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x41041c
push 0x38c
push 0x4010d6b
push 1
call fcn.004268b5
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
mov ebx, dword [ebp - 0x14]
call fcn.00401164
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x41044b
push 0x38c
push 0x4010d6b
push 4
call fcn.004268b5
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x410468
push 0x38c
push 0x4010d6b
push 1
call fcn.004268b5
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 0x4104a9
mov eax, 0x45131a
push eax
push 0x80000004
push 0
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x4104bf
mov eax, 0x45131a
push eax
push 0x80000004
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x4104d5
mov eax, 0x45131a
push eax
push 6
mov ebx, 0x180
call fcn.004280e0
add esp, 0x4c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
jmp 0x410521
pop eax
pop ebx
pop ecx
jmp 0x41004f
add esp, 0xc
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x41051c
push eax
mov ebx, eax
call fcn.0040109d
inc eax
push eax
call fcn.004268a9
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x410521
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x410532
push ebx
call fcn.004268af
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x410550
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x41054c
imul eax, dword [ebx]
jmp 0x410541
mov ecx, eax
test ecx, ecx
je 0x41056f
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x410568
push ebx
push eax
call fcn.004268af
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x410556
call fcn.004268af
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x410595
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x410591
imul eax, dword [ebx]
jmp 0x410586
mov ecx, eax
test ecx, ecx
je 0x4105b4
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x4105ad
push ebx
push eax
call fcn.004268af
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x41059b
call fcn.004268af
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x4105da
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x4105d6
imul eax, dword [ebx]
jmp 0x4105cb
mov ecx, eax
test ecx, ecx
je 0x4105f9
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x4105f2
push ebx
push eax
call fcn.004268af
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x4105e0
call fcn.004268af
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x410611
push ebx
call fcn.004268af
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4