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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x145c
call fcn.00548f60
mov eax, dword [0x64e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
push 0x400
lea ecx, [ebp - 0x808]
mov eax, edx
push ecx
push eax
mov dword [ebp - 0x142c], eax
mov dword [ebp - 0x1428], edi
mov dword [ebp - 0x1440], ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x5b9d65
push 0x19
lea eax, [ebp - 0x808]
push eax
push 0x616914
call fcn.005451c4
add esp, 0xc
test eax, eax
jne 0x5b9aed
push 2
lea eax, [ebp - 0x1424]
push eax
lea eax, [ebp - 0x7d6]
push 0x616948
push eax
call fcn.00544bc0
add esp, 0x10
cmp eax, 1
jne 0x5b9aed
lea eax, [ebp - 0x7d0]
push 0x5c
push eax
call fcn.0054363c
mov edx, eax
add esp, 8
test edx, edx
je 0x5b9aed
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5b9ac6
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
lea eax, [ebp - 0x7d8]
push eax
call fcn.00541b90
add esp, 0xc
lea esi, [ebp - 0x808]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5b9af6
sub esi, ecx
sar esi, 1
push esi
lea eax, [ebp - 0x808]
push edi
push eax
call fcn.005451c4
add esp, 0xc
mov ecx, 0x5c
test eax, eax
jne 0x5b9b69
movzx eax, word [edi + esi*2]
lea edi, [edi + esi*2]
cmp cx, ax
je 0x5b9b32
xor ecx, ecx
cmp cx, ax
jne 0x5b9b63
push dword [ebp - 0x142c]
mov edx, dword [ebp + 0xc]
mov ecx, ebx
call fcn.005c1c20
mov edx, dword [ebp + 0xc]
push edi
mov ecx, ebx
call fcn.005c1c80
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00541b41
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1428]
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x5b9d65
cmp al, 5
jb 0x5b9d65
lea ecx, [ebp - 0x808]
lea edx, [ecx + 2]
jmp 0x5b9b90
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5b9b90
sub ecx, edx
sar ecx, 1
lea eax, [ebp - 0x808]
cmp ecx, 0x201
jae 0x5b9bc4
push eax
lea eax, [ebp - 0xc10]
push 0x201
push eax
call fcn.00543349
add esp, 0xc
jmp 0x5b9be7
push 0x200
push eax
lea eax, [ebp - 0xc10]
push 0x201
push eax
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [ebp - 0x810], ax
lea ecx, [ebp - 0xc10]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5b9bf0
sub ecx, edx
sar ecx, 1
mov esi, 0x402
lea eax, [ecx + ecx]
mov word [ebp - 0x143c], ax
lea eax, [ebp - 0xc10]
mov dword [ebp - 0x1438], eax
lea eax, [ebp - 0x143c]
mov dword [ebp - 0x1450], eax
lea eax, [ebp - 0x1458]
push eax
push closesocket
lea eax, [ebp - 0x1424]
push eax
mov word [ebp - 0x143a], si
mov dword [ebp - 0x1458], 0x18
mov dword [ebp - 0x1454], 0
mov dword [ebp - 0x144c], 0x10
mov dword [ebp - 0x1448], 0
mov dword [ebp - 0x1444], 0
mov dword [ebp - 0x1424], 0
call fcn.0041f058
test eax, eax
jne 0x5b9d65
lea eax, [ebp - 0x1420]
mov dword [ebp - 0x1430], eax
lea eax, [ebp - 0x1428]
push eax
lea eax, [ebp - 0x1434]
push eax
push dword [ebp - 0x1424]
xor bl, bl
mov dword [ebp - 0x1434], 0x4020000
mov dword [ebp - 0x1428], 0
call fcn.0041f060
test eax, eax
jne 0x5b9d52
lea eax, [ebp - 0x1420]
push eax
mov edx, 0x201
lea ecx, [ebp - 0x1018]
call fcn.005c1c20
lea esi, [ebp - 0x1018]
add esp, 4
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5b9cf0
sub esi, ecx
sar esi, 1
push esi
lea eax, [ebp - 0x1018]
push edi
push eax
call fcn.005451c4
add esp, 0xc
test eax, eax
jne 0x5b9d52
movzx eax, word [edi + esi*2]
lea edi, [edi + esi*2]
mov ecx, 0x5c
cmp cx, ax
je 0x5b9d2c
xor ecx, ecx
cmp cx, ax
jne 0x5b9d52
mov ebx, dword [ebp - 0x1440]
push dword [ebp - 0x142c]
mov edx, dword [ebp + 0xc]
mov ecx, ebx
call fcn.005c1c20
mov edx, dword [ebp + 0xc]
push edi
mov ecx, ebx
call fcn.005c1c80
add esp, 8
mov bl, 1
push dword [ebp - 0x1424]
call fcn.0041f068
test bl, bl
jne 0x5b9b50
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00541b41
mov esp, ebp
pop ebp
ret