Function at 0x406c41
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.00427919
add esp, 4
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, 0x432422
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.00427919
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov ebx, dword [0x433967]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x406cba
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x406cb6
imul eax, dword [ebx]
jmp 0x406cab
mov ecx, eax
test ecx, ecx
je 0x406cfa
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x406cd5
push ebx
call fcn.0042791f
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x406ce9
push ebx
call fcn.0042791f
add esp, 4
pop ebx
call fcn.0042791f
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x406cc0
call fcn.0042791f
add esp, 4
mov eax, 0x432422
mov dword [0x433967], eax
push 0x80000301
push 0
push 0x400
push 1
mov ebx, 0x1bc
call fcn.00428e40
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x406d41
push ebx
call fcn.0042791f
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x406d52
add eax, 8
push eax
push 0x400
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x406d7e
push 0x69
push 0x4014fa7
push 6
call fcn.0042792b
add esp, 0xc
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x406d9e
mov eax, 0x432422
push eax
push 2
mov ebx, 0x1a0
call fcn.00428d20
add esp, 0x1c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x406dc8
push ebx
call fcn.0042791f
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0
push 0
push 0
push reloc.WS2_32.dll_getpeername
push 0
push 0x432a47
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x406df1
mov eax, 0x432422
push eax
push 3
mov ebx, 0x1c4
call fcn.00429710
add esp, 0x28
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x406e29
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x406e25
imul eax, dword [ebx]
jmp 0x406e1a
mov ecx, eax
test ecx, ecx
je 0x406e48
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x406e41
push ebx
push eax
call fcn.0042791f
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x406e2f
call fcn.0042791f
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0xc]
call fcn.00401230
xor ecx, ecx
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x407356
push 0x80000301
push 0
push 0x64
push 1
mov ebx, 0x1bc
call fcn.00428e40
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x406ea8
push ebx
call fcn.0042791f
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 0xc]
call fcn.00401249
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x406ed3
push 0x172
push 0x4014fa7
push 4
call fcn.0042792b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x406ef0
push 0x172
push 0x4014fa7
push 1
call fcn.0042792b
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
call fcn.00401249
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x406f1f
push 0x1a4
push 0x4014fa7
push 4
call fcn.0042792b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x406f3c
push 0x1a4
push 0x4014fa7
push 1
call fcn.0042792b
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0xc]
call fcn.00401249
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x406f6b
push 0x1d6
push 0x4014fa7
push 4
call fcn.0042792b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x406f88
push 0x1d6
push 0x4014fa7
push 1
call fcn.0042792b
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x20], ebx
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
test eax, eax
jne 0x406fa5
mov eax, 0x432422
push eax
push 1
mov ebx, 0x194
call fcn.00428e70
add esp, 0x10
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x2c]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fsub qword [0x4328b1]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.00401164
push 0x80000301
push 0
push eax
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x406ff2
mov eax, 0x432422
push eax
push 2
mov ebx, 0x1a0
call fcn.00428d20
add esp, 0x1c
mov dword [ebp - 0x38], eax
push 0x432a47
push dword [ebp - 0x38]
mov ecx, 2
call fcn.004013dc
add esp, 8
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x407030
push ebx
call fcn.0042791f
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
mov ebx, dword [ebp - 0x18]
mov ebx, dword [ebx]
test ebx, ebx
je 0x407046
push ebx
call fcn.0042791f
add esp, 4
pop eax
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
call fcn.00401249
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x407073
push 0x228
push 0x4014fa7
push 4
call fcn.0042792b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x407090
push 0x228
push 0x4014fa7
push 1
call fcn.0042792b
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esp
push 0x104
mov eax, dword [ebp - 4]
test eax, eax
je 0x4070aa
add eax, 8
push eax
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebx]
test eax, eax
je 0x4070b7
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4070de
push 0x228
push 0x4014fa7
push 6
call fcn.0042792b
add esp, 0xc
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4070fe
mov eax, 0x432422
push eax
push 2
mov ebx, 0x1a0
call fcn.00428d20
add esp, 0x1c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x407128
push ebx
call fcn.0042791f
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
call fcn.00401249
push ebx
push ecx
mov eax, dword [ebp - 0x10]
dec eax
jns 0x407159
push 0x2b7
push 0x4014fa7
push 4
call fcn.0042792b
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x407176
push 0x2b7
push 0x4014fa7
push 1
call fcn.0042792b
add esp, 0xc
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
push 0
push 0
push 0
push 0x80000301
push 0
push 0xa
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x4071a5
mov eax, 0x432422
push eax
push 3
mov ebx, 0x19c
call fcn.00428110
add esp, 0x28
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x20]
cmp ecx, reloc.WS2_32.dll_connect
je 0x4071e3
push 0x2b7
push 0x4014fa7
push 5
call fcn.0042792b
add esp, 0xc
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x18]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4071f9
push ebx
call fcn.0042791f
add esp, 4
pop eax
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
add ebx, 4
mov dword [ebp - 0x18], ebx
push 0
push 0
push 0
push 0x80000301
push 0
push 0xa
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40722d
mov eax, 0x432422
push eax
push 3
mov ebx, 0x19c
call fcn.00428110
add esp, 0x28
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x1c]
cmp ecx, reloc.WS2_32.dll_connect
je 0x40726b
push 0x301
push 0x4014fa7
push 5
call fcn.0042792b
add esp, 0xc
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x18]
mov ebx, dword [ebx]
test ebx, ebx
je 0x407281
push ebx
call fcn.0042791f
add esp, 4
pop eax
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
push 0x433967
push 4
mov eax, 2
call fcn.00427ed0
add esp, 8
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov ebx, dword [0x433967]
mov dword [ebp - 0x1c], ebx
call fcn.00401249
mov dword [ebp - 0x20], ecx
mov edi, dword [ebp - 0x1c]
mov dword [edi], 1
add edi, 4
mov eax, ecx
inc eax
mov dword [edi], eax
add edi, 4
cmp edi, ebx
je 0x4072ce
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x20]
inc eax
shl eax, 2
add eax, 8
push eax
push dword [ebp - 0x1c]
call fcn.00427937
add esp, 8
mov dword [0x433967], eax
mov edi, eax
add edi, 8
mov eax, dword [ebp - 0x20]
shl eax, 2
add edi, eax
mov eax, dword [ebp - 0x18]
push edi
push eax
push 8
call fcn.00427919
add esp, 4
pop esi
mov edi, eax
push eax
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x407328
push eax
mov ebx, eax
call fcn.00401269
inc eax
push eax
call fcn.00427919
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x407347
push eax
mov ebx, eax
call fcn.00401269
inc eax
push eax
call fcn.00427919
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
pop eax
pop edi
mov dword [edi], eax
pop eax
pop ebx
pop ecx
jmp 0x406e65
add esp, 0xc
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x407369
push ebx
call fcn.0042791f
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x407387
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x407383
imul eax, dword [ebx]
jmp 0x407378
mov ecx, eax
test ecx, ecx
je 0x4073a6
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x40739f
push ebx
push eax
call fcn.0042791f
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x40738d
call fcn.0042791f
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x4073c2
push ebx
call fcn.0042791f
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x4073d6
push ebx
call fcn.0042791f
add esp, 4
pop ebx
call fcn.0042791f
add esp, 4
mov esp, ebp
pop ebp
ret