Function at 0x430780
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xb8
mov al, byte [0x4d6b35]
push ebx
push ebp
xor ebp, ebp
test al, al
push esi
push edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
jne 0x430e1d
push 0x49e180
call fcn.00463afa
add esp, 4
test eax, eax
jne 0x430e1d
mov al, byte [0x4d6b34]
test al, al
jne 0x4307ef
mov eax, dword [str.csl_com.c]
push 0x242
push eax
push 0x49e188
call fcn.0041cad0
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x445c1
pop ebx
add esp, 0xb8
ret
mov esi, dword [esp + 0xcc]
cmp esi, 0x3e8
ja 0x430827
mov ecx, dword [str.csl_com.c]
push 0x243
push ecx
push 0x49e194
call fcn.0041cad0
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x445c1
pop ebx
add esp, 0xb8
ret
mov eax, dword [esp + 0xd0]
cmp eax, ebp
jg 0x43085b
mov edx, dword [str.csl_com.c]
push 0x244
push edx
push 0x49e1a8
call fcn.0041cad0
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x445c1
pop ebx
add esp, 0xb8
ret
cmp dword [0x4d6af8], 2
jne 0x43086d
push eax
call fcn.00431740
add esp, 4
push esi
call fcn.00433c00
add esp, 4
test eax, eax
je 0x4308a2
mov eax, dword [str.csl_com.c]
push 0x24e
push eax
push str.csl_validate_name_func_name___0
call fcn.0041ca70
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x445c1
pop ebx
add esp, 0xb8
ret
mov eax, dword [0x4d6b20]
cmp eax, 1
jne 0x4308b0
mov bl, al
jmp 0x4308bd
cmp eax, ebp
mov eax, dword [0x4d6b1c]
sete bl
dec ebx
and ebx, eax
mov edi, 0x49de50
mov ecx, dword [edi]
push ecx
push esi
call fcn.00419ed0
add esp, 8
test eax, eax
je 0x4308df
add edi, 0xc
cmp edi, 0x49de98
jl 0x4308c2
jmp 0x4308e1
xor bl, bl
lea edx, [esp + 0x20]
push edx
push esi
call fcn.004197c0
mov edi, eax
add esp, 8
cmp edi, ebp
je 0x430915
mov eax, dword [str.csl_com.c]
push 0x25f
push eax
call fcn.0041cc10
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb8
ret
xor eax, eax
test bl, bl
mov ecx, 0x29
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
je 0x430ae3
cmp esi, ebp
je 0x430959
or ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x8c
jle 0x430959
mov ecx, dword [str.csl_com.c]
push 0x266
push ecx
push str._int_STRLEN_func_name____int___int_sizeof_mess_hdr.n.enc.name__
call fcn.0041cad0
add esp, 0xc
push 0x8c
lea edx, [esp + 0x30]
push esi
push edx
call fcn.00419840
lea eax, [esp + 0x38]
add esp, 0xc
test eax, eax
je 0x430984
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x430986
xor ecx, ecx
lea esi, [esp + ecx + 0x30]
push 4
and esi, 0xfffffffc
push 0x4d68f8
push esi
call fcn.0041d990
call fcn.0046675f
mov dword [0x4d68f8], eax
lea ecx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x3c]
lea edx, [esp + 0x28]
sub esi, eax
push edx
add esi, 4
lea ecx, [esp + 0x40]
push esi
push ecx
call fcn.0042deb0
mov esi, eax
add esp, 0x1c
cmp esi, ebp
je 0x4309d5
push 0x26f
jmp 0x430a7f
mov eax, dword [esp + 0x10]
cmp eax, 0x8c
mov dword [esp + 0x24], ebp
jle 0x430a0c
mov eax, dword [str.csl_com.c]
push 0x274
push eax
push str.enc_len___sizeof_mess_hdr.n.enc.name_
call fcn.0041cad0
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x445c1
pop ebx
add esp, 0xb8
ret
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.0041d990
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, ebp
je 0x430a4a
mov ecx, dword [str.csl_com.c]
push 0x278
push ecx
push 1
push eax
call sym.cns.exe_gen__mem_free
add esp, 0x10
mov dword [esp + 0x18], ebp
mov edi, dword [esp + 0xd8]
cmp edi, ebp
jle 0x430b2e
mov ecx, dword [esp + 0xd4]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push edi
push ecx
call fcn.0042deb0
mov esi, eax
add esp, 0x10
cmp esi, ebp
je 0x430a9b
push 0x27d
mov edx, dword [str.csl_com.c]
push edx
call fcn.0041cc10
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xb8
ret
mov eax, dword [esp + 0x10]
cmp eax, ebp
jg 0x430adb
mov eax, dword [str.csl_com.c]
push 0x280
push eax
push str.enc_len___0
call fcn.0041cad0
push edi
push str.buf_len_d
push 0x49e258
call fcn.0041b0a0
add esp, 0x18
pop edi
pop esi
pop ebp
mov eax, 0x445c1
pop ebx
add esp, 0xb8
ret
mov ebp, dword [esp + 0x14]
mov edi, eax
jmp 0x430b35
cmp esi, ebp
je 0x430b14
or ecx, 0xffffffff
xor eax, eax
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x95
jle 0x430b14
mov ecx, dword [str.csl_com.c]
push 0x287
push ecx
push str._int_STRLEN__func_name_____int___int___int_sizeof_mess_hdr.n.name__1__
call fcn.0041cad0
add esp, 0xc
push 0x95
lea edx, [esp + 0x28]
push esi
push edx
call fcn.00419840
mov edi, dword [esp + 0xe4]
add esp, 0xc
mov ebp, dword [esp + 0xd4]
mov eax, dword [esp + 0x20]
mov dword [esp + 0xbc], edi
mov dword [esp + 0xc0], eax
call fcn.0042fa50
lea ecx, [esp + 0x24]
cmp ecx, 0x3e8
mov dword [esp + 0xc4], eax
ja 0x430b7f
mov edx, dword [str.csl_com.c]
push 0x28d
push edx
push 0x49e2a8
call fcn.0041cad0
mov eax, dword [esp + 0xd0]
add esp, 0xc
mov ecx, dword [esp + 0xbc]
mov edx, ecx
shl edx, 0x10
mov esi, ecx
xor ebx, ebx
mov bh, byte [esp + 0xbe]
and esi, 0xff00
add edx, esi
shl edx, 8
shr ecx, 0x18
add edx, ebx
add edx, ecx
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0xbc], edx
mov edx, ecx
mov esi, ecx
shl edx, 0x10
xor ebx, ebx
mov bh, byte [esp + 0xc2]
and esi, 0xff00
add edx, esi
shl edx, 8
shr ecx, 0x18
add edx, ebx
add edx, ecx
mov dword [esp + 0xc0], edx
mov ecx, eax
shl ecx, 0x10
mov edx, eax
and edx, 0xff00
add ecx, edx
xor edx, edx
mov dh, byte [esp + 0xc6]
shl ecx, 8
shr eax, 0x18
add ecx, edx
add ecx, eax
mov eax, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0xc4], ecx
jne 0x430c37
mov eax, dword [esp + 0x28]
mov ecx, eax
shl ecx, 0x10
mov edx, eax
and edx, 0xff00
add ecx, edx
xor edx, edx
mov dh, byte [esp + 0x2a]
shl ecx, 8
shr eax, 0x18
add ecx, edx
add ecx, eax
mov dword [esp + 0x28], ecx
mov eax, dword [str.csl_com.c]
push 0x290
push eax
lea ebx, [edi + 0xa4]
push 1
push ebx
call sym.cns.exe_gen__mem_malloc
mov esi, eax
add esp, 0x10
cmp esi, 0x3e8
ja 0x430c86
mov ecx, dword [str.csl_com.c]
push 0x291
push ecx
push str.L_PTR_data_
call fcn.0041cad0
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x445c4
pop ebx
add esp, 0xb8
ret
push 0xa4
lea edx, [esp + 0x28]
push edx
push esi
call fcn.0041d990
add esp, 0xc
test edi, edi
jle 0x430cf9
cmp ebp, 0x3e8
ja 0x430ce8
mov eax, dword [str.csl_com.c]
push 0x296
push eax
push 0x49e2f0
call fcn.0041cad0
add esp, 0xc
test esi, esi
je 0x430cd8
mov ecx, dword [str.csl_com.c]
push 0x296
push ecx
push 1
push esi
call sym.cns.exe_gen__mem_free
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 0x445c1
pop ebx
add esp, 0xb8
ret
push edi
lea edx, [esi + 0xa4]
push ebp
push edx
call fcn.0041d990
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
je 0x430d20
mov ecx, dword [str.csl_com.c]
push 0x29a
push ecx
push 1
push eax
call sym.cns.exe_gen__mem_free
add esp, 0x10
mov dword [esp + 0x14], 0
mov al, byte [0x49deb0]
test al, al
jne 0x430d67
mov ebp, dword [esp + 0xd0]
lea edx, [esp + 0x1c]
push edx
push 0x8004667e
push ebp
mov dword [esp + 0x28], 1
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x430d6e
mov eax, dword [str.csl_com.c]
push 0x2a3
push eax
push str.ioctl_sd__FIONBIO__1_
call fcn.0041cb50
add esp, 0xc
jmp 0x430d6e
mov ebp, dword [esp + 0xd0]
push ebx
push esi
push ebp
call fcn.00420cb0
mov edi, eax
mov al, byte [0x49deb0]
add esp, 0xc
test al, al
jne 0x430dba
lea ecx, [esp + 0x1c]
push ecx
push 0x8004667e
push ebp
mov dword [esp + 0x28], 0
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x430dba
mov edx, dword [str.csl_com.c]
push 0x2b4
push edx
push str.ioctl_sd__FIONBIO__0_
call fcn.0041cb50
add esp, 0xc
cmp edi, 0x1392
jne 0x430df5
push ebp
call fcn.00432a20
mov ecx, dword [0x4d6b24]
lea eax, [ebp*8]
sub eax, ebp
shl eax, 6
add eax, ecx
mov ecx, dword [eax + 0xd4]
add esp, 4
test ecx, ecx
je 0x430df5
add eax, 0xd8
push eax
push ebp
call ecx
add esp, 8
test esi, esi
je 0x430e10
mov edx, dword [str.csl_com.c]
push 0x2bf
push edx
push 1
push esi
call sym.cns.exe_gen__mem_free
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb8
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xb8
ret