Function at 0x6ae556
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0xc0], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x11c]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x6c], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x10]
and eax, 0xffff
sar eax, 8
and eax, 0xff
and eax, 0xff
mov dword [ebp - 4], eax
cmp dword [ebp - 0x40], 4
jne 0x6ae5ed
cmp dword [ebp - 4], 0x5a
jne 0x6ae5ed
mov dword [ebp - 0x60], 1
cmp dword [ebp - 0x40], 4
jne 0x6ae600
cmp dword [ebp - 4], 0x5a
jne 0x6ae600
mov dword [ebp - 0x6c], 1
cmp dword [ebp - 0x40], 4
jne 0x6ae613
cmp dword [ebp - 4], 0
jne 0x6ae613
mov dword [ebp - 0x48], 1
cmp dword [ebp - 0x10], 0x80000000
jae 0x6ae633
mov ecx, dword [ebp - 0x10]
shr ecx, 0x10
and ecx, 0xffff
and ecx, 0xffff
mov dword [ebp - 0x80], ecx
jmp 0x6ae65a
cmp dword [ebp - 0x40], 4
jae 0x6ae653
mov edx, dword [ebp - 0x10]
shr edx, 0x10
and edx, 0xffff
and edx, 0xffff
and dh, 0x7f
mov dword [ebp - 0x80], edx
jmp 0x6ae65a
mov dword [ebp - 0x80], 0
cmp dword [ebp - 0x80], 0x565
ja 0x6ae66a
mov dword [ebp - 0x3c], 1
cmp dword [0x7a26fc], 0
jne 0x6ae678
call fcn.006ae41b
cmp dword [0x7a26f4], 0
je 0x6ae691
cmp dword [0x7a26f8], 0
je 0x6ae691
mov dword [ebp - 0x78], 1
cmp dword [ebp - 0x78], 0
je 0x6ae6a4
cmp dword [ebp - 0x48], 1
jne 0x6ae6a4
mov dword [ebp - 0x3c], 1
cmp dword [ebp - 0x78], 0
je 0x6ae6b7
cmp dword [ebp - 0x6c], 1
jne 0x6ae6b7
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x78], 0
je 0x6ae6ca
cmp dword [ebp - 0x60], 1
jne 0x6ae6ca
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x78], 0
je 0x6ae716
cmp dword [ebp - 0x3c], 0
jne 0x6ae716
mov dword [ebp - 0x4c], 5
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.006ae088
add esp, 8
mov dword [ebp - 0x7c], eax
push 0x3c
push 0x7e7180
lea edx, [ebp - 0xbc]
push edx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov eax, dword [0x7e71bc]
mov dword [ebp - 0xc0], eax
jmp 0x6ae94b
push str.NETAPI32.Dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x6ae732
or eax, 0xffffffff
jmp 0x6aea79
push str.NetWkstaTransportEnum
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x74], eax
push str.NetApiBufferFree
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x74], 0
je 0x6ae762
cmp dword [ebp - 0x70], 0
jne 0x6ae76a
or eax, 0xffffffff
jmp 0x6aea79
push 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0x1000
lea edx, [ebp - 8]
push edx
push 0
push 0
call dword [ebp - 0x74]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x6ae79f
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or eax, 0xffffffff
jmp 0x6aea79
mov dword [ebp - 0x58], 0
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x38], ecx
jmp 0x6ae7c0
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x38]
add eax, 0x14
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [ebp - 0x18]
jae 0x6ae93a
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x68], 0
jmp 0x6ae7e7
mov ecx, dword [ebp - 0x68]
add ecx, 1
mov dword [ebp - 0x68], ecx
cmp dword [ebp - 0x68], 0xc
jge 0x6ae7ff
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x5c]
mov al, byte [ecx + eax*2]
mov byte [ebp + edx - 0x2c], al
jmp 0x6ae7de
mov dword [ebp - 0x68], 0
jmp 0x6ae811
mov ecx, dword [ebp - 0x68]
add ecx, 1
mov dword [ebp - 0x68], ecx
cmp dword [ebp - 0x68], 6
jge 0x6ae91b
mov edx, dword [sym.imp.MSVCR80.dll___mb_cur_max]
cmp dword [edx], 1
jle 0x6ae842
push 4
mov eax, dword [ebp - 0x68]
movsx ecx, byte [ebp + eax*2 - 0x2c]
push ecx
call dword [sym.imp.MSVCR80.dll__isctype]
add esp, 8
mov dword [ebp - 0xc4], eax
jmp 0x6ae861
mov edx, dword [ebp - 0x68]
movsx eax, byte [ebp + edx*2 - 0x2c]
mov ecx, dword [sym.imp.MSVCR80.dll__pctype]
mov edx, dword [ecx]
xor ecx, ecx
mov cx, word [edx + eax*2]
and ecx, 4
mov dword [ebp - 0xc4], ecx
cmp dword [ebp - 0xc4], 0
je 0x6ae87d
mov edx, dword [ebp - 0x68]
movsx eax, byte [ebp + edx*2 - 0x2c]
sub eax, 0x30
mov dword [ebp - 0xc8], eax
jmp 0x6ae88e
mov ecx, dword [ebp - 0x68]
movsx edx, byte [ebp + ecx*2 - 0x2c]
sub edx, 0x37
mov dword [ebp - 0xc8], edx
mov eax, dword [sym.imp.MSVCR80.dll___mb_cur_max]
cmp dword [eax], 1
jle 0x6ae8b4
push 4
mov ecx, dword [ebp - 0x68]
movsx edx, byte [ebp + ecx*2 - 0x2b]
push edx
call dword [sym.imp.MSVCR80.dll__isctype]
add esp, 8
mov dword [ebp - 0xcc], eax
jmp 0x6ae8d3
mov eax, dword [ebp - 0x68]
movsx ecx, byte [ebp + eax*2 - 0x2b]
mov edx, dword [sym.imp.MSVCR80.dll__pctype]
mov eax, dword [edx]
xor edx, edx
mov dx, word [eax + ecx*2]
and edx, 4
mov dword [ebp - 0xcc], edx
cmp dword [ebp - 0xcc], 0
je 0x6ae8ef
mov eax, dword [ebp - 0x68]
movsx ecx, byte [ebp + eax*2 - 0x2b]
sub ecx, 0x30
mov dword [ebp - 0xd0], ecx
jmp 0x6ae900
mov edx, dword [ebp - 0x68]
movsx eax, byte [ebp + edx*2 - 0x2b]
sub eax, 0x37
mov dword [ebp - 0xd0], eax
mov ecx, dword [ebp - 0xc8]
shl ecx, 4
add ecx, dword [ebp - 0xd0]
mov edx, dword [ebp - 0x68]
mov byte [ebp + edx - 0x54], cl
jmp 0x6ae808
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0xc0]
push ecx
lea edx, [ebp - 0xbc]
push edx
call fcn.006aea7d
add esp, 0xc
jmp 0x6ae7ae
mov eax, dword [ebp - 8]
push eax
call dword [ebp - 0x70]
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x58], 0
jmp 0x6ae964
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0xc0]
jae 0x6aea67
cmp dword [ebp - 0x1c], 0
je 0x6ae9eb
mov dword [ebp - 0x1c], 0
push 6
mov ecx, dword [ebp - 0x58]
imul ecx, ecx, 6
lea edx, [ebp + ecx - 0xbc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x11c]
add ecx, 8
push ecx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x11c]
mov word [eax + 2], 2
push 6
mov ecx, dword [ebp - 0x58]
imul ecx, ecx, 6
lea edx, [ebp + ecx - 0xbc]
push edx
mov eax, dword [0x7a0db8]
imul eax, eax, 6
add eax, 0x7e7640
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov ecx, dword [0x7a0db8]
add ecx, 1
mov dword [0x7a0db8], ecx
jmp 0x6aea62
call fcn.00656d4c
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x64]
mov word [edx + 2], 2
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x64]
mov dword [eax + 0x480], ecx
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x34], edx
push 6
mov eax, dword [ebp - 0x58]
imul eax, eax, 6
lea ecx, [ebp + eax - 0xbc]
push ecx
mov edx, dword [ebp - 0x34]
add edx, 8
push edx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
push 6
mov eax, dword [ebp - 0x58]
imul eax, eax, 6
lea ecx, [ebp + eax - 0xbc]
push ecx
mov edx, dword [0x7a0db8]
imul edx, edx, 6
add edx, 0x7e7640
push edx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov eax, dword [0x7a0db8]
add eax, 1
mov dword [0x7a0db8], eax
jmp 0x6ae95b
cmp dword [ebp - 0xc0], 0
je 0x6aea77
mov eax, 1
jmp 0x6aea79
xor eax, eax
mov esp, ebp
pop ebp
ret