Function at 0x401400
Capabilities:
Check os version
Get disk information

Disassembly:
mov eax, 0x10fc
call fcn.0042d2d0
mov ecx, dword [0x467980]
mov eax, dword [0x46797c]
mov dx, word [0x467984]
mov dword [esp + 0x10], ecx
push ebx
xor ecx, ecx
push ebp
mov dword [esp + 0x10], eax
mov al, byte [0x467986]
push esi
mov dword [esp + 0x23], ecx
push edi
mov byte [esp + 0x1c], 0
mov word [esp + 0x24], dx
mov byte [esp + 0x26], al
mov dword [esp + 0x2b], ecx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
lea edx, [esp + 0x44]
mov dword [esp + 0x44], 0x94
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x54]
mov edx, 2
cmp eax, edx
jne 0x401480
mov eax, dword [esp + 0x48]
mov dword [0x4762d8], 0xc0000000
cmp eax, 5
je 0x40148a
mov dword [0x4762d8], 0x80000000
mov ecx, 0x80
or eax, 0xffffffff
mov edi, 0x476934
mov dword [esp + 0x14], edx
rep stosd dword es:[edi], eax
mov ecx, 0x80
or eax, 0xffffffff
mov edi, 0x476534
mov ebp, 0x4764cc
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0x4762dc
mov al, byte [esp + 0x14]
lea ecx, [esp + 0x18]
add al, 0x41
push ecx
mov byte [esp + 0x1c], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x4015aa
mov dl, byte [esp + 0x18]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x24], dl
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x4015aa
mov edx, dword [0x4762d8]
push 0
push 0
push 3
push 0
push 1
lea eax, [esp + 0x34]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, eax
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x10c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x30]
push eax
push ecx
lea eax, [esp + 0x114]
push 0x1000
push eax
push 0
push 0
push 0x41018
push edx
mov dword [ebp], edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [esp + 0x110]
mov ecx, dword [esp + 0x112]
and eax, 0xff
mov edx, dword [esp + 0x14]
shl eax, 4
and ecx, 0xff
add eax, ecx
mov ecx, dword [esp + 0x10]
shl eax, 2
add ecx, 0xf
mov dword [eax + 0x476934], ebx
inc ebx
mov dword [eax + 0x476534], edx
mov dword [esp + 0x10], ecx
add ebp, 4
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x1a
mov dword [esp + 0x14], eax
jl 0x4014b9
xor eax, eax
cmp ebx, eax
jne 0x4015cd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10fc
ret
mov ecx, dword [0x467970]
mov edx, dword [0x467974]
mov dword [esp + 0x34], ecx
mov cx, word [0x467978]
mov dword [esp + 0x38], edx
mov dl, byte [0x46797a]
xor ebx, ebx
mov word [esp + 0x3c], cx
mov byte [esp + 0x3e], dl
mov dword [esp + 0x3f], eax
mov dword [esp + 0x10], eax
mov ebp, 0x476464
mov ecx, dword [0x4762d8]
push 0
push 0
push 3
mov al, bl
push 0
push 1
lea edx, [esp + 0x48]
add al, 0x30
push ecx
push edx
mov byte [esp + 0x58], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x10c]
rep stosd dword es:[edi], eax
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x114]
push 0x1000
push ecx
push 0
push 0
push 0x4100c
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov cl, byte [esp + 0x10c]
test cl, cl
je 0x401698
mov eax, dword [esp + 0x114]
inc ebx
test eax, eax
je 0x401681
mov eax, dword [esp + eax + 0x114]
test eax, eax
jne 0x401676
mov edx, dword [esp + 0x10]
mov dword [ebp], esi
inc edx
add ebp, 4
test cl, cl
mov dword [esp + 0x10], edx
jne 0x401606
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov byte [0x476b48], 1
pop ebx
add esp, 0x10fc
ret