Function at 0x5b9a80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x5fd0b0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov word [ebp - 0x54], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x11c]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x58], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
and edx, 0xffff
movzx eax, dx
and eax, 0xff
movzx ecx, al
mov dword [ebp - 0x70], ecx
mov edx, dword [ebp - 4]
and edx, 0xffff
movzx eax, dx
shr eax, 8
movzx ecx, al
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x70], 4
jne 0x5b9b36
cmp dword [ebp - 0x30], 0x5a
jne 0x5b9b36
mov dword [ebp - 0x5c], 1
cmp dword [ebp - 0x70], 4
jne 0x5b9b49
cmp dword [ebp - 0x30], 0x5a
jne 0x5b9b49
mov dword [ebp - 0x58], 1
cmp dword [ebp - 0x70], 4
jne 0x5b9b5c
cmp dword [ebp - 0x30], 0
jne 0x5b9b5c
mov dword [ebp - 0x4c], 1
cmp dword [ebp - 4], 0x80000000
jae 0x5b9b73
mov edx, dword [ebp - 4]
shr edx, 0x10
movzx eax, dx
mov dword [ebp - 0x50], eax
jmp 0x5b9b94
cmp dword [ebp - 0x70], 4
jae 0x5b9b8d
mov ecx, dword [ebp - 4]
shr ecx, 0x10
movzx edx, cx
and edx, 0xffff7fff
mov dword [ebp - 0x50], edx
jmp 0x5b9b94
mov dword [ebp - 0x50], 0
cmp dword [ebp - 0x50], 0x565
ja 0x5b9ba4
mov dword [ebp - 0x40], 1
cmp dword [0x610654], 0
jne 0x5b9bb2
call fcn.005b9920
cmp dword [0x61064c], 0
je 0x5b9bcb
cmp dword [0x610650], 0
je 0x5b9bcb
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], 0
je 0x5b9bde
cmp dword [ebp - 0x4c], 1
jne 0x5b9bde
mov dword [ebp - 0x40], 1
cmp dword [ebp - 0x14], 0
je 0x5b9bf1
cmp dword [ebp - 0x58], 1
jne 0x5b9bf1
mov dword [ebp - 0x40], 0
cmp dword [ebp - 0x14], 0
je 0x5b9c04
cmp dword [ebp - 0x5c], 1
jne 0x5b9c04
mov dword [ebp - 0x40], 0
cmp dword [ebp - 0x14], 0
je 0x5b9cc5
cmp dword [ebp - 0x40], 0
jne 0x5b9cc5
mov dword [ebp - 0xc4], 5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xd4]
movsx edx, word [ecx + 0x10b0]
test edx, edx
je 0x5b9c3f
mov dword [ebp - 0x3c], 1
jmp 0x5b9c63
lea eax, [ebp - 0x54]
push eax
push 0x211
mov ecx, dword [ebp + 8]
push ecx
call fcn.0052e890
add esp, 0xc
movsx edx, word [ebp - 0x54]
test edx, edx
je 0x5b9c63
mov dword [ebp - 0x3c], 1
cmp dword [ebp - 0x3c], 0
je 0x5b9c86
push 1
lea eax, [ebp - 0xc0]
push eax
mov ecx, dword [ebp - 0xc4]
push ecx
call fcn.005b9540
add esp, 0xc
mov dword [ebp - 0x74], eax
jmp 0x5b9ca1
push 0
lea edx, [ebp - 0xc0]
push edx
mov eax, dword [ebp - 0xc4]
push eax
call fcn.005b9540
add esp, 0xc
mov dword [ebp - 0x74], eax
push 0x3c
push 0x6588c0
lea ecx, [ebp - 0xb0]
push ecx
call fcn.004751f0
add esp, 0xc
mov edx, dword [0x6588a4]
mov dword [ebp - 0x60], edx
jmp 0x5b9ed2
push str.NETAPI32.Dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x5b9ce1
or eax, 0xffffffff
jmp 0x5ba032
push str.NetWkstaTransportEnum
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x68], eax
push str.NetApiBufferFree
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x68], 0
je 0x5b9d11
cmp dword [ebp - 0x44], 0
jne 0x5b9d19
or eax, 0xffffffff
jmp 0x5ba032
push 0
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x6c]
push eax
push 0x1000
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
call dword [ebp - 0x68]
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
je 0x5b9d54
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or eax, 0xffffffff
jmp 0x5ba032
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
jmp 0x5b9d75
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x34]
add edx, 0x14
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x6c]
jae 0x5b9ec1
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0xc8], 0
jmp 0x5b9da5
mov eax, dword [ebp - 0xc8]
add eax, 1
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0xc
jge 0x5b9dc9
mov ecx, dword [ebp - 0xc8]
mov edx, dword [ebp - 0xc8]
mov eax, dword [ebp - 0x2c]
mov dl, byte [eax + edx*2]
mov byte [ebp + ecx - 0xc0], dl
jmp 0x5b9d96
mov dword [ebp - 0xc8], 0
jmp 0x5b9de4
mov eax, dword [ebp - 0xc8]
add eax, 1
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 6
jge 0x5b9ea5
mov ecx, dword [ebp - 0xc8]
movsx edx, byte [ebp + ecx*2 - 0xc0]
push edx
call fcn.00533c90
add esp, 4
test eax, eax
je 0x5b9e25
mov eax, dword [ebp - 0xc8]
movsx ecx, byte [ebp + eax*2 - 0xc0]
sub ecx, 0x30
mov dword [ebp - 0xd0], ecx
jmp 0x5b9e3c
mov edx, dword [ebp - 0xc8]
movsx eax, byte [ebp + edx*2 - 0xc0]
sub eax, 0x37
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0xc8]
movsx edx, byte [ebp + ecx*2 - 0xbf]
push edx
call fcn.00533c90
add esp, 4
test eax, eax
je 0x5b9e70
mov eax, dword [ebp - 0xc8]
movsx ecx, byte [ebp + eax*2 - 0xbf]
sub ecx, 0x30
mov dword [ebp - 0xd4], ecx
jmp 0x5b9e87
mov edx, dword [ebp - 0xc8]
movsx eax, byte [ebp + edx*2 - 0xbf]
sub eax, 0x37
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0xd0]
shl ecx, 4
add ecx, dword [ebp - 0xd4]
mov edx, dword [ebp - 0xc8]
mov byte [ebp + edx - 0x24], cl
jmp 0x5b9dd5
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0xb0]
push edx
call fcn.005ba040
add esp, 0xc
jmp 0x5b9d63
mov eax, dword [ebp - 0x10]
push eax
call dword [ebp - 0x44]
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x38], 0
jmp 0x5b9eeb
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x60]
jae 0x5ba021
cmp dword [ebp - 0xc], 0
je 0x5b9f88
mov dword [ebp - 0xc], 0
push 6
mov ecx, dword [ebp - 0x38]
imul ecx, ecx, 6
lea edx, [ebp + ecx - 0xb0]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x11c]
add ecx, 8
push ecx
call fcn.004751f0
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x11c]
movsx ecx, word [eax + 2]
cmp ecx, 0x67
je 0x5b9f4e
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x11c]
mov word [eax + 2], 2
push 6
mov ecx, dword [ebp - 0x38]
imul ecx, ecx, 6
lea edx, [ebp + ecx - 0xb0]
push edx
mov eax, dword [0x6101b0]
imul eax, eax, 6
add eax, 0x658900
push eax
call fcn.004751f0
add esp, 0xc
mov ecx, dword [0x6101b0]
add ecx, 1
mov dword [0x6101b0], ecx
jmp 0x5ba01c
call fcn.00527450
mov dword [ebp - 0x18], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x11c]
movsx ecx, word [eax + 2]
cmp ecx, 0x67
jne 0x5b9fad
mov edx, dword [ebp - 0x18]
mov word [edx + 2], 0x67
jmp 0x5b9fb6
mov eax, dword [ebp - 0x18]
mov word [eax + 2], 2
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x480], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
push 6
mov ecx, dword [ebp - 0x38]
imul ecx, ecx, 6
lea edx, [ebp + ecx - 0xb0]
push edx
mov eax, dword [ebp - 8]
add eax, 8
push eax
call fcn.004751f0
add esp, 0xc
push 6
mov ecx, dword [ebp - 0x38]
imul ecx, ecx, 6
lea edx, [ebp + ecx - 0xb0]
push edx
mov eax, dword [0x6101b0]
imul eax, eax, 6
add eax, 0x658900
push eax
call fcn.004751f0
add esp, 0xc
mov ecx, dword [0x6101b0]
add ecx, 1
mov dword [0x6101b0], ecx
jmp 0x5b9ee2
cmp dword [ebp - 0x60], 0
je 0x5ba030
mov eax, 1
jmp 0x5ba032
xor eax, eax
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0047209e
mov esp, ebp
pop ebp
ret