Function at 0x40c730
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bcafb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2070
call fcn.004bb4f0
mov eax, dword [0x66bf78]
xor eax, esp
mov dword [esp + 0x206c], eax
push esi
push edi
mov eax, dword [0x66bf78]
xor eax, esp
push eax
lea eax, [esp + 0x2080]
mov dword fs:[0], eax
mov edi, edx
mov dword [esp + 0x1c], edi
mov esi, ecx
xor ecx, ecx
mov byte [esp + 0x13], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x154], ecx
mov dword [esp + 0x158], ecx
mov dword [esp + 0x150], ecx
mov dword [esp + 0x2088], ecx
lea ecx, [esp + 0x14c]
mov dword [esp + method.ICMPv6Header.virtual_0], vtable.IPv4Header.0
call fcn.0040a350
mov dword [esp + 0x2088], 1
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov byte [esp + 0x2088], 2
xorps xmm0, xmm0
movdqu xmmword [esp + 0xb4], xmm0
mov al, 0x60
mov dword [esp + 0xa4], vtable.IPv6Header.0
movdqu xmmword [esp + 0xc4], xmm0
push 0
movq qword [esp + 0xd8], xmm0
psrldq xmm0, 1
movd ecx, xmm0
mov dword [esp + 0xac], 0x28
mov byte [esp + 0xb8], al
and cl, 0xf
mov byte [esp + 0xb9], cl
call dword [sym.imp.WS2_32.dll_htonl]
mov cl, byte [esp + 0xb5]
mov dword [esp + 0x14], eax
mov al, ah
xor al, cl
mov byte [esp + 0xbb], 0x40
and al, 0xf
xor cl, al
movzx eax, byte [esp + 0x16]
mov byte [esp + 0xb6], al
movzx eax, byte [esp + 0x17]
mov byte [esp + 0xb7], al
mov eax, dword [esp + 0xa4]
mov byte [esp + 0xb5], cl
lea ecx, [esp + 0xa4]
push 6
call dword [eax + 0x44]
push 0
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xb8], ax
mov dword [esp + 0x1a4], 0
mov dword [esp + 0x1a8], 0
mov dword [esp + 0x1a0], 0
mov byte [esp + 0x2088], 4
lea ecx, [esp + 0x19c]
mov dword [esp + method.ICMPv6Header.virtual_0], vtable.TCPHeader.0
call fcn.0040b210
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov byte [esp + 0x2088], 6
lea ecx, [esp + 0x28]
push 0x35
mov dword [esp + 0x2c], vtable.UDPHeader.0
mov dword [esp + 0x30], 8
call dword [0x4e3fac]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x28]
push 0x35
call dword [eax + 0x44]
push 8
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x3c], ax
lea ecx, [esp + 0x28]
mov eax, dword [esp + 0x28]
push 0
call dword [eax + 0x48]
lea ecx, [esp + 0x1224]
mov dword [esp + 0x122c], 0
mov dword [esp + 0x1230], 0
mov dword [esp + 0x1228], 0
mov dword [esp + 0x1224], 0x4e450c
call fcn.0040f5a0
lea eax, [esp + 0xf0]
mov dword [esp + 0xe4], 0
xorps xmm0, xmm0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xe0], 0
mov dword [esp + 0xdc], vtable.ICMPv6Header.0
movdqu xmmword [esp + 0xec], xmm0
mov dword [esp + 0x114], eax
movdqu xmmword [esp + 0xfc], xmm0
mov dword [esp + 0x118], eax
movq qword [esp + 0x10c], xmm0
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], eax
mov dword [esp + 0x134], eax
mov dword [esp + 0x138], eax
mov dword [esp + 0x13c], eax
mov dword [esp + 0x140], eax
mov dword [esp + 0x144], eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x40], vtable.EthernetHeader.0
movq qword [esp + 0x50], xmm0
mov dword [esp + 0x58], 0
mov word [esp + 0x5c], 0
mov dword [esp + 0x44], 0xe
lea ecx, [esp + 0x185c]
mov byte [esp + 0x2088], 0xa
call fcn.0040c360
xorps xmm0, xmm0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x8c], vtable.FragmentHeader.0
movq qword [esp + 0x9c], xmm0
mov dword [esp + 0x90], 8
mov dword [esp + 0x1f4], 0
mov dword [esp + 0x1f8], 0
push 0x802
lea eax, [esp + 0x200]
mov byte [esp + 0x208c], 0xd
push 0
push eax
mov dword [esp + method.ICMPv6Header.virtual_0], vtable.HopByHopHeader.0
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x1f0], 2
lea eax, [esp + 0x1fe]
mov dword [esp + 0xa00], eax
push 0x4e3fbc
push 4
push ecx
lea ecx, [esp + 0x1f8]
call fcn.0040c200
push 0x808
lea eax, [esp + 0xa18]
mov dword [esp + 0xa10], 0
push 0
push eax
mov dword [esp + 0xa1c], 0
mov dword [esp + 0xa10], 0x4e40d4
call sub.MSVCR120.dll_memset
lea eax, [esp + 0xa28]
mov dword [esp + 0xa14], 8
mov dword [esp + 0x1228], eax
xorps xmm0, xmm0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x6c], vtable.ARPHeader.0
movdqu xmmword [esp + 0x7c], xmm0
mov dword [esp + 0x94], 0
movq qword [esp + 0x8c], xmm0
mov dword [esp + 0x70], 0x1c
push 0x108
push 0
push 0x691350
mov byte [esp + 0x20a0], 0x10
call sub.MSVCR120.dll_memset
add esp, 0x18
cmp byte [ebp + 8], 0
je 0x40cbc2
mov edx, 0x61
mov ecx, 2
mov dword [esp + 0x18], edx
jmp 0x40cbc9
mov ecx, 3
xor edx, edx
mov al, byte [esp + 0x13]
mov dword [esp + 0x14], ecx
test edi, edi
je 0x40d78f
cmp al, 0x20
jae 0x40d78f
cmp ecx, 2
jne 0x40cda0
cmp edx, 0x61
jne 0x40ccd8
test esi, esi
je 0x40d6e5
cmp edi, 0xe
jb 0x40d6e5
mov eax, dword [esi + 8]
xorps xmm0, xmm0
mov dword [esp + 0x58], 0
mov dword [esp + 0x58], eax
mov ax, word [esi + 0xc]
movq qword [esp + 0x50], xmm0
movq xmm0, qword [esi]
mov word [esp + 0x5c], 0
mov word [esp + 0x5c], ax
push dword [esp + 0x5c]
movq qword [esp + 0x54], xmm0
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
sub eax, 0x800
je 0x40cc75
sub eax, 6
je 0x40cc69
sub eax, 0x7ed7
je 0x40cc62
mov ecx, 5
mov edx, 0x270f
jmp 0x40cc7f
mov edx, 0x29
jmp 0x40cc7a
mov ecx, 2
mov edx, 0x806
jmp 0x40cc7f
mov edx, 4
mov ecx, 3
movzx eax, byte [esp + 0x13]
add esi, 0xe
shl eax, 3
xorps xmm0, xmm0
mov dword [esp + 0x18], edx
movq qword [esp + 0x50], xmm0
mov dword [esp + 0x58], 0
mov dword [eax + 0x691354], 0xe
mov dword [eax + 0x691350], 0x61
mov al, byte [esp + 0x13]
inc al
mov word [esp + 0x5c], 0
sub edi, 0xe
mov byte [esp + 0x13], al
mov dword [esp + 0x44], 0xe
mov dword [esp + 0x1c], edi
jmp 0x40cbcd
cmp edx, 0x806
jne 0x40cd77
test esi, esi
je 0x40d6e5
cmp edi, 0x1c
jb 0x40d6e5
mov cl, byte [esp + 0x13]
xorps xmm0, xmm0
movzx eax, cl
add esi, 0x1c
shl eax, 3
inc cl
sub edi, 0x1c
movq qword [esp + 0x80], xmm0
movdqu xmmword [esp + 0x70], xmm0
mov dword [esp + 0x88], 0
mov dword [eax + 0x691354], 0x1c
mov dword [eax + 0x691350], edx
mov byte [esp + 0x13], cl
movdqu xmmword [esp + 0x70], xmm0
mov dword [esp + 0x88], 0
movq qword [esp + 0x80], xmm0
mov dword [esp + 0x64], 0x1c
mov dword [esp + 0x1c], edi
je 0x40d78f
mov edx, 0x270f
mov ecx, 5
mov dword [esp + 0x18], edx
jmp 0x40cbc9
push 0x123
push 0x4e4118
push str.finishedtrue
call dword [sym.imp.MSVCR120.dll__wassert]
mov edx, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov al, byte [esp + 0x13]
jmp 0x40cbd1
cmp ecx, 3
jne 0x40d0a4
test esi, esi
je 0x40d6e5
cmp edi, 0x14
jb 0x40d6e5
cmp dword [esp + 0x1c], 0x3c
lea ecx, [esp + 0x14c]
mov eax, 0x3c
cmova edi, eax
call fcn.0040a350
push edi
lea eax, [esp + 0x160]
mov dword [esp + 0x154], edi
push esi
push eax
call sub.MSVCR120.dll_memcpy
mov cl, byte [esp + 0x168]
add esp, 0xc
mov al, cl
shr al, 4
cmp al, 4
jne 0x40cf08
mov al, cl
and al, 0xf
cmp al, 5
jb 0x40d6e1
movzx edi, cl
and edi, 0xf
shl edi, 2
mov dword [esp + 0x24], edi
cmp edi, dword [esp + 0x150]
jg 0x40d6e1
mov dword [esp + 0x150], edi
cmp edi, 0xffffffff
je 0x40d6e1
movzx eax, byte [esp + 0x165]
dec eax
cmp eax, 0x28
ja case.0x40ce4b.2
movzx eax, byte [eax + 0x40d7d0]
jmp dword [eax*4 + 0x40d7b8]
mov dword [esp + 0x14], 4
mov dword [esp + 0x18], 1
jmp 0x40cebd
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], 4
jmp 0x40cebd
mov dword [esp + 0x14], 4
mov dword [esp + 0x18], 6
jmp 0x40cebd
mov dword [esp + 0x14], 4
mov dword [esp + 0x18], 0x11
jmp 0x40cebd
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], 0x29
jmp 0x40cebd
mov ecx, 0x270f
mov dword [esp + 0x14], 5
mov dword [esp + 0x18], ecx
mov cl, byte [esp + 0x13]
movzx eax, cl
inc cl
shl eax, 3
mov byte [esp + 0x13], cl
lea ecx, [esp + 0x14c]
mov dword [eax + 0x691354], edi
mov dword [eax + 0x691350], 4
call fcn.0040a350
mov edx, dword [esp + 0x18]
add esi, edi
mov edi, dword [esp + 0x1c]
sub edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov al, byte [esp + 0x13]
mov dword [esp + 0x1c], edi
jmp 0x40cbd1
cmp al, 6
jne 0x40d08d
lea ecx, [esp + 0x14c]
call fcn.0040a350
mov edi, dword [esp + 0x1c]
cmp edi, 0x28
jb 0x40d6e5
lea ecx, [esp + 0xa4]
call fcn.0040aa60
mov dword [esp + 0xa8], 0x28
movdqu xmm1, xmmword [esi]
movdqu xmmword [esp + 0xb4], xmm1
movdqu xmm0, xmmword [esi + 0x10]
psrldq xmm1, 4
movd eax, xmm1
movdqu xmmword [esp + 0xc4], xmm0
movq xmm0, qword [esi + 0x20]
shr eax, 0x10
movzx eax, al
movq qword [esp + 0xd4], xmm0
cmp eax, 0x3c
ja case.0x40cf88.1
movzx eax, byte [eax + 0x40d824]
jmp dword [eax*4 + 0x40d7fc]
mov dword [esp + 0x14], 4
mov dword [esp + 0x18], 0x3a
jmp 0x40d042
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], 4
jmp 0x40d042
mov dword [esp + 0x14], 4
mov dword [esp + 0x18], 6
jmp 0x40d042
mov dword [esp + 0x14], 4
mov dword [esp + 0x18], 0x11
jmp 0x40d042
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], 0x29
jmp 0x40d042
mov dword [esp + 0x14], 6
xor ecx, ecx
jmp 0x40d03e
mov dword [esp + 0x14], 6
mov dword [esp + 0x18], 0x3c
jmp 0x40d042
mov dword [esp + 0x14], 6
mov dword [esp + 0x18], 0x2b
jmp 0x40d042
mov dword [esp + 0x14], 6
mov dword [esp + 0x18], 0x2c
jmp 0x40d042
mov dword [esp + 0x14], 5
mov ecx, 0x270f
mov dword [esp + 0x18], ecx
mov cl, byte [esp + 0x13]
movzx eax, cl
inc cl
shl eax, 3
mov byte [esp + 0x13], cl
lea ecx, [esp + 0xa4]
mov dword [eax + 0x691354], 0x28
mov dword [eax + 0x691350], 0x29
call fcn.0040aa60
mov edx, dword [esp + 0x18]
add esi, 0x28
mov ecx, dword [esp + 0x14]
sub edi, 0x28
mov al, byte [esp + 0x13]
mov dword [esp + 0x1c], edi
jmp 0x40cbd1
mov edi, dword [esp + 0x1c]
mov edx, 0x270f
mov ecx, 5
mov dword [esp + 0x18], edx
jmp 0x40cbc9
cmp ecx, 4
jne 0x40d3f9
cmp edx, 6
jne 0x40d1a4
test esi, esi
je 0x40d6e5
cmp edi, 0x14
jb 0x40d6e5
cmp edi, 0x3c
mov ecx, 0x3c
mov eax, edi
cmova eax, ecx
lea ecx, [esp + 0x19c]
mov dword [esp + 0x24], eax
call fcn.0040b210
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1a0], ecx
cmp ecx, 0x14
jle 0x40d0fe
lea eax, [ecx - 0x14]
mov dword [esp + 0x1e8], eax
push ecx
lea eax, [esp + 0x1b0]
push esi
push eax
call sub.MSVCR120.dll_memcpy
mov cl, byte [esp + 0x1c4]
add esp, 0xc
mov al, cl
and al, 0xf0
cmp al, 0x50
jb 0x40d6e5
movzx edx, cl
shr edx, 4
shl edx, 2
mov dword [esp + 0x24], edx
cmp edx, dword [esp + 0x1a0]
jg 0x40d6e5
mov dword [esp + 0x1a0], edx
cmp edx, 0xffffffff
je 0x40d6e5
mov ecx, 0x270f
mov dword [esp + 0x18], ecx
mov cl, byte [esp + 0x13]
movzx eax, cl
inc cl
mov byte [esp + 0x13], cl
lea ecx, [esp + 0x19c]
mov dword [eax*8 + 0x691354], edx
mov dword [eax*8 + 0x691350], 6
call fcn.0040b210
mov eax, dword [esp + 0x24]
add esi, eax
sub edi, eax
mov al, byte [esp + 0x13]
mov ecx, 5
mov dword [esp + 0x14], ecx
mov edx, 0x270f
mov dword [esp + 0x1c], edi
jmp 0x40cbd1
cmp edx, 0x11
jne 0x40d23f
push edi
push esi
lea ecx, [esp + 0x30]
call fcn.0040bc40
cmp eax, 0xffffffff
je 0x40d6e5
cmp dword [esp + 0x2c], 8
jne 0x40d6e5
mov ecx, 0x270f
mov dword [esp + 0x2c], 8
mov dword [esp + 0x18], ecx
mov cl, byte [esp + 0x13]
movzx eax, cl
inc cl
mov byte [esp + 0x13], cl
lea ecx, [esp + 0x28]
push 0x35
mov dword [eax*8 + 0x691354], 8
mov dword [eax*8 + 0x691350], 0x11
mov eax, dword [esp + 0x2c]
call dword [eax + 0x3c]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x28]
push 0x35
call dword [eax + 0x44]
push 8
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x3c], ax
lea ecx, [esp + 0x28]
mov eax, dword [esp + 0x28]
push 0
call dword [eax + 0x48]
add esi, 8
sub edi, 8
jmp 0x40d189
cmp edx, 1
jne 0x40d335
test esi, esi
je 0x40d6e5
cmp edi, 8
jb 0x40d6e5
cmp dword [esp + 0x1c], 0x5e0
lea ecx, [esp + 0x1224]
mov eax, 0x5e0
cmova edi, eax
call fcn.0040f5a0
push edi
lea eax, [esp + 0x1238]
mov dword [esp + 0x122c], edi
push esi
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
lea ecx, [esp + 0x1224]
call fcn.0040f690
mov edi, eax
mov dword [esp + 0x24], edi
cmp edi, 0xffffffff
je 0x40d6e1
movzx ecx, byte [esp + 0x1234]
add ecx, 0xfffffffd
cmp ecx, 9
ja case.0x40d2c0.6
movzx ecx, byte [ecx + 0x40d86c]
jmp dword [ecx*4 + 0x40d864]
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], 4
jmp 0x40d2ea
mov ecx, 0x270f
mov dword [esp + 0x14], 5
mov dword [esp + 0x18], ecx
mov cl, byte [esp + 0x13]
movzx eax, cl
inc cl
shl eax, 3
mov byte [esp + 0x13], cl
lea ecx, [esp + 0x1224]
mov dword [eax + 0x691354], edi
mov dword [eax + 0x691350], 1
call fcn.0040f5a0
mov edx, dword [esp + 0x18]
add esi, edi
mov edi, dword [esp + 0x1c]
sub edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov al, byte [esp + 0x13]
mov dword [esp + 0x1c], edi
jmp 0x40cbd1
cmp edx, 0x3a
jne 0x40d3e6
push edi
push esi
lea ecx, [esp + 0xe4]
call fcn.00409550
cmp eax, 0xffffffff
je 0x40d6e5
lea ecx, [esp + 0xdc]
call fcn.004095f0
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
je 0x40d6e5
mov cl, byte [esp + 0xec]
dec cl
cmp cl, 3
ja 0x40d38b
mov dword [esp + 0x14], 3
mov edx, 0x29
jmp 0x40d398
mov edx, 0x270f
mov dword [esp + 0x14], 5
mov cl, byte [esp + 0x13]
mov edi, dword [esp + 0x24]
movzx eax, cl
inc cl
mov byte [esp + 0x13], cl
lea ecx, [esp + 0xdc]
mov dword [esp + 0x18], edx
mov dword [eax*8 + 0x691354], edi
mov dword [eax*8 + 0x691350], 0x3a
call fcn.00409500
mov ecx, dword [esp + 0x14]
mov eax, edi
mov edi, dword [esp + 0x1c]
add esi, eax
sub edi, eax
mov al, byte [esp + 0x13]
mov dword [esp + 0x1c], edi
jmp 0x40cbd1
mov edx, 0x270f
mov ecx, 5
mov dword [esp + 0x18], edx
jmp 0x40cbcd
cmp ecx, 6
jne 0x40d6ef
test edx, edx
jne 0x40d48e
push edi
push esi
lea ecx, [esp + 0x1f4]
call fcn.0040bf00
cmp eax, 0xffffffff
je 0x40d6e5
lea ecx, [esp + 0x1ec]
call fcn.0040bf80
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x40d6e5
mov al, byte [esp + 0x1fc]
push 0x802
mov byte [esp + 0x27], al
lea eax, [esp + 0x200]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x1f0], 2
lea eax, [esp + 0x1fe]
mov dword [esp + 0xa00], eax
push 0x4e3fbc
push 4
push ecx
lea ecx, [esp + 0x1f8]
call fcn.0040c200
jmp 0x40d5a6
cmp edx, 0x2b
jne 0x40d503
push edi
push esi
lea ecx, [esp + 0xa0c]
call fcn.0040c500
cmp eax, 0xffffffff
je 0x40d6e5
lea ecx, [esp + 0xa04]
call fcn.0040c630
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x40d6e5
mov al, byte [esp + 0xa14]
push 0x808
mov byte [esp + 0x27], al
lea eax, [esp + 0xa18]
push 0
push eax
call sub.MSVCR120.dll_memset
lea eax, [esp + 0xa28]
mov dword [esp + 0xa14], 8
add esp, 0xc
mov dword [esp + 0x121c], eax
jmp 0x40d5a6
cmp edx, 0x2c
jne 0x40d556
push edi
push esi
lea ecx, [esp + 0x94]
call fcn.0040f2e0
cmp eax, 0xffffffff
je 0x40d6e5
cmp dword [esp + 0x90], 8
jne 0x40d6e5
mov al, byte [esp + 0x9c]
mov ecx, 8
xorps xmm0, xmm0
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x23], al
movq qword [esp + 0x9c], xmm0
mov dword [esp + 0x90], ecx
jmp 0x40d5aa
cmp edx, 0x3c
jne 0x40d6e5
push edi
push esi
lea ecx, [esp + 0x1864]
call fcn.0040bf00
cmp eax, 0xffffffff
je 0x40d6e5
lea ecx, [esp + 0x185c]
call fcn.0040bf80
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x40d6e5
mov al, byte [esp + 0x186c]
lea ecx, [esp + 0x185c]
mov byte [esp + 0x23], al
call fcn.0040bec0
mov ecx, dword [esp + 0x1c]
mov dl, byte [esp + 0x13]
add esi, dword [esp + 0x1c]
sub edi, dword [esp + 0x1c]
movzx eax, dl
inc dl
mov byte [esp + 0x13], dl
mov dword [esp + 0x1c], edi
mov dword [eax*8 + 0x691354], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax*8 + 0x691350], ecx
movzx eax, byte [esp + 0x23]
cmp eax, 0x3c
ja case.0x40d5ea.1
movzx eax, byte [eax + 0x40d8a0]
jmp dword [eax*4 + 0x40d878]
mov al, byte [esp + 0x13]
mov ecx, 4
mov edx, 0x3a
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
jmp 0x40cbd1
mov al, byte [esp + 0x13]
mov ecx, 3
mov edx, 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
jmp 0x40cbd1
mov al, byte [esp + 0x13]
mov ecx, 4
mov edx, 6
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
jmp 0x40cbd1
mov al, byte [esp + 0x13]
mov ecx, 4
mov edx, 0x11
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
jmp 0x40cbd1
mov al, byte [esp + 0x13]
mov ecx, 3
mov edx, 0x29
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
jmp 0x40cbd1
mov al, byte [esp + 0x13]
mov ecx, 6
xor edx, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
jmp 0x40cbd1
mov al, byte [esp + 0x13]
mov ecx, 6
mov edx, 0x3c
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
jmp 0x40cbd1
mov al, byte [esp + 0x13]
mov ecx, 6
mov edx, 0x2b
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
jmp 0x40cbd1
mov al, byte [esp + 0x13]
mov ecx, 6
mov edx, 0x2c
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
jmp 0x40cbd1
mov edi, dword [esp + 0x1c]
movzx eax, byte [esp + 0x13]
jmp 0x40d77d
test esi, esi
je 0x40d77a
cmp edi, 0x1c
jb 0x40d77a
movdqu xmm1, xmmword [esi]
mov eax, dword [esi + 0x18]
movq xmm0, qword [esi + 0x10]
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
mov dword [esp + 0x88], eax
movd eax, xmm1
movdqu xmmword [esp + 0x70], xmm1
push eax
movq qword [esp + 0x84], xmm0
call esi
cmp ax, 1
jne 0x40d776
push dword [esp + 0x72]
call esi
mov ecx, 0x800
cmp ax, cx
jne 0x40d776
cmp byte [esp + 0x74], 6
jne 0x40d776
cmp byte [esp + 0x75], 4
jne 0x40d776
movzx eax, byte [esp + 0x13]
shl eax, 3
mov dword [eax + 0x691354], 0x1c
mov dword [eax + 0x691350], 0x806
mov al, byte [esp + 0x13]
inc al
sub edi, 0x1c
jmp 0x40d77a
mov al, byte [esp + 0x13]
movzx eax, al
mov dword [eax*8 + 0x691350], 0x270f
mov dword [eax*8 + 0x691354], edi
mov eax, 0x691350
mov ecx, dword [esp + 0x2080]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x206c]
xor ecx, esp
call fcn.004bb11e
mov esp, ebp
pop ebp
ret