Function at 0x406400
Capabilities:
Get disk information
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448120
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa0
mov eax, dword [0x47c018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x4c], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x4e]
mov esi, 0xf593afc7
mov ecx, dword [ebp - 0x70]
sub esi, eax
movzx eax, word [ebp - 0x50]
sub esi, eax
movzx eax, cx
sub esi, eax
lea eax, [ebp - 0x4c]
sub esi, dword [ebp - 0x64]
sub esi, dword [ebp - 0x68]
sub esi, dword [ebp - 0x54]
sub esi, dword [ebp - 0x58]
sub esi, dword [ebp - 0x60]
sub esi, dword [ebp - 0x6c]
push 0
push 0
push 0
push 0
push eax
push 0
push 0
sub esi, ecx
push 0
mov dword [ebp - 0x7c], esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x4064ab
mov ecx, 0xe864a5b9
sub ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x4c], ecx
jmp 0x4064ae
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x74], ecx
lea edi, [ebp - 0x1b]
mov eax, 0xcccccccd
dec edi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ecx, [eax + edx]
add cl, cl
sub byte [ebp - 0x74], cl
mov ecx, dword [ebp - 0x74]
add cl, 0x30
mov byte [edi], cl
mov ecx, edx
mov dword [ebp - 0x74], ecx
test ecx, ecx
jne 0x4064b4
push ecx
lea eax, [ebp - 0x1b]
push eax
push edi
lea ecx, [ebp - 0xb0]
call fcn.0040fda0
mov ecx, dword [0x47cfe8]
cmp ecx, 0x10
jb 0x406527
mov eax, dword [0x47cfd4]
inc ecx
cmp ecx, 0x1000
jb 0x40651d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40670a
mov eax, edx
push ecx
push eax
call fcn.0042f49b
add esp, 8
movups xmm0, xmmword [ebp - 0xb0]
lea edi, [ebp - 0x33]
movups xmmword [0x47cfd4], xmm0
movq xmm0, qword [ebp - 0xa0]
movq qword [0x47cfe4], xmm0
mov eax, 0xcccccccd
dec edi
mul esi
shr edx, 3
mov al, dl
mov esi, edx
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x7c]
add cl, cl
sub al, cl
add al, 0x30
mov byte [edi], al
mov eax, edx
mov dword [ebp - 0x7c], eax
test eax, eax
jne 0x406548
push ecx
lea eax, [ebp - 0x33]
push eax
push edi
lea ecx, [ebp - 0x98]
call fcn.0040fda0
mov dword [ebp - 4], 0
mov esi, 0x47cfd4
cmp dword [0x47cfe8], 0x10
mov eax, dword [ebp - 0x84]
cmovae esi, dword [0x47cfd4]
mov edx, dword [ebp - 0x88]
sub eax, edx
mov ecx, dword [0x47cfe4]
mov dword [ebp - 0x7c], ecx
cmp ecx, eax
ja 0x406635
cmp dword [ebp - 0x84], 0x10
lea eax, [edx + ecx]
lea edi, [ebp - 0x98]
mov dword [ebp - 0x88], eax
cmovae edi, dword [ebp - 0x98]
lea eax, [esi + ecx]
cmp eax, edi
jbe 0x4065f8
lea eax, [edi + edx]
cmp esi, eax
ja 0x4065f8
cmp edi, esi
ja 0x4065ef
mov dword [ebp - 0x74], 0
jmp 0x4065fb
mov eax, edi
sub eax, esi
mov dword [ebp - 0x74], eax
jmp 0x4065fb
mov dword [ebp - 0x74], ecx
lea eax, [edx + 1]
add ecx, edi
push eax
push edi
push ecx
call fcn.00430b60
push dword [ebp - 0x74]
push esi
push edi
call fcn.00430b60
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp - 0x7c]
sub edx, eax
push edx
lea ecx, [eax + esi]
add eax, edi
add ecx, dword [ebp - 0x7c]
push ecx
push eax
call fcn.00430b60
add esp, 0x24
lea eax, [ebp - 0x98]
jmp 0x406647
push ecx
push esi
push ecx
push dword [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x98]
call fcn.0040bae0
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
movups xmmword [ebp - 0x30], xmm0
movq qword [ebp - 0x80], xmm1
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [0x47cfe8]
cmp ecx, 0x10
jb 0x4066a7
mov eax, dword [0x47cfd4]
inc ecx
cmp ecx, 0x1000
jb 0x406694
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40670a
mov eax, edx
push ecx
push eax
call fcn.0042f49b
movups xmm0, xmmword [ebp - 0x30]
add esp, 8
movq xmm1, qword [ebp - 0x80]
mov ecx, dword [ebp - 0x84]
movq qword [0x47cfe4], xmm1
movups xmmword [0x47cfd4], xmm0
cmp ecx, 0x10
jb 0x4066ec
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4066e2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40670a
push ecx
push edx
call fcn.0042f49b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042f23c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004340af
int3