Function at 0x1000f630
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x10042fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x100532d0]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100532d0]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x7c]
mov edi, ecx
lea ecx, [edx + eax]
mov ebx, edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], ecx
cmp edx, ecx
jae 0x1000fa80
movzx ebp, byte [ebx + 3]
movzx esi, byte [ebx + 2]
shl ebp, 8
mov eax, ecx
or ebp, esi
sub eax, ebx
mov dword [esp + 0x44], ebp
cmp eax, ebp
jb 0x1000fa80
cmp byte [ebx], 0xf7
jne 0x1000fa6e
mov al, byte [ebx + 1]
xor esi, esi
cmp al, 6
jne 0x1000f752
push esi
push 0x10048f19
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], esi
mov byte [esp + 0x54], 0
call fcn.10003020
lea eax, [ebx + 9]
mov dword [esp + 0x74], esi
mov cl, byte [eax]
mov byte [esp + 0x34], cl
test cl, cl
je 0x1000f705
mov esi, eax
mov ecx, dword [esp + 0x34]
push ecx
push 1
lea ecx, [esp + 0x50]
call fcn.10004c00
mov al, byte [esi + 1]
inc esi
mov byte [esp + 0x34], al
test al, al
jne 0x1000f6e7
xor esi, esi
mov eax, dword [edi + 0x2d8]
lea edx, [esp + 0x48]
push edx
push eax
call fcn.1000b920
cmp eax, esi
je 0x1000f725
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebx + ebp - 0xc], eax
mov dword [esp + 0x74], 0xffffffff
cmp dword [esp + 0x60], 0x10
jb 0x1000f741
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.1001e30d
add esp, 4
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], esi
mov byte [esp + 0x4c], 0
cmp byte [edi + 0x2d0], 0
jne 0x1000f7d1
cmp dword [edi + 0xac], esi
je 0x1000f7d1
lea edx, [edi + 0x5c]
push edx
lea eax, [edi + 4]
push eax
mov ecx, edi
mov byte [edi + 0x2d0], 1
call fcn.100127b0
test al, al
je 0x1000f785
mov dword [edi + 0x2a4], esi
jmp 0x1000f7d1
mov eax, dword [edi + 0x54]
cmp eax, 3
je 0x1000f791
cmp eax, esi
jne 0x1000f7a1
mov eax, dword [edi + 0xac]
cmp eax, 2
je 0x1000f7a9
cmp eax, 4
je 0x1000f7a9
mov dword [edi + 0x2a4], esi
jmp 0x1000f7d1
call fcn.10014550
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 2
call eax
xor edx, edx
mov ecx, 0x1000fca0
push edx
push ecx
lea esi, [eax + 0x28]
mov dword [edi + 0x2a4], eax
call fcn.1000fe80
mov ecx, dword [edi + 0xb0]
mov eax, dword [edi + 0x2d8]
push 1
push ebp
push ebx
push 0x7f000001
push 6
call fcn.1000bdb0
mov ecx, edi
call fcn.10012810
test al, al
je 0x1000f7ff
mov ecx, edi
call fcn.10014030
mov ecx, ebp
mov dword [esp + 0x38], ecx
fild dword [esp + 0x38]
test ecx, ecx
jge 0x1000f813
fadd dword [0x1004a348]
fdiv qword [0x1004a340]
sub esp, 8
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp qword [esp]
call fcn.10029720
fnstcw word [esp + 0x24]
fstp dword [esp + 0x20]
add esp, 8
movzx eax, word [esp + 0x1c]
fld dword [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x18], eax
mov byte [esp + 0x24], 0
mov esi, ebp
fldcw word [esp + 0x18]
fistp dword [esp + 0x18]
mov al, byte [esp + 0x18]
movzx ecx, al
add ecx, 0xffffffff
fldcw word [esp + 0x1c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x38], ecx
js 0x1000fa6a
mov cl, al
dec cl
mov byte [esp + 0x28], cl
jmp 0x1000f894
mov ecx, dword [esp + 0x28]
mov ebp, 0x58b
cmp esi, 0x58b
ja 0x1000f8a4
movzx ebp, si
mov eax, dword [edi + 0xbc]
lea edx, [eax + 1]
sub esi, 0x58b
cmp dword [edi + 0xb4], 0
mov dword [edi + 0xbc], edx
setne dl
movzx edx, dl
push edx
movzx edx, word [edi + 0xba]
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
push edx
push ebp
push ebx
push eax
mov ecx, edi
mov dword [esp + 0x34], esi
call fcn.10013370
mov ax, word [edi + 0xbc]
dec ax
movzx ecx, ax
and ecx, 0x8000ffff
jns 0x1000f8ff
dec ecx
or ecx, 0xffff0000
inc ecx
cmp dword [edi + 0xb4], 2
movzx edx, cx
mov dword [esp + 0x40], edx
je 0x1000f99d
movzx eax, word [edi + 0xba]
movzx ebx, bp
lea ecx, [ebx + 0x24]
push ecx
mov dword [esp + 0x30], eax
call fcn.10029325
mov cx, word [esp + 0x44]
mov esi, eax
xor eax, eax
lea edx, [ebp + 0x11]
mov word [esi + 0xc], dx
mov dl, byte [esp + 0x2c]
add dl, dl
mov word [esi + 0xe], ax
mov dword [esi + 4], eax
mov al, byte [esp + 0x28]
add dl, dl
and al, 3
or dl, al
movzx eax, word [esp + 0x20]
add eax, dword [esp + 0x24]
mov word [esi + 0x1d], cx
mov cl, byte [esi + 0x18]
shl dl, 4
and cl, 8
or dl, cl
add esp, 4
or dl, 3
push ebx
mov byte [esi + 0x18], dl
mov dx, word [esp + 0x30]
push eax
lea ecx, [esi + 0x21]
push ecx
mov word [esi + 0x19], dx
call fcn.1002a210
add esp, 0xc
push esi
lea ecx, [edi + 0x138]
call fcn.10016280
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
cmp dword [edi + 0xb4], 0
je 0x1000fa4b
movzx edx, word [edi + 0xba]
movzx ebx, bp
lea eax, [ebx + 0x24]
push eax
mov dword [esp + 0x30], edx
call fcn.10029325
mov esi, eax
mov ax, word [esp + 0x44]
xor edx, edx
lea ecx, [ebp + 0x11]
mov word [esi + 0xc], cx
mov cl, byte [esp + 0x2c]
add cl, cl
mov word [esi + 0xe], dx
mov dword [esi + 4], edx
mov dl, byte [esp + 0x28]
add cl, cl
and dl, 3
or cl, dl
movzx edx, word [esp + 0x20]
add edx, dword [esp + 0x24]
mov word [esi + 0x1d], ax
mov al, byte [esi + 0x18]
shl cl, 4
and al, 8
or cl, al
add esp, 4
or cl, 2
push ebx
mov byte [esi + 0x18], cl
mov cx, word [esp + 0x30]
push edx
lea eax, [esi + 0x21]
push eax
mov word [esi + 0x19], cx
call fcn.1002a210
add esp, 0xc
cmp dword [edi + 0xb4], 1
jne 0x1000fa37
mov al, byte [esi + 0x18]
test al, 0xc0
jne 0x1000fa37
and al, 0xdf
or al, 0x10
mov byte [esi + 0x18], al
push esi
lea ecx, [edi + 0x1e8]
call fcn.10017260
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov al, byte [esp + 0x24]
add dword [esp + 0x1c], ebp
inc al
movzx ecx, al
cmp ecx, dword [esp + 0x38]
mov byte [esp + 0x24], al
jle 0x1000f890
mov ebp, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
add ebx, ebp
mov dword [esp + 0x20], ebx
cmp ebx, ecx
jb 0x1000f681
mov eax, ebx
sub eax, edx
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.10028736
add esp, 0x64
ret 4