Function at 0x538c40
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x538c70
cmp dword [ebp - 8], 0xffffffff
jne 0x538f42
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov al, byte [edx]
mov byte [ebp - 0x1d], al
movsx ecx, byte [ebp - 0x1d]
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
cmp ecx, 0x20
jne 0x538c92
jmp 0x538c76
mov eax, dword [ebp - 0x14]
sub eax, 1
mov dword [ebp - 0x14], eax
push 0x2e
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00479100
add esp, 8
test eax, eax
je 0x538f39
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], edx
push 0x5ee7e8
lea eax, [ebp - 0x28]
push eax
call fcn.00471610
add esp, 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x2c]
mov al, byte [edx]
mov byte [ebp - 0x1d], al
movsx ecx, byte [ebp - 0x1d]
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
test ecx, ecx
je 0x538e1e
movsx eax, byte [ebp - 0x1d]
cmp eax, 0x2e
jne 0x538dd9
mov ecx, dword [ebp - 0x18]
mov byte [ecx], 0
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
push 0x5ee7ec
lea eax, [ebp - 0x28]
push eax
call fcn.004781f0
add esp, 8
test eax, eax
jne 0x538d44
push 0x5ee7f0
lea ecx, [ebp - 0x28]
push ecx
call fcn.00471610
add esp, 8
jmp 0x538d6a
push 0x5ee7f4
lea edx, [ebp - 0x28]
push edx
call fcn.004781f0
add esp, 8
test eax, eax
jne 0x538d6a
push 0x5ee7f8
lea eax, [ebp - 0x28]
push eax
call fcn.00471610
add esp, 8
cmp dword [ebp - 0x30], 0
jne 0x538d82
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0xc]
push edx
call fcn.00471610
add esp, 8
jmp 0x538db0
cmp dword [ebp - 0x30], 1
jne 0x538d9a
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00471610
add esp, 8
jmp 0x538db0
cmp dword [ebp - 0x30], 2
jne 0x538db0
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.00471610
add esp, 8
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
push 0x5ee7fc
lea edx, [ebp - 0x28]
push edx
call fcn.00471610
add esp, 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x38], 0
jmp 0x538e19
movsx ecx, byte [ebp - 0x1d]
push ecx
call fcn.00476089
add esp, 4
test eax, eax
je 0x538e17
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 3
jle 0x538e04
jmp 0x538e1e
mov ecx, dword [ebp - 0x18]
mov dl, byte [ebp - 0x1d]
mov byte [ecx], dl
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
jmp 0x538e19
jmp 0x538e1e
jmp 0x538ce3
cmp dword [ebp - 0x30], 3
jne 0x538e43
mov ecx, dword [ebp - 0x18]
mov byte [ecx], 0
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.00471610
add esp, 8
cmp dword [ebp - 0x30], 3
jne 0x538f30
cmp dword [ebp - 0x34], 0
jl 0x538f30
cmp dword [ebp - 0x34], 0xc
jg 0x538f30
cmp dword [ebp - 8], 0
jne 0x538ec4
push 0x5ee800
lea edx, [ebp - 0xc]
push edx
call fcn.004781f0
add esp, 8
test eax, eax
jne 0x538ec4
push 0x5ee804
lea eax, [ebp - 0x1c]
push eax
call fcn.004781f0
add esp, 8
test eax, eax
jne 0x538ec4
push 0x5ee808
lea ecx, [ebp - 0x24]
push ecx
call fcn.004781f0
add esp, 8
test eax, eax
jne 0x538ec4
push 0x5ee80c
lea edx, [ebp - 0x10]
push edx
call fcn.004781f0
add esp, 8
test eax, eax
jne 0x538ec4
mov dword [ebp - 4], 1
jmp 0x538f2e
cmp dword [ebp - 8], 0xffffffff
jne 0x538f27
push 0x5ee810
lea eax, [ebp - 0xc]
push eax
call fcn.004781f0
add esp, 8
test eax, eax
jne 0x538f27
push 0x5ee814
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004781f0
add esp, 8
test eax, eax
jne 0x538f27
push 0x5ee818
lea edx, [ebp - 0x24]
push edx
call fcn.004781f0
add esp, 8
test eax, eax
jne 0x538f27
push 0x5ee81c
lea eax, [ebp - 0x10]
push eax
call fcn.004781f0
add esp, 8
test eax, eax
jne 0x538f27
mov dword [ebp - 4], 1
jmp 0x538f2e
mov dword [ebp - 4], 0
jmp 0x538f37
mov dword [ebp - 4], 0
jmp 0x538f40
mov dword [ebp - 4], 0
jmp 0x538f49
mov dword [ebp - 4], 1
push 4
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004751f0
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret