Function at 0x140146a40
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov rax, qword [0x1401ad1c0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0xd8], 0
mov dword [rsp + 0xd4], 0
mov word [rsp + 0xc8], 0
mov rax, qword [rsp + 0x180]
mov rax, qword [rax + 0x168]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xa4], 0
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x148], 0
mov dword [rsp + 0xa8], 0
mov dword [rsp + 0xd0], 0
mov dword [rsp + 0xc0], 0
mov dword [rsp + 0xcc], 0
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
and rax, 0xffff
movzx eax, ax
and rax, 0xff
movzx eax, al
mov dword [rsp + 0xec], eax
mov eax, dword [rsp + 0x40]
and rax, 0xffff
movzx eax, ax
shr rax, 8
movzx eax, al
mov dword [rsp + 0x90], eax
cmp dword [rsp + 0xec], 4
jne 0x140146b4a
cmp dword [rsp + 0x90], 0x5a
jne 0x140146b4a
mov dword [rsp + 0xd0], 1
cmp dword [rsp + 0xec], 4
jne 0x140146b69
cmp dword [rsp + 0x90], 0x5a
jne 0x140146b69
mov dword [rsp + 0xcc], 1
cmp dword [rsp + 0xec], 4
jne 0x140146b88
cmp dword [rsp + 0x90], 0
jne 0x140146b88
mov dword [rsp + 0xc0], 1
cmp dword [rsp + 0x40], 0x80000000
jae 0x140146ba6
mov eax, dword [rsp + 0x40]
shr rax, 0x10
movzx eax, ax
mov dword [rsp + 0xc4], eax
jmp 0x140146bd4
cmp dword [rsp + 0xec], 4
jae 0x140146bc9
mov eax, dword [rsp + 0x40]
shr rax, 0x10
movzx eax, ax
and eax, 0xffff7fff
mov dword [rsp + 0xc4], eax
jmp 0x140146bd4
mov dword [rsp + 0xc4], 0
cmp dword [rsp + 0xc4], 0x565
ja 0x140146bec
mov dword [rsp + 0xa8], 1
cmp dword [0x1401d08b0], 0
jne 0x140146bfa
call fcn.1401468b0
cmp qword [0x1401d08a0], 0
je 0x140146c16
cmp qword [0x1401d08a8], 0
je 0x140146c16
mov dword [rsp + 0x60], 1
cmp dword [rsp + 0x60], 0
je 0x140146c32
cmp dword [rsp + 0xc0], 1
jne 0x140146c32
mov dword [rsp + 0xa8], 1
cmp dword [rsp + 0x60], 0
je 0x140146c4e
cmp dword [rsp + 0xcc], 1
jne 0x140146c4e
mov dword [rsp + 0xa8], 0
cmp dword [rsp + 0x60], 0
je 0x140146c6a
cmp dword [rsp + 0xd0], 1
jne 0x140146c6a
mov dword [rsp + 0xa8], 0
cmp dword [rsp + 0x60], 0
je 0x140146d5d
cmp dword [rsp + 0xa8], 0
jne 0x140146d5d
mov dword [rsp + 0x148], 5
mov rax, qword [rsp + 0x180]
mov rax, qword [rax + 0xf8]
movsx eax, word [rax + 0x1140]
test eax, eax
je 0x140146cb5
mov dword [rsp + 0xa4], 1
jmp 0x140146ce6
lea r8, [rsp + 0xc8]
mov edx, 0x211
mov rcx, qword [rsp + 0x180]
call fcn.1400dbbd0
movsx eax, word [rsp + 0xc8]
test eax, eax
je 0x140146ce6
mov dword [rsp + 0xa4], 1
cmp dword [rsp + 0xa4], 0
je 0x140146d13
mov r8d, 1
lea rdx, [rsp + 0x138]
mov ecx, dword [rsp + 0x148]
call fcn.140146410
mov dword [rsp + 0xf0], eax
jmp 0x140146d31
xor r8d, r8d
lea rdx, [rsp + 0x138]
mov ecx, dword [rsp + 0x148]
call fcn.140146410
mov dword [rsp + 0xf0], eax
mov r8d, 0x3c
lea rdx, [0x1402811c0]
lea rcx, [rsp + 0xf8]
call sub.MSVCR110.dll_memcpy
mov eax, dword [0x1402811a4]
mov dword [rsp + 0xd4], eax
jmp 0x14014703b
lea rcx, str.NETAPI32.Dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0xd8], rax
cmp qword [rsp + 0xd8], 0
jne 0x140146d87
mov eax, 0xffffffff
jmp 0x140147217
lea rdx, str.NetWkstaTransportEnum
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xe0], rax
lea rdx, str.NetApiBufferFree
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xe0], 0
je 0x140146dd7
cmp qword [rsp + 0xb0], 0
jne 0x140146de1
mov eax, 0xffffffff
jmp 0x140147217
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x20], rax
mov r9d, 0x1000
lea r8, [rsp + 0x58]
xor edx, edx
xor ecx, ecx
call qword [rsp + 0xe0]
mov dword [rsp + 0x150], eax
cmp dword [rsp + 0x150], 0
je 0x140146e43
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0xffffffff
jmp 0x140147217
mov dword [rsp + 0xa0], 0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x98], rax
jmp 0x140146e82
mov eax, dword [rsp + 0xa0]
add eax, 1
mov dword [rsp + 0xa0], eax
mov rax, qword [rsp + 0x98]
add rax, 0x20
mov qword [rsp + 0x98], rax
mov eax, dword [rsp + 0xe8]
cmp dword [rsp + 0xa0], eax
jae 0x140147021
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x14c], 0
jmp 0x140146ec8
mov eax, dword [rsp + 0x14c]
add eax, 1
mov dword [rsp + 0x14c], eax
cmp dword [rsp + 0x14c], 0xc
jge 0x140146efa
mov eax, dword [rsp + 0x14c]
add eax, eax
cdqe
movsxd rcx, dword [rsp + 0x14c]
mov rdx, qword [rsp + 0x88]
movzx eax, byte [rdx + rax]
mov byte [rsp + rcx + 0x138], al
jmp 0x140146eb7
mov dword [rsp + 0x14c], 0
jmp 0x140146f18
mov eax, dword [rsp + 0x14c]
add eax, 1
mov dword [rsp + 0x14c], eax
cmp dword [rsp + 0x14c], 6
jge 0x140147002
mov eax, dword [rsp + 0x14c]
add eax, eax
cdqe
movsx eax, byte [rsp + rax + 0x138]
mov ecx, eax
call fcn.1400c59e0
test eax, eax
je 0x140146f63
mov eax, dword [rsp + 0x14c]
add eax, eax
cdqe
movsx eax, byte [rsp + rax + 0x138]
sub eax, 0x30
mov dword [rsp + 0x154], eax
jmp 0x140146f80
mov eax, dword [rsp + 0x14c]
add eax, eax
cdqe
movsx eax, byte [rsp + rax + 0x138]
sub eax, 0x37
mov dword [rsp + 0x154], eax
mov eax, dword [rsp + 0x14c]
lea eax, [rax + rax + 1]
cdqe
movsx eax, byte [rsp + rax + 0x138]
mov ecx, eax
call fcn.1400c59e0
test eax, eax
je 0x140146fc1
mov eax, dword [rsp + 0x14c]
lea eax, [rax + rax + 1]
cdqe
movsx eax, byte [rsp + rax + 0x138]
sub eax, 0x30
mov dword [rsp + 0x158], eax
jmp 0x140146fe0
mov eax, dword [rsp + 0x14c]
lea eax, [rax + rax + 1]
cdqe
movsx eax, byte [rsp + rax + 0x138]
sub eax, 0x37
mov dword [rsp + 0x158], eax
mov eax, dword [rsp + 0x154]
imul eax, eax, 0x10
add eax, dword [rsp + 0x158]
movsxd rcx, dword [rsp + 0x14c]
mov byte [rsp + rcx + 0x78], al
jmp 0x140146f07
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0xd4]
lea rcx, [rsp + 0xf8]
call fcn.140147240
jmp 0x140146e5d
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [rsp + 0x50], 1
mov dword [rsp + 0xa0], 0
jmp 0x140147061
mov eax, dword [rsp + 0xa0]
add eax, 1
mov dword [rsp + 0xa0], eax
mov eax, dword [rsp + 0xd4]
cmp dword [rsp + 0xa0], eax
jae 0x140147202
cmp dword [rsp + 0x50], 0
je 0x140147136
mov dword [rsp + 0x50], 0
mov eax, dword [rsp + 0xa0]
imul rax, rax, 6
lea rax, [rsp + rax + 0xf8]
mov rcx, qword [rsp + 0x180]
mov rcx, qword [rcx + 0x168]
add rcx, 8
mov r8d, 6
mov rdx, rax
call sub.MSVCR110.dll_memcpy
mov rax, qword [rsp + 0x180]
mov rax, qword [rax + 0x168]
movsx eax, word [rax + 2]
cmp eax, 0x67
je 0x1401470e9
mov rax, qword [rsp + 0x180]
mov rax, qword [rax + 0x168]
mov word [rax + 2], 2
mov eax, dword [rsp + 0xa0]
imul rax, rax, 6
lea rax, [rsp + rax + 0xf8]
movsxd rcx, dword [0x1401d06d8]
imul rcx, rcx, 6
lea rdx, [0x140281440]
add rdx, rcx
mov rcx, rdx
mov r8d, 6
mov rdx, rax
call sub.MSVCR110.dll_memcpy
mov eax, dword [0x1401d06d8]
add eax, 1
mov dword [0x1401d06d8], eax
jmp 0x1401471fd
call fcn.1400ccee0
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x180]
mov rax, qword [rax + 0x168]
movsx eax, word [rax + 2]
cmp eax, 0x67
jne 0x140147165
mov rax, qword [rsp + 0x68]
mov word [rax + 2], 0x67
jmp 0x140147170
mov rax, qword [rsp + 0x68]
mov word [rax + 2], 2
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x68]
mov qword [rax + 0x488], rcx
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0xa0]
imul rax, rax, 6
lea rax, [rsp + rax + 0xf8]
mov rcx, qword [rsp + 0x48]
add rcx, 8
mov r8d, 6
mov rdx, rax
call sub.MSVCR110.dll_memcpy
mov eax, dword [rsp + 0xa0]
imul rax, rax, 6
lea rax, [rsp + rax + 0xf8]
movsxd rcx, dword [0x1401d06d8]
imul rcx, rcx, 6
lea rdx, [0x140281440]
add rdx, rcx
mov rcx, rdx
mov r8d, 6
mov rdx, rax
call sub.MSVCR110.dll_memcpy
mov eax, dword [0x1401d06d8]
add eax, 1
mov dword [0x1401d06d8], eax
jmp 0x140147050
cmp dword [rsp + 0xd4], 0
je 0x140147215
mov eax, 1
jmp 0x140147217
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14006b6a0
add rsp, 0x178
ret