Function at 0x413cb1
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.00430d7d
add esp, 4
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, 0x4643a8
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.00430d7d
add esp, 4
mov dword [ebp - 0x14], eax
mov edi, eax
mov esi, 0x4643a8
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push 8
call fcn.00430d7d
add esp, 4
mov dword [ebp - 0x18], eax
mov edi, eax
mov esi, 0x4643a8
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], 0
mov dword [ebp - 0x28], esp
mov eax, 0x4643a8
test eax, eax
je 0x413d44
add eax, 8
push eax
push 0
xor eax, eax
call dword [0x9c7fe0]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x413d66
push 6
call fcn.00430d71
add esp, 4
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x1bc
call fcn.00431f50
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x413d9c
push ebx
call fcn.00430d89
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x28], esp
mov eax, dword [ebp - 8]
test eax, eax
je 0x413dad
add eax, 8
push eax
push dword [ebp - 4]
xor eax, eax
call dword [0x9c7fe0]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x413dcd
push 6
call fcn.00430d71
add esp, 4
push 0
push 0
push 0
push reloc.WSOCK32.dll_getpeername
push 0
push 0x4645ab
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x413df2
mov eax, 0x4643a8
push eax
push 3
mov ebx, 0x1c4
call fcn.00433ab0
add esp, 0x28
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x413e2a
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x413e26
imul eax, dword [ebx]
jmp 0x413e1b
mov ecx, eax
test ecx, ecx
je 0x413e49
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x413e42
push ebx
push eax
call fcn.00430d89
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x413e30
call fcn.00430d89
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0xc]
call fcn.00403e43
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fsub qword [0x4643f8]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.00402ab9
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4144a8
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x10]
cmp eax, 0
jge 0x413ea3
push 0xa
call fcn.00430d71
add esp, 4
mov dword [ebp - 0x28], eax
lea ebx, [ebp - 0x2c]
call fcn.00401164
push ecx
shl ecx, 2
add ecx, 8
push ecx
call fcn.00430d7d
add esp, 4
mov edi, eax
mov dword [edi], 1
add edi, 4
pop ecx
push eax
push ecx
lea esi, [ebp - 0x28]
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov ebx, dword [ebp - 0x14]
call fcn.00401164
pop edx
test ecx, ecx
je 0x413eff
push edi
push edx
push ecx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x413ef5
push ebx
call fcn.00430d89
add esp, 4
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x413ee4
pop edx
pop edi
test edx, edx
je 0x413f0d
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
push dword [ebp - 0x14]
call fcn.00430d89
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x10]
cmp eax, 0
jge 0x413f38
push 0xa
call fcn.00430d71
add esp, 4
mov dword [ebp - 0x28], eax
lea ebx, [ebp - 0x2c]
call fcn.00401164
push ecx
shl ecx, 2
add ecx, 8
push ecx
call fcn.00430d7d
add esp, 4
mov edi, eax
mov dword [edi], 1
add edi, 4
pop ecx
push eax
push ecx
lea esi, [ebp - 0x28]
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov ebx, dword [ebp - 0x18]
call fcn.00401164
pop edx
test ecx, ecx
je 0x413f94
push edi
push edx
push ecx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x413f8a
push ebx
call fcn.00430d89
add esp, 4
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x413f79
pop edx
pop edi
test edx, edx
je 0x413fa2
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
push dword [ebp - 0x18]
call fcn.00430d89
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 0x414221
mov ebx, dword [ebp - 0xc]
call fcn.00401164
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x413fe8
push 4
call fcn.00430d71
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x413ffb
push 1
call fcn.00430d71
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
test eax, eax
je 0x41401f
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00430d7d
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 0x414030
push ebx
call fcn.00430d89
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
call fcn.00401164
push ebx
push ecx
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x414051
mov eax, 0x4643a8
push eax
push 1
mov ebx, 0x194
call fcn.00432180
add esp, 0x10
dec eax
jns 0x414074
push 4
call fcn.00430d71
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x414087
push 1
call fcn.00430d71
add esp, 4
add ebx, eax
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x2c]
mov byte [ebx], 0
mov ebx, dword [ebp - 0x14]
call fcn.00401164
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x4140af
push 4
call fcn.00430d71
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4140c2
push 1
call fcn.00430d71
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4140dd
mov eax, 0x4643a8
push eax
push 1
mov ebx, 0x168
call fcn.00432260
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x28]
mov ebx, dword [ebx]
test ebx, ebx
je 0x414109
push ebx
call fcn.00430d89
add esp, 4
pop eax
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
push 0x80000301
push 0
push 0x104
push 1
mov ebx, 0x184
call fcn.00432620
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x414144
push ebx
call fcn.00430d89
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 0x414165
push 4
call fcn.00430d71
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x414178
push 1
call fcn.00430d71
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], esp
push 0x104
push dword [ebp - 0x20]
mov ebx, dword [ebp - 0x28]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_QueryDosDeviceA]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x4141ac
push 6
call fcn.00430d71
add esp, 4
mov ebx, dword [ebp - 0x18]
call fcn.00401164
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x4141c9
push 4
call fcn.00430d71
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4141dc
push 1
call fcn.00430d71
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x414200
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.00430d7d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x28]
mov ebx, dword [ebx]
test ebx, ebx
je 0x414213
push ebx
call fcn.00430d89
add esp, 4
pop eax
mov ebx, dword [ebp - 0x28]
mov dword [ebx], eax
pop eax
pop ebx
pop ecx
jmp 0x413fbd
add esp, 0xc
mov dword [ebp - 0x1c], 0
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 0x4144a5
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov eax, str.Device_
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call fcn.004145d2
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x414284
push ebx
call fcn.00430d89
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x414298
push ebx
call fcn.00430d89
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov eax, 0x464301
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004147dc
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4142dc
push ebx
call fcn.00430d89
add esp, 4
push dword [ebp - 0x34]
push str.Device_
mov ecx, 2
call fcn.0040106b
add esp, 8
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x414304
push ebx
call fcn.00430d89
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x414318
push ebx
call fcn.00430d89
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x18]
call fcn.00401164
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x414339
push 4
call fcn.00430d71
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x41434c
push 1
call fcn.00430d71
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
push eax
push dword [ebp - 0x24]
call fcn.004010c7
add esp, 8
cmp eax, 0
jne 0x41449d
mov ebx, dword [ebp - 0x18]
call fcn.00401164
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x41438b
push 4
call fcn.00430d71
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x41439e
push 1
call fcn.00430d71
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x14]
call fcn.00401164
push ebx
push ecx
mov eax, dword [ebp - 0x1c]
dec eax
jns 0x4143c3
push 4
call fcn.00430d71
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4143d6
push 1
call fcn.00430d71
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x2c], ebx
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push 0
push reloc.WSOCK32.dll_connect
push 0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebx]
test eax, eax
jne 0x414417
mov eax, 0x464300
push eax
push reloc.WSOCK32.dll_connect
push 0
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx]
test eax, eax
jne 0x41442d
mov eax, 0x464300
push eax
push reloc.WSOCK32.dll_connect
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x414443
mov eax, 0x464300
push eax
push 6
mov ebx, 0x180
call fcn.00433710
add esp, 0x4c
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x41446f
push ebx
call fcn.00430d89
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x414493
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.00430d7d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4144cb
pop eax
pop ebx
pop ecx
jmp 0x414237
add esp, 0xc
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x4144c6
push eax
mov ebx, eax
call fcn.00401000
inc eax
push eax
call fcn.00430d7d
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4144cb
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4144dc
push ebx
call fcn.00430d89
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x4144fa
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x4144f6
imul eax, dword [ebx]
jmp 0x4144eb
mov ecx, eax
test ecx, ecx
je 0x414519
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x414512
push ebx
push eax
call fcn.00430d89
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x414500
call fcn.00430d89
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x41453f
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x41453b
imul eax, dword [ebx]
jmp 0x414530
mov ecx, eax
test ecx, ecx
je 0x41455e
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x414557
push ebx
push eax
call fcn.00430d89
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x414545
call fcn.00430d89
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x414584
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x414580
imul eax, dword [ebx]
jmp 0x414575
mov ecx, eax
test ecx, ecx
je 0x4145a3
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x41459c
push ebx
push eax
call fcn.00430d89
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x41458a
call fcn.00430d89
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4145bb
push ebx
call fcn.00430d89
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4145cb
push ebx
call fcn.00430d89
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4