Function at 0x540900
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x607888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2fdc
call fcn.005c3360
push ebx
push esi
mov ebx, ecx
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
mov eax, dword [ebx + 0x31e0]
push esi
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], esi
call fcn.00534100
cmp eax, esi
je 0x540987
mov ecx, ebx
call fcn.005348e0
lea esi, [ebx + 0x41c]
push esi
call fcn.005c48fc
mov eax, dword [esi]
mov edx, dword [ebx + 0x410]
sub eax, edx
add esp, 4
cmp eax, 0x1e
mov dword [ebx + 0x428], eax
jl 0x540976
mov ecx, ebx
call fcn.00541870
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x31e0]
lea ecx, [ebp - 0x20]
push ecx
push 0x8004667e
push edx
mov dword [ebp - 0x20], esi
call sub.WS2_32.dll_ioctlsocket
lea eax, [ebp - 0x2fec]
mov ecx, 0xb68
mov dword [ebp - 0x28], eax
xor eax, eax
lea edi, [ebp - 0x2fec]
lea edx, [ebp - 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x31e0]
lea ecx, [ebp - 0x2c]
push ecx
push edx
push eax
mov ecx, ebx
mov dword [ebp - 0x2c], 0x2da0
call fcn.00540760
mov ecx, ebx
call fcn.0053c9e0
push str.Data_on_LIST:_n
mov ecx, ebx
call fcn.00532d70
lea ecx, [ebp - 0x2fec]
push ecx
mov ecx, ebx
call fcn.00532d70
push 8
lea ecx, [ebx + 0x31d0]
call fcn.0057c350
mov ecx, ebx
call fcn.00534910
mov dword [ebx + 0x8c], 4
mov eax, dword [0x6c826c]
lea edx, [ebp - 0x2fec]
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x24d], 0
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x1c]
push ecx
push edx
mov ecx, ebx
call fcn.005448d0
test al, al
je 0x540a79
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00544d80
add esp, 0xc
cmp eax, esi
je 0x540a32
mov ecx, dword [ebx + 0xb0]
mov eax, dword [ebp - 0x64]
mov edx, dword [ecx + 8]
push edx
push eax
call fcn.005c43d0
add esp, 8
test eax, eax
je 0x540a83
jmp 0x540a32
xor al, al
test al, al
je 0x540ba2
mov ecx, dword [ebx + 0x31ec]
mov dword [ecx + 0x250], 1
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x40]
mov dword [ebx + 0x3a38], edx
push ecx
mov dword [ebx + 0x3a3c], eax
call fcn.005c511a
mov ecx, 9
mov esi, eax
lea edi, [ebp - 0xc8]
lea edx, [ebp - 0xc8]
rep movsd dword es:[edi], dword [esi]
push edx
call fcn.005c6bab
add esp, 8
push eax
lea eax, [ebp - 0xa4]
push 0x69dfbc
push eax
call fcn.005c3928
mov ecx, dword [ebx + 0xb0]
add esp, 0xc
mov edx, dword [ecx + 0x20]
test edx, edx
jne 0x540b09
mov edx, dword [ebx + 0x31ec]
mov eax, dword [edx + 0xd8]
lea edx, [ebp - 0xa4]
push eax
push edx
call fcn.0059f980
jmp 0x540b45
lea edi, [ebp - 0xa4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0xa4]
push ecx
push edx
push eax
call fcn.005c52b0
add esp, 0xc
test eax, eax
je 0x540b45
lea ecx, [ebp - 0xa4]
push 0
push ecx
mov ecx, ebx
call fcn.00544750
mov dword [ebp - 0x18], 1
mov edx, dword [ebx + 0x31ec]
push str.Parse_result:_n
mov ecx, ebx
mov dword [edx + 0x888], 1
call fcn.00532d70
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x4c]
push edx
mov edx, dword [ebp - 0x54]
push eax
push ecx
lea eax, [ebp - 0xa4]
push edx
push eax
lea ecx, [ebp - 0x24c]
push str.time__s__sizetype__d__size__I64d__name__s__namelen__d__flagtryretr__d_n
push ecx
call fcn.005c3928
add esp, 0x24
lea edx, [ebp - 0x24c]
mov ecx, ebx
push edx
call fcn.00532d70
mov edx, dword [ebx + 0x3a38]
mov esi, dword [ebx + 0x3a3c]
mov eax, edx
or eax, esi
je 0x540c59
mov ecx, dword [ebx + 0x31ec]
mov eax, dword [ecx + 0x1c8]
mov edi, dword [ecx + 0x1cc]
or eax, edi
jne 0x540bfc
push 1
push esi
push edx
call fcn.00587300
mov ecx, dword [ebx + 0x31ec]
mov dword [ecx + 0x86c], 3
mov ecx, dword [ebx + 0x31ec]
mov eax, dword [ecx + 0x884]
test eax, eax
jne 0x540bfc
call fcn.00546560
mov ecx, dword [ebx + 0x31ec]
mov eax, dword [ecx + 0x114]
test eax, eax
je 0x540c69
mov eax, dword [ecx + 0xf0]
mov edx, dword [ecx + 0xf4]
mov esi, eax
or esi, edx
je 0x540c69
cmp eax, dword [ebx + 0x3a38]
jne 0x540c2e
cmp edx, dword [ebx + 0x3a3c]
je 0x540c69
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x540c69
push 0
call fcn.00548170
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005df556
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x31ec]
mov dword [edx + 0x86c], 4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005df556
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret