Function at 0x416627
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.0044dbc8
add esp, 4
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, 0x499775
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
push 1
mov eax, 0x4b28eb
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0x4b5ad1
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x190]
mov ebx, eax
test ebx, ebx
je 0x41668f
push ebx
call fcn.0044dbce
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x41669f
push ebx
call fcn.0044dbce
add esp, 4
mov dword [0x4b5c29], 0
push 0x80000301
push 0
push pe_nt_image_headers32
push 1
mov ebx, 0x1bc
call fcn.00450870
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4166de
push ebx
call fcn.0044dbce
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x4166ef
add eax, 8
push eax
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x416711
push 6
call fcn.0044dbd4
add esp, 4
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x416731
mov eax, 0x499775
push eax
push 2
mov ebx, 0x1a0
call fcn.00451760
add esp, 0x1c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41675b
push ebx
call fcn.0044dbce
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0
push 0
push 0
push reloc.WSOCK32.dll_getpeername
push 0
push 0x49977d
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x416784
mov eax, 0x499775
push eax
push 3
mov ebx, 0x1c4
call fcn.004508a0
add esp, 0x28
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x4167bc
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x4167b8
imul eax, dword [ebx]
jmp 0x4167ad
mov ecx, eax
test ecx, ecx
je 0x4167db
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x4167d4
push ebx
push eax
call fcn.0044dbce
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x4167c2
call fcn.0044dbce
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0xc]
call fcn.00404c71
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 0x4168d2
cmp dword [0x4b5c29], 0
jne 0x4168c5
mov ebx, dword [ebp - 0xc]
call fcn.004029aa
push ebx
push ecx
mov ebx, dword [ebp - 0xc]
call fcn.00404c71
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x24]
fsub qword [ebp - 0x24]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fadd qword [0x499338]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.00401e95
dec eax
jns 0x416861
push 4
call fcn.0044dbd4
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x416874
push 1
call fcn.0044dbd4
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x38], ebx
push reloc.WSOCK32.dll_getpeername
push 0
mov ebx, dword [ebp - 0x38]
mov eax, dword [ebx]
test eax, eax
jne 0x416891
mov eax, 0x499775
push eax
push 1
mov ebx, 0x168
call fcn.0044e9f0
add esp, 0x10
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00416a1d
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4168c0
push ebx
call fcn.0044dbce
add esp, 4
jmp 0x4168ca
jmp 0x4168d2
pop eax
pop ebx
pop ecx
jmp 0x4167f8
add esp, 0xc
cmp dword [0x4b5c29], 1
jne 0x41696c
push 0x80000301
push 0
push dword [0x4b5ae1]
push 1
mov ebx, 0x1c
mov eax, 0x454140
call fcn.0044e000
add esp, 0x10
call fcn.00402133
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push str.data_
push dword [0x4b5c2d]
mov ecx, 3
call fcn.0040119e
add esp, 0xc
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x41693c
push ebx
call fcn.0044dbce
add esp, 4
lea eax, [ebp - 0x18]
push eax
call fcn.00402196
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x416955
push ebx
call fcn.0044dbce
add esp, 4
push 0x4b5ac1
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x90]
jmp 0x4169c4
push 1
mov eax, 0x4b2908
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 1
push 0x10
mov eax, 0x4b2911
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x4b5ac1
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x10c]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4169af
push ebx
call fcn.0044dbce
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4169bf
push ebx
call fcn.0044dbce
add esp, 4
jmp 0x4169c4
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4169d4
push ebx
call fcn.0044dbce
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x4169f2
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x4169ee
imul eax, dword [ebx]
jmp 0x4169e3
mov ecx, eax
test ecx, ecx
je 0x416a11
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x416a0a
push ebx
push eax
call fcn.0044dbce
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x4169f8
call fcn.0044dbce
add esp, 4
mov esp, ebp
pop ebp
ret