Function at 0x68cbfc
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
lea eax, [edi + 0x2f]
push eax
lea eax, [edi + 0x33]
push eax
lea eax, [edi + 0x2b]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
call fcn.0068d439
add esp, 0x18
mov byte [edi + 0x37], bl
cmp dword [ebp - 8], 1
mov byte [ebp + 0xb], bl
mov byte [ebp - 1], bl
jbe 0x68cd57
xor eax, eax
xor ecx, ecx
inc eax
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [ebp - 0x18]
mov dword [ebx], eax
mov eax, 0x2000000
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
test dword [ebp - 0xc], eax
je 0x68cc5e
or byte [edi + 0x20], 2
test dword [ebp - 0xc], 0x4000000
je 0x68cc6b
or byte [edi + 0x20], 4
mov ebx, dword [ebp - 0x10]
test bl, 1
je 0x68cc77
or byte [edi + 0x20], 8
test ebx, 0x200
je 0x68cc83
or byte [edi + 0x20], 0x10
test ebx, 0x80000
je 0x68cc8f
or byte [edi + 0x20], 0x20
test ebx, 0x100000
je 0x68cc9b
or byte [edi + 0x20], 0x40
test ebx, 0x2000
je 0x68cca7
or byte [edi + 0x25], 8
test ebx, 0x400000
je 0x68ccb3
or byte [edi + 0x23], 8
test ebx, 0x800000
je 0x68ccbf
or byte [edi + 0x23], 0x10
test ebx, 0x20000000
je 0x68cccb
or byte [edi + 0x24], 2
test eax, ebx
je 0x68ccd3
or byte [edi + 0x24], 8
test bl, 2
je 0x68ccdc
or byte [edi + 0x24], 0x10
test ebx, 0x40000000
je 0x68ccf6
call fcn.0068d079
mov cl, byte [edi + 0x25]
add al, al
and cl, 0xfd
or cl, al
mov byte [edi + 0x25], cl
test ebx, ebx
jns 0x68ccfe
or byte [edi + 0x2a], 1
test ebx, 0x8000000
je 0x68cd57
xor ecx, ecx
xgetbv
mov ecx, eax
mov dword [ebp - 0xc], edx
and ecx, 6
cmp ecx, 6
jne 0x68cd1e
xor ecx, ecx
mov cl, 1
jmp 0x68cd20
xor ecx, ecx
mov edx, 0xe6
mov byte [ebp + 0xb], cl
and eax, edx
cmp eax, edx
jne 0x68cd36
xor eax, eax
mov byte [ebp - 1], 1
jmp 0x68cd3b
xor eax, eax
mov byte [ebp - 1], al
test cl, cl
je 0x68cd57
test ebx, 0x10000000
je 0x68cd57
or byte [edi + 0x20], 0x80
test ebx, 0x1000
je 0x68cd57
or byte [edi + 0x24], 4
cmp dword [ebp - 8], 7
jb 0x68cee2
push 7
pop eax
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [ebp - 0x18]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov eax, dword [ebp - 0x14]
test al, 8
je 0x68cd85
or byte [edi + 0x23], 0x20
mov esi, 0x100
test esi, eax
je 0x68cd92
or byte [edi + 0x23], 0x40
xor ebx, ebx
inc ebx
test eax, 0x80000
je 0x68cd9f
or byte [edi + 0x24], bl
test eax, 0x40000
je 0x68cdaa
or byte [edi + 0x25], 4
test eax, 0x20000000
je 0x68cdb5
or byte [edi + 0x24], 0x20
mov ecx, dword [ebp - 0x10]
test esi, ecx
je 0x68cdc0
or byte [edi + 0x24], 0x40
mov edx, dword [ebp - 0xc]
test edx, 0x8000
je 0x68cdcf
or byte [edi + 0x2a], 2
cmp byte [ebp + 0xb], 0
je 0x68cea4
test al, 0x20
je 0x68cde0
or byte [edi + 0x21], bl
test ecx, 0x200
je 0x68cdec
or byte [edi + 0x24], 0x80
test ecx, 0x400
je 0x68cdf7
or byte [edi + 0x25], bl
cmp byte [ebp - 1], 0
je 0x68cea4
test eax, 0x10000
je 0x68ce0c
or byte [edi + 0x21], 4
test eax, 0x20000
je 0x68ce17
or byte [edi + 0x21], 8
test eax, 0x200000
je 0x68ce22
or byte [edi + 0x21], 0x10
test eax, 0x4000000
je 0x68ce2d
or byte [edi + 0x21], 0x20
test eax, 0x8000000
je 0x68ce38
or byte [edi + 0x21], 0x40
test eax, 0x10000000
je 0x68ce43
or byte [edi + 0x21], 0x80
test eax, 0x40000000
je 0x68ce4d
or byte [edi + 0x22], bl
test eax, eax
jns 0x68ce55
or byte [edi + 0x22], 2
test cl, 2
je 0x68ce5e
or byte [edi + 0x22], 4
test cl, 0x40
je 0x68ce67
or byte [edi + 0x22], 8
test ecx, 0x800
je 0x68ce73
or byte [edi + 0x22], 0x10
test ecx, 0x1000
je 0x68ce7f
or byte [edi + 0x22], 0x20
test ecx, 0x4000
je 0x68ce8b
or byte [edi + 0x22], 0x40
test dl, 4
je 0x68ce94
or byte [edi + 0x22], 0x80
test dl, 8
je 0x68ce9c
or byte [edi + 0x23], bl
test esi, edx
je 0x68cea4
or byte [edi + 0x23], 2
cmp dword [ebp - 0x18], ebx
jb 0x68cee2
push 7
pop eax
mov ecx, ebx
push ebx
cpuid
mov esi, ebx
pop ebx
cmp byte [ebp + 0xb], 0
lea ebx, [ebp - 0x18]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
je 0x68cee2
test byte [ebp - 0x18], 0x10
je 0x68ced2
or byte [edi + 0x21], 2
cmp byte [ebp - 1], 0
je 0x68cee2
test byte [ebp - 0x18], 0x20
je 0x68cee2
or byte [edi + 0x23], 4
push 0x16
pop eax
cmp dword [ebp - 8], eax
jb 0x68cf10
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [ebp - 0x28]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov ecx, 0xf4240
mov dword [ebx + 0xc], edx
mov eax, dword [ebp - 0x24]
mul ecx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
mov eax, closesocket
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [ebp - 0x28]
mov dword [ebx], eax
mov eax, reloc.WS2_32.dll_accept
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
cmp dword [ebp - 0x28], eax
jb 0x68cf6c
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [ebp - 0x18]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
test byte [ebp - 0x10], 1
je 0x68cf55
or byte [edi + 0x25], 0x10
test byte [ebp - 0x10], 0x20
je 0x68cf5f
or byte [edi + 0x23], 0x80
test dword [ebp - 0x10], 0x100
je 0x68cf6c
or byte [edi + 0x25], 0x20
mov esi, reloc.WS2_32.dll_connect
xor ebx, ebx
cmp dword [ebp - 0x28], esi
jb 0x68cfe0
lea eax, [edi + 0x77]
push eax
lea eax, [edi + 0x73]
push eax
lea eax, [edi + 0x6f]
push eax
lea eax, [edi + 0x6b]
push eax
push ebx
push reloc.WS2_32.dll_bind
call fcn.0068d439
lea eax, [edi + 0x87]
push eax
lea eax, [edi + 0x83]
push eax
lea eax, [edi + 0x7f]
push eax
lea eax, [edi + 0x7b]
push eax
push ebx
push reloc.WS2_32.dll_closesocket
call fcn.0068d439
lea eax, [edi + 0x97]
push eax
lea eax, [edi + 0x93]
push eax
lea eax, [edi + 0x8f]
push eax
lea eax, [edi + 0x8b]
push eax
push ebx
push esi
call fcn.0068d439
add esp, 0x48
mov byte [edi + 0x9b], bl
test byte [edi + 0x2a], 1
je 0x68d013
lea eax, [edi + 0xb3]
push eax
lea eax, [edi + 0xaf]
push eax
lea eax, [edi + 0xab]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x40000000
call fcn.0068d439
add esp, 0x18
mov byte [edi + 0xb7], bl
pop edi
pop esi
pop ebx
leave
ret