Function at 0x1019cab0
Capabilities:
Check os version

Disassembly:
sub esp, 0x510
push ebx
push ebp
push esi
push edi
call fcn.10192d10
mov ecx, dword [0x1020de48]
mov edx, ecx
and edx, 1
cmp dl, 1
jne 0x1019cae4
mov edx, eax
and edx, 1
cmp dl, 1
jne 0x1019cae4
mov esi, 1
mov dword [esp + 0x14], esi
jmp 0x1019cb07
and ecx, 2
cmp cl, 2
jne 0x1019d05a
and eax, 2
cmp al, cl
jne 0x1019d05a
mov dword [esp + 0x14], 2
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x2ec]
mov dword [esp + 0x2ec], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x2fc], 2
je 0x1019cb7a
cmp esi, 2
jne 0x1019cb97
mov ecx, dword [esp + 0x53c]
mov edx, dword [esp + 0x538]
mov eax, dword [esp + 0x534]
push ecx
mov ecx, dword [esp + 0x534]
push edx
mov edx, dword [esp + 0x534]
push eax
mov eax, dword [esp + 0x534]
push ecx
mov ecx, dword [esp + 0x534]
push edx
push eax
push ecx
call fcn.1019c340
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x510
ret
cmp esi, 2
jne 0x1019cb97
push 0x3e8
push esi
push 6
call fcn.10193440
mov ebp, eax
add esp, 0xc
mov dword [esp + 0x10], ebp
jmp 0x1019cbab
push 0x11
push 2
push 2
call fcn.10193440
add esp, 0xc
mov dword [esp + 0x10], eax
mov ebp, eax
or ebx, 0xffffffff
cmp ebp, ebx
jne 0x1019cbc2
pop edi
pop esi
pop ebp
mov eax, 0x3f
pop ebx
add esp, 0x510
ret
push ebp
call fcn.1019c250
add esp, 4
push 1
call fcn.1019c240
push eax
call fcn.1019d940
add esp, 8
cmp eax, ebx
jne 0x1019cbf5
push ebp
call sub.WSOCK32.dll_closesocket
pop edi
pop esi
pop ebp
mov eax, 0x41
pop ebx
add esp, 0x510
ret
mov edx, dword [0x1021d874]
push edx
call fcn.1019b2f0
add esp, 4
test eax, eax
jne 0x1019cc3b
mov eax, dword [0x1021d874]
push eax
call fcn.1019b300
mov ax, word [eax]
add esp, 4
cmp ax, 6
jne 0x1019cc24
cmp esi, 2
je 0x1019cc3b
cmp ax, 2
jne 0x1019cc2f
cmp esi, 1
je 0x1019cc3b
mov dword [0x1020dee0], 1
jmp 0x1019cc48
mov eax, dword [0x1020dee0]
test eax, eax
je 0x1019cd54
mov edi, 0x1021d874
push edi
call fcn.1019b320
add esp, 4
cmp esi, 2
jne 0x1019cca5
push 0xe
call fcn.101bcde0
mov esi, eax
add esp, 4
test esi, esi
je 0x1019ccb5
mov edx, esi
xor ecx, ecx
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov word [edx + 0xc], cx
mov word [esi], 6
call fcn.1019c260
push eax
call fcn.10193570
mov word [esi + 0xc], ax
lea eax, [esi + 2]
lea edx, [esi + 6]
mov ecx, ebx
mov dword [eax], 0
mov dword [edx], ecx
mov word [edx + 4], cx
jmp 0x1019cd01
push 0x10
call fcn.101bcde0
mov esi, eax
add esp, 4
test esi, esi
jne 0x1019ccdb
push 0
call fcn.1019c240
push eax
call fcn.1019d940
add esp, 8
push ebp
call sub.WSOCK32.dll_closesocket
pop edi
pop esi
pop ebp
mov eax, 0x40
pop ebx
add esp, 0x510
ret
mov ecx, esi
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov word [esi], 2
call fcn.1019c260
push eax
call fcn.10193570
mov word [esi + 2], ax
mov dword [esi + 4], ebx
push esi
push edi
call fcn.1019b330
mov edx, dword [0x1021d874]
add esp, 0xc
mov dword [0x1021dbc0], edi
push edx
call fcn.1019b2f0
add esp, 4
test eax, eax
je 0x1019cd4a
push 0
call fcn.1019c240
push eax
call fcn.1019d940
add esp, 8
push ebp
call sub.WSOCK32.dll_closesocket
pop edi
pop esi
pop ebp
mov eax, 0x41
pop ebx
add esp, 0x510
ret
mov dword [0x1020dee0], 0
push 0
call fcn.101cdda5
add esp, 4
test eax, eax
jge 0x1019cd72
pop edi
pop esi
pop ebp
mov eax, 0x4a
pop ebx
add esp, 0x510
ret
push 0
call fcn.101cdda5
add esp, 4
and eax, 0x80001fff
jns 0x1019cd8a
dec eax
or eax, 0xffffe000
inc eax
mov esi, dword [esp + 0x528]
mov dword [esp + 0x150], eax
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x15c]
mov dword [esp + 0x158], ebx
mov dword [esp + 0x14c], 0x284
mov dword [esp + 0x154], 0
rep stosd dword es:[edi], eax
mov edi, esi
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x190
ja 0x1019cdea
mov eax, ecx
lea edi, [esp + 0x15c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [0x1021d874]
push esi
call fcn.1019b2f0
add esp, 4
test eax, eax
jne 0x1019ce46
push esi
call fcn.1019b300
add esp, 4
lea ecx, [esp + 0x14c]
push 0x10
push eax
push 0
push 0x1a0
push ecx
call fcn.1019c240
push eax
call fcn.101934f0
add esp, 0x18
cmp eax, 0x1a0
jne 0x1019cf05
push esi
call fcn.1019b310
mov esi, eax
push esi
call fcn.1019b2f0
add esp, 8
test eax, eax
je 0x1019cdfd
push 0
call fcn.101cdda5
mov ecx, dword [esp + 0x530]
mov edi, dword [esp + 0x540]
mov ebp, dword [esp + 0x53c]
mov ebx, dword [esp + 0x538]
mov esi, dword [esp + 0x534]
add esp, 4
add eax, ecx
mov dword [esp + 0x1c], eax
push 0
mov dword [esp + 0x28], 0
call fcn.101cdda5
mov edx, dword [esp + 0x20]
add esp, 4
sub edx, eax
mov dword [esp + 0x20], edx
jns 0x1019ce9f
mov dword [esp + 0x20], 0
mov dword [esp + 0x48], 0
call fcn.1019c240
mov ecx, dword [esp + 0x48]
mov dword [esp + ecx*4 + 0x4c], eax
mov edx, dword [esp + 0x48]
inc edx
lea eax, [esp + 0x48]
mov dword [esp + 0x48], edx
lea edx, [esp + 0x20]
push edx
push 0
push 0
push eax
call fcn.1019c240
inc eax
push eax
call fcn.10193470
add esp, 0x14
cmp eax, 0xffffffff
je 0x1019cfce
test eax, eax
je 0x1019d033
cmp dword [esp + 0x14], 2
jne 0x1019cf1b
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0xe
push ecx
lea edx, [esp + 0x2c]
jmp 0x1019cf2c
push ebp
call sub.WSOCK32.dll_closesocket
pop edi
pop esi
pop ebp
mov eax, 0x3e
pop ebx
add esp, 0x510
ret
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x10
push ecx
lea edx, [esp + 0x3c]
push edx
push 0
lea eax, [esp + 0x38c]
push 0x1a0
push eax
call fcn.1019c240
push eax
call fcn.10193530
add esp, 0x18
cmp eax, 0xffffffff
je 0x1019ce79
mov ecx, dword [esp + 0x384]
mov eax, dword [esp + 0x150]
cmp ecx, eax
jne 0x1019ce79
mov edx, dword [esp + 0x38c]
mov eax, dword [esp + 0x158]
cmp edx, eax
jne 0x1019ce79
cmp dword [esp + 0x14], 2
jne 0x1019cf92
lea eax, [esp + 0x28]
push eax
call fcn.10192ec0
jmp 0x1019cf9c
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.10193420
add esp, 4
lea edx, [esp + 0x390]
push edi
push ebp
push ebx
push esi
push eax
push edx
call fcn.1019c800
add esp, 0x18
cmp esi, 4
jne 0x1019cfc0
cmp word [edi + 0x20], 0
ja 0x1019d033
cmp eax, 0x40
je 0x1019cfdf
test eax, eax
je 0x1019d033
jmp 0x1019ce79
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2714
jne 0x1019cff9
jmp 0x1019ce79
mov eax, dword [esp + 0x10]
push eax
call sub.WSOCK32.dll_closesocket
pop edi
pop esi
pop ebp
mov eax, 0x40
pop ebx
add esp, 0x510
ret
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x1019d015
push 0
call fcn.1019c240
push eax
call fcn.1019d940
add esp, 8
mov ecx, dword [esp + 0x10]
push ecx
call sub.WSOCK32.dll_closesocket
mov ecx, dword [ebx]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setle al
add esp, 0x510
ret
push 0
call fcn.1019c240
push eax
call fcn.1019d940
mov edx, dword [esp + 0x18]
add esp, 8
push edx
call sub.WSOCK32.dll_closesocket
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x510
ret
pop edi
pop esi
pop ebp
mov eax, 0x4c
pop ebx
add esp, 0x510
ret