Function at 0x40fe4b
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.0042c743
add esp, 4
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, 0x4503f8
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.0042c743
add esp, 4
mov dword [ebp - 0x14], eax
mov edi, eax
mov esi, 0x4503f8
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push 8
call fcn.0042c743
add esp, 4
mov dword [ebp - 0x18], eax
mov edi, eax
mov esi, 0x4503f8
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, 0x4503f8
test eax, eax
je 0x40fed7
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 0x40ff03
push 0x19
push 0x4010d6b
push 6
call fcn.0042c74f
add esp, 0xc
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x1bc
call fcn.0042d8d0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40ff39
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], esp
mov eax, dword [ebp - 8]
test eax, eax
je 0x40ff4a
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 0x40ff74
push 0x6c
push 0x4010d6b
push 6
call fcn.0042c74f
add esp, 0xc
push 0
push 0
push 0
push 0x80000005
push 0
push 0x4507bd
push 0x80000005
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40ff99
mov eax, 0x4503f8
push eax
push 3
mov ebx, 0x1c4
call fcn.0042e4c0
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 0x40ffd1
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x40ffcd
imul eax, dword [ebx]
jmp 0x40ffc2
mov ecx, eax
test ecx, ecx
je 0x40fff0
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40ffe9
push ebx
push eax
call fcn.0042c749
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40ffd7
call fcn.0042c749
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0xc]
call fcn.0040c0d2
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x2c]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fsub qword [0x450414]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.00403126
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x410627
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x10]
cmp eax, 0
jge 0x410054
push 0x166
push 0x4010d6b
push 0xa
call fcn.0042c74f
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.0042c743
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 0x4100b0
push edi
push edx
push ecx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x4100a6
push ebx
call fcn.0042c749
add esp, 4
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x410095
pop edx
pop edi
test edx, edx
je 0x4100be
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
push dword [ebp - 0x14]
call fcn.0042c749
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x10]
cmp eax, 0
jge 0x4100f3
push 0x18a
push 0x4010d6b
push 0xa
call fcn.0042c74f
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.0042c743
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 0x41014f
push edi
push edx
push ecx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x410145
push ebx
call fcn.0042c749
add esp, 4
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x410134
pop edx
pop edi
test edx, edx
je 0x41015d
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
push dword [ebp - 0x18]
call fcn.0042c749
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 0x410624
mov ebx, dword [ebp - 0xc]
call fcn.004010c7
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x4101ad
push 0x1cf
push 0x4010d6b
push 4
call fcn.0042c74f
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4101ca
push 0x1cf
push 0x4010d6b
push 1
call fcn.0042c74f
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 0x4101ee
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0042c743
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 0x4101ff
push ebx
call fcn.0042c749
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 0x410220
mov eax, 0x4503f8
push eax
push 1
mov ebx, 0x194
call fcn.0042e070
add esp, 0x10
dec eax
jns 0x41024d
push 0x210
push 0x4010d6b
push 4
call fcn.0042c74f
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x41026a
push 0x210
push 0x4010d6b
push 1
call fcn.0042c74f
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 0x41029c
push 0x235
push 0x4010d6b
push 4
call fcn.0042c74f
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4102b9
push 0x235
push 0x4010d6b
push 1
call fcn.0042c74f
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 0x4102d4
mov eax, 0x4503f8
push eax
push 1
mov ebx, 0x168
call fcn.0042d380
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 0x410300
push ebx
call fcn.0042c749
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.0042daf0
add esp, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41033b
push ebx
call fcn.0042c749
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 0x410366
push 0x2b9
push 0x4010d6b
push 4
call fcn.0042c74f
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x410383
push 0x2b9
push 0x4010d6b
push 1
call fcn.0042c74f
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 0x4103c1
push 0x2b9
push 0x4010d6b
push 6
call fcn.0042c74f
add esp, 0xc
mov ebx, dword [ebp - 0x18]
call fcn.004010c7
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x4103e8
push 0x2ea
push 0x4010d6b
push 4
call fcn.0042c74f
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x410405
push 0x2ea
push 0x4010d6b
push 1
call fcn.0042c74f
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x410429
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.0042c743
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 0x41043c
push ebx
call fcn.0042c749
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 0x410469
push 0x350
push 0x4010d6b
push 4
call fcn.0042c74f
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x410486
push 0x350
push 0x4010d6b
push 1
call fcn.0042c74f
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x24], ebx
push 0x45035c
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 0x4104bb
mov eax, 0x45035b
push eax
push 0x80000004
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x4104d1
mov eax, 0x45035b
push eax
push 2
mov ebx, 0xb0
call fcn.0042e680
add esp, 0x1c
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4104f7
push ebx
call fcn.0042c749
add esp, 4
cmp dword [ebp - 0x2c], 0
je 0x41061c
mov ebx, dword [ebp - 0x18]
call fcn.004010c7
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x410528
push 0x38c
push 0x4010d6b
push 4
call fcn.0042c74f
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x410545
push 0x38c
push 0x4010d6b
push 1
call fcn.0042c74f
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 0x410574
push 0x38c
push 0x4010d6b
push 4
call fcn.0042c74f
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x410591
push 0x38c
push 0x4010d6b
push 1
call fcn.0042c74f
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 0x4105d2
mov eax, 0x45035b
push eax
push 0x80000004
push 0
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
test eax, eax
jne 0x4105e8
mov eax, 0x45035b
push eax
push 0x80000004
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x4105fe
mov eax, 0x45035b
push eax
push 6
mov ebx, 0x180
call fcn.0042e260
add esp, 0x4c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
jmp 0x41064a
pop eax
pop ebx
pop ecx
jmp 0x410178
add esp, 0xc
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x410645
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.0042c743
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x41064a
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x41065b
push ebx
call fcn.0042c749
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x410679
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x410675
imul eax, dword [ebx]
jmp 0x41066a
mov ecx, eax
test ecx, ecx
je 0x410698
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x410691
push ebx
push eax
call fcn.0042c749
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x41067f
call fcn.0042c749
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x4106be
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x4106ba
imul eax, dword [ebx]
jmp 0x4106af
mov ecx, eax
test ecx, ecx
je 0x4106dd
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x4106d6
push ebx
push eax
call fcn.0042c749
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x4106c4
call fcn.0042c749
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x410703
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x4106ff
imul eax, dword [ebx]
jmp 0x4106f4
mov ecx, eax
test ecx, ecx
je 0x410722
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x41071b
push ebx
push eax
call fcn.0042c749
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x410709
call fcn.0042c749
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x41073a
push ebx
call fcn.0042c749
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4