Function at 0x10029a90
Capabilities:
Check os version

Disassembly:
sub esp, 0x510
push ebx
push ebp
push esi
push edi
call fcn.1002c1a0
mov ecx, dword [0x1005d6e0]
mov edx, ecx
and edx, 1
cmp dl, 1
jne 0x10029ac4
mov edx, eax
and edx, 1
cmp dl, 1
jne 0x10029ac4
mov esi, 1
mov dword [esp + 0x14], esi
jmp 0x10029ae7
and ecx, 2
cmp cl, 2
jne 0x1002a034
and eax, 2
cmp al, cl
jne 0x1002a034
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 0x10029b5a
cmp esi, 2
jne 0x10029b77
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.10029350
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x510
ret
cmp esi, 2
jne 0x10029b77
push 0x3e8
push esi
push 6
call fcn.10028f70
mov edi, eax
add esp, 0xc
mov dword [esp + 0x10], edi
jmp 0x10029b8b
push 0x11
push 2
push 2
call fcn.10028f70
add esp, 0xc
mov dword [esp + 0x10], eax
mov edi, eax
or ebp, 0xffffffff
cmp edi, ebp
jne 0x10029ba2
pop edi
pop esi
pop ebp
mov eax, 0x3f
pop ebx
add esp, 0x510
ret
push edi
call fcn.10029260
add esp, 4
push 1
call fcn.10029250
push eax
call fcn.1002a910
add esp, 8
cmp eax, ebp
jne 0x10029bd5
push edi
call sub.WS2_32.dll_closesocket
pop edi
pop esi
pop ebp
mov eax, 0x41
pop ebx
add esp, 0x510
ret
mov edx, dword [0x10071184]
push edx
call fcn.10028190
add esp, 4
test eax, eax
jne 0x10029c1b
mov eax, dword [0x10071184]
push eax
call fcn.100281a0
mov ax, word [eax]
add esp, 4
cmp ax, 6
jne 0x10029c04
cmp esi, 2
je 0x10029c1b
cmp ax, 2
jne 0x10029c0f
cmp esi, 1
je 0x10029c1b
mov dword [0x1005d83c], 1
jmp 0x10029c28
mov eax, dword [0x1005d83c]
test eax, eax
je 0x10029d37
push 0x10071184
call fcn.100281c0
add esp, 4
cmp esi, 2
jne 0x10029c85
push 0xe
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x10029c96
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.10029270
push eax
call fcn.100290a0
mov word [esi + 0xc], ax
lea eax, [esi + 2]
lea edx, [esi + 6]
mov ecx, ebp
mov dword [eax], 0
mov dword [edx], ecx
mov word [edx + 4], cx
jmp 0x10029ce2
push 0x10
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x10029cbc
push 0
call fcn.10029250
push eax
call fcn.1002a910
add esp, 8
push edi
call sub.WS2_32.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.10029270
push eax
call fcn.100290a0
mov word [esi + 2], ax
mov dword [esi + 4], ebp
push esi
push 0x10071184
call fcn.100281d0
mov eax, dword [0x10071184]
add esp, 0xc
mov dword [0x10071180], eax
push eax
call fcn.10028190
add esp, 4
test eax, eax
je 0x10029d2d
push 0
call fcn.10029250
push eax
call fcn.1002a910
add esp, 8
push edi
call sub.WS2_32.dll_closesocket
pop edi
pop esi
pop ebp
mov eax, 0x41
pop ebx
add esp, 0x510
ret
mov dword [0x1005d83c], 0
mov ebx, dword [sym.imp.MSVCR80.dll__time32]
push 0
call ebx
add esp, 4
test eax, eax
jge 0x10029d58
pop edi
pop esi
pop ebp
mov eax, 0x4a
pop ebx
add esp, 0x510
ret
push 0
call ebx
and eax, 0x80001fff
jns 0x10029d6a
dec eax
or eax, 0xffffe000
inc eax
mov esi, dword [esp + 0x52c]
mov dword [esp + 0x154], eax
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x160]
mov dword [esp + 0x15c], ebp
mov dword [esp + 0x150], 0x284
mov dword [esp + 0x158], 0
rep stosd dword es:[edi], eax
mov edi, esi
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
mov edx, ecx
lea edi, [esp + 0x160]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [0x10071184]
push esi
call fcn.10028190
add esp, 8
test eax, eax
jne 0x10029e1e
push esi
call fcn.100281a0
add esp, 4
push 0x10
push eax
push 0
lea eax, [esp + 0x158]
push 0x1a0
push eax
call fcn.10029250
push eax
call fcn.10029020
add esp, 0x18
cmp eax, 0x1a0
jne 0x10029edb
push esi
call fcn.100281b0
mov esi, eax
push esi
call fcn.10028190
add esp, 8
test eax, eax
je 0x10029dd5
push 0
call ebx
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 dword [sym.imp.MSVCR80.dll__time32]
mov edx, dword [esp + 0x20]
add esp, 4
sub edx, eax
mov dword [esp + 0x20], edx
jns 0x10029e75
mov dword [esp + 0x20], 0
mov dword [esp + 0x48], 0
call fcn.10029250
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.10029250
inc eax
push eax
call fcn.10028fa0
add esp, 0x14
cmp eax, 0xffffffff
je 0x10029fa8
test eax, eax
je 0x1002a00d
cmp dword [esp + 0x14], 2
jne 0x10029ef5
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0xe
push ecx
lea edx, [esp + 0x2c]
jmp 0x10029f06
mov ecx, dword [esp + 0x10]
push ecx
call sub.WS2_32.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.10029250
push eax
call fcn.10029060
add esp, 0x18
cmp eax, 0xffffffff
je 0x10029e4e
mov ecx, dword [esp + 0x384]
mov eax, dword [esp + 0x150]
cmp ecx, eax
jne 0x10029e4e
mov edx, dword [esp + 0x38c]
mov eax, dword [esp + 0x158]
cmp edx, eax
jne 0x10029e4e
cmp dword [esp + 0x14], 2
jne 0x10029f6c
lea eax, [esp + 0x28]
push eax
call fcn.1002c360
jmp 0x10029f76
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.10028f50
add esp, 4
lea edx, [esp + 0x390]
push edi
push ebp
push ebx
push esi
push eax
push edx
call fcn.10029800
add esp, 0x18
cmp esi, 4
jne 0x10029f9a
cmp word [edi + 0x20], 0
ja 0x1002a00d
cmp eax, 0x40
je 0x10029fb9
test eax, eax
je 0x1002a00d
jmp 0x10029e4e
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2714
jne 0x10029fd3
jmp 0x10029e4e
mov eax, dword [esp + 0x10]
push eax
call sub.WS2_32.dll_closesocket
pop edi
pop esi
pop ebp
mov eax, 0x40
pop ebx
add esp, 0x510
ret
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x10029fef
push 0
call fcn.10029250
push eax
call fcn.1002a910
add esp, 8
mov ecx, dword [esp + 0x10]
push ecx
call sub.WS2_32.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.10029250
push eax
call fcn.1002a910
mov edx, dword [esp + 0x18]
add esp, 8
push edx
call sub.WS2_32.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