Function at 0x417bd0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x15c
push ebp
xor ebp, ebp
push esi
push edi
lea eax, [esp + 0x60]
push eax
mov edi, 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], ebp
call fcn.004224f0
lea ecx, [esp + 0x64]
push 0x46d354
push ecx
call fcn.00459902
mov esi, eax
add esp, 0xc
cmp esi, ebp
mov dword [esp + 0xc], esi
jne 0x417c2f
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x15c
ret
cmp dword [esp + 0x170], ebp
push ebx
je 0x417e1f
cmp dword [esp + 0x17c], ebp
jne 0x417cfd
xor edx, edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], edx
mov byte [esp + 0x60], dl
mov dword [esp + 0x34], 0x5c3a41
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
cmp ebx, ebp
je 0x417cc5
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea ebx, [ebx]
test bl, 1
je 0x417cb5
lea eax, [esp + 0x34]
push eax
call edi
cmp eax, 3
jne 0x417cb5
push 1
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.0045a290
add esp, 0xc
mov cl, byte [esp + 0x34]
shr ebx, 1
inc cl
cmp ebx, ebp
mov byte [esp + 0x34], cl
jne 0x417c90
lea eax, [esp + 0x40]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417cd0
sub eax, edx
je 0x417cfd
push ebp
lea ecx, [esp + 0x28]
push ecx
push ebp
push ebp
inc eax
push eax
mov eax, dword [esp + 0x184]
lea edx, [esp + 0x54]
push edx
push 0xa000004c
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebp
push ebp
push ebp
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x24]
push edx
push esi
call fcn.00416e40
add esp, 0x18
test eax, eax
je 0x417d30
push esi
call fcn.00459521
add esp, 4
pop ebx
pop edi
pop esi
mov eax, 0xfffffffe
pop ebp
add esp, 0x15c
ret
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
imul ebp, ebp, 0x114
shl eax, 4
lea ebx, [eax + ebp + 8]
push ebx
call fcn.00459619
mov esi, eax
add esp, 4
test esi, esi
jne 0x417d71
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00459521
add esp, 4
pop ebx
pop edi
pop esi
mov eax, 0xfffffffd
pop ebp
add esp, 0x15c
ret
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
add ebp, 8
push ebp
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
push 8
push esi
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x24]
push edx
push edi
mov dword [esi], 2
mov dword [esi + 4], eax
call fcn.00416e40
add esp, 0x18
test eax, eax
je 0x417dcd
push edi
call fcn.00459521
add esp, 4
pop ebx
pop edi
pop esi
mov eax, 0xfffffffe
pop ebp
add esp, 0x15c
ret
mov ecx, dword [esp + 0x170]
push 0
lea eax, [esp + 0x28]
push eax
push 0
push 0
push ebx
push esi
push 0xa0000024
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov edi, eax
call fcn.0045932f
add esp, 4
test edi, edi
jne 0x417e19
mov edx, dword [esp + 0x10]
push edx
call fcn.00459521
add esp, 4
pop ebx
pop edi
pop esi
mov eax, 0xfffffffa
pop ebp
add esp, 0x15c
ret
mov esi, dword [esp + 0x10]
xor ebp, ebp
cmp dword [esp + 0x178], ebp
je 0x41808b
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x40]
push ecx
push esi
call fcn.00416750
add esp, 0x18
test eax, eax
jne 0x417d17
lea edx, [esp + 0x18]
push ebp
push edx
mov eax, str._IN_BLOCKED_IP_LIST_
mov ebx, esi
call fcn.00416ba0
add esp, 8
test eax, eax
jne 0x417d17
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00416a10
add esp, 8
test eax, eax
jne 0x417d17
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
lea edx, [ecx + ebx*2]
add edx, ebx
lea ebp, [eax + edx*2 + 0xe]
add ebp, edi
shl ebp, 1
push ebp
call fcn.00459619
mov esi, eax
add esp, 4
test esi, esi
je 0x417d54
xor eax, eax
mov ecx, ebp
mov edx, ecx
shr ecx, 2
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x1c]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov dword [esi + 4], ebx
lea ebx, [ebx + ebx*2]
lea eax, [ebx*4 + 0x1c]
mov dword [esi + 0x10], eax
lea eax, [eax + ecx*4]
mov dword [esi + 0x18], eax
lea eax, [eax + edx*2]
mov dword [esi + 0x14], edx
lea edx, [eax + esi]
push edx
push eax
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x1c]
push ecx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x40]
push ecx
push edi
mov dword [esi], 2
mov dword [esi + 8], 0x1c
call fcn.00416750
add esp, 0x18
test eax, eax
jne 0x417db4
mov eax, dword [esi + 0x10]
add eax, esi
push eax
lea edx, [esp + 0x1c]
push edx
mov eax, str._IN_BLOCKED_IP_LIST_
mov ebx, edi
call fcn.00416ba0
add esp, 8
test eax, eax
jne 0x417db4
mov eax, dword [esi + 0x18]
add eax, esi
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00416a10
add esp, 8
test eax, eax
jne 0x417db4
mov edx, dword [esp + 0x170]
push eax
lea ecx, [esp + 0x28]
push ecx
push eax
push eax
push ebp
push esi
push 0xa000001c
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov ebx, eax
call fcn.0045932f
add esp, 4
test ebx, ebx
jne 0x417f9f
push edi
call fcn.00459521
add esp, 4
pop ebx
pop edi
pop esi
mov eax, 0xfffffffc
pop ebp
add esp, 0x15c
ret
lea eax, [esp + 0x2c]
push 0
push eax
mov eax, str._OUT_BLOCKED_IP_LIST_
mov ebx, edi
call fcn.00416ba0
add esp, 8
test eax, eax
jne 0x417db4
mov ebx, dword [esp + 0x2c]
lea ebp, [ebx*4 + 0x1c]
push ebp
call fcn.00459619
mov esi, eax
add esp, 4
test esi, esi
jne 0x417ff0
push edi
call fcn.00459521
add esp, 4
pop ebx
pop edi
pop esi
mov eax, 0xfffffffd
pop ebp
add esp, 0x15c
ret
xor eax, eax
mov ecx, ebp
mov edx, ecx
shr ecx, 2
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, 0x1c
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], eax
lea eax, [esi + 0x1c]
push eax
lea eax, [esp + 0x30]
xor ecx, ecx
mov dword [esi + 0x14], ebx
mov ebx, dword [esp + 0x14]
push eax
mov eax, str._OUT_BLOCKED_IP_LIST_
mov dword [esi], 2
mov dword [esi + 4], ecx
mov dword [esi + 0xc], ecx
call fcn.00416ba0
add esp, 8
test eax, eax
je 0x41805a
push ebx
call fcn.00459521
add esp, 4
pop ebx
pop edi
pop esi
mov eax, 0xfffffffe
pop ebp
add esp, 0x15c
ret
mov edx, dword [esp + 0x170]
push 0
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push ebp
push esi
push 0xa0000020
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov edi, eax
call fcn.0045932f
mov esi, dword [esp + 0x14]
add esp, 4
xor ebp, ebp
push esi
call fcn.00459521
add esp, 4
xor eax, eax
cmp edi, ebp
setne al
pop ebx
pop edi
pop esi
pop ebp
dec eax
and eax, 0xfffffffb
add esp, 0x15c
ret