Function at 0x401770
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4195bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
mov eax, dword [0x42584c]
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xa8]
mov ebp, dword [esp + 0xac]
test eax, eax
mov dword [esp + 0x9c], 1
je 0x4018f4
push 0
lea ecx, [esp + 0x28]
push 0
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push 0
push 0x4211f4
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4017ea
mov dword [esp + 0x10], eax
push 0
call fcn.00405669
mov ecx, dword [esp + 0x14]
add ecx, eax
push ecx
mov dword [esp + 0x18], ecx
call fcn.0040563a
add esp, 8
call fcn.00405647
mov esi, eax
shl esi, 0x10
call fcn.00405647
add esi, eax
mov dword [ebp], esi
call fcn.00405647
mov esi, eax
shl esi, 0x10
call fcn.00405647
add esi, eax
mov dword [ebp + 4], esi
call fcn.00405647
mov esi, eax
shl esi, 0x10
call fcn.00405647
add esi, eax
mov dword [ebp + 8], esi
call fcn.00405647
mov esi, eax
shl esi, 0x10
call fcn.00405647
add esi, eax
mov dword [ebp + 0xc], esi
call fcn.00405647
mov esi, eax
shl esi, 0x10
call fcn.00405647
add esi, eax
mov dword [ebp + 0x10], esi
call fcn.00405647
mov esi, eax
shl esi, 0x10
call fcn.00405647
add esi, eax
mov dword [ebp + 0x14], esi
call fcn.00405647
mov esi, eax
shl esi, 0x10
call fcn.00405647
add esi, eax
mov dword [ebp + 0x18], esi
call fcn.00405647
mov esi, eax
shl esi, 0x10
call fcn.00405647
add esi, eax
mov dword [ebp + 0x1c], esi
call fcn.00405647
mov esi, eax
shl esi, 0x10
call fcn.00405647
add esi, eax
mov dword [ebp + 0x20], esi
call fcn.00405647
mov esi, eax
shl esi, 0x10
call fcn.00405647
add esi, eax
mov dword [ebp + 0x24], esi
call fcn.00405647
mov esi, eax
shl esi, 0x10
call fcn.00405647
add esi, eax
mov dword [ebp + 0x28], esi
call fcn.00405647
mov esi, eax
shl esi, 0x10
call fcn.00405647
add esi, eax
mov dword [ebp + 0x2c], esi
mov ecx, 0xc
mov esi, ebp
lea edi, [esp + 0x64]
lea edx, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp]
lea eax, [ebp + 4]
add ecx, 0xcdbe1
sub edx, ebp
mov dword [esp + 0x64], ecx
mov ecx, 0x2b0df
mov esi, dword [eax - 4]
mov edi, dword [eax]
add esi, edi
add eax, 4
lea esi, [esi + ecx + 0x6749f]
add ecx, 0x2b0df
mov dword [edx + eax - 4], esi
cmp ecx, 0x204a74
jb 0x40191c
lea edi, [esp + 0x64]
mov ebp, 0xc
mov esi, dword [edi]
mov eax, 0x8a6c863d
mul esi
mov ecx, esi
mov eax, esi
sub ecx, edx
mov esi, 0x14c5
shr ecx, 1
add ecx, edx
xor edx, edx
div esi
shr ecx, 0xc
add edi, 4
lea eax, [ecx + ecx*4]
shl eax, 5
sub eax, ecx
lea eax, [eax + eax*2]
shl eax, 1
sub eax, ecx
lea eax, [eax + eax*2]
add edx, ecx
dec ebp
lea ecx, [edx + eax*2]
mov dword [edi - 4], ecx
jne 0x401948
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x28]
lea esi, [esp + 0x64]
rep stosd dword es:[edi], eax
mov ecx, 0xc
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
push str.BLOWFISH_KEY:
lea ecx, [esp + 0x18]
call fcn.00410ee2
mov edx, dword [0x42584c]
mov dword [esp + 0xc], edx
mov byte [esp + 0x9c], 3
xor esi, esi
mov al, byte [esp + esi + 0x28]
and al, 0x7f
mov byte [esp + esi + 0x28], al
jne 0x4019d6
mov byte [esp + esi + 0x28], 7
movsx eax, byte [esp + esi + 0x28]
push eax
lea ecx, [esp + 0x10]
push 0x421250
push ecx
call fcn.004102e6
add esp, 0xc
lea edx, [esp + 0xc]
lea ecx, [esp + 0x14]
push edx
call fcn.00411184
inc esi
cmp esi, 0x30
jl 0x4019c5
mov esi, dword [esp + 0xa4]
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00410ee2
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x9c], 2
call fcn.00410e74
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 1
call fcn.00410e74
lea ecx, [esp + 0x18]
mov byte [esp + 0x9c], 0
call fcn.00410e74
mov ecx, dword [esp + 0x94]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x94
ret 0xc