Function at 0x1004cbb0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, eax
mov eax, dword [esp + 0x2c]
mov ebp, dword [eax + 8]
lea ecx, [esp + 0x18]
push edi
push ecx
mov dword [esp + 0x18], 0
call fcn.10023220
mov edx, dword [eax]
mov dword [ebp + 0x128], edx
mov ecx, dword [eax + 4]
mov dword [ebp + 0x12c], ecx
mov edx, dword [eax + 8]
mov dword [ebp + 0x130], edx
mov eax, dword [eax + 0xc]
lea ebx, [ebp + 0x98]
add esp, 4
lea edi, [ebp + 8]
mov dword [ebp + 0x134], eax
mov dword [esp + 0x10], ebx
call fcn.1004bfa0
mov ebx, eax
test ebx, ebx
jne 0x1004cd70
mov ecx, dword [esp + 0x30]
push ecx
mov ebx, esi
call fcn.1004caf0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1004cd70
cmp dword [ebp + 8], 0x17
jne 0x1004cc56
push 4
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push 0x1b
push 0x29
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, str.__Trying___s_:_d...
jmp 0x1004cc5b
mov eax, str.__Trying__s:_d...
mov edx, dword [ebp + 0xec]
push edx
lea ecx, [ebp + 0xbc]
push ecx
push eax
push esi
call fcn.1001ccc0
mov eax, dword [ebp + 8]
add esp, 0x10
cmp eax, 2
je 0x1004cc80
cmp eax, 0x17
jne 0x1004cc8a
mov edi, 1
cmp dword [ebp + 0xc], edi
je 0x1004cc8e
xor edi, edi
jmp 0x1004cca2
cmp dword [esi + 0x7a4], 0
je 0x1004cca2
mov edx, dword [esp + 0x10]
mov ecx, dword [edx]
call fcn.1004bdd0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push ecx
call fcn.1004c110
add esp, 4
test edi, edi
je 0x1004ccc9
cmp dword [esi + 0x7c0], 0
je 0x1004ccc9
mov edx, dword [esp + 0x10]
mov edi, dword [edx]
call fcn.1004be40
cmp dword [esi + 0x1cc], 0
je 0x1004cd0c
push 1
push esi
call fcn.1001e000
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [esi + 0x1d0]
mov eax, dword [esi + 0x1cc]
push 0
push ecx
push edx
call eax
push 0
push esi
mov edi, eax
call fcn.1001e000
add esp, 0x1c
cmp edi, 2
jne 0x1004cd50
mov dword [esp + 0x14], 1
mov eax, dword [ebp + 8]
cmp eax, 2
je 0x1004cd19
cmp eax, 0x17
jne 0x1004cd5b
lea ecx, [ebp + 0x18]
push ecx
call fcn.10052250
mov edx, dword [ebp + 8]
push eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 0xc]
push ecx
push eax
mov edi, esi
call fcn.1004c1c0
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x1004cd5b
cmp ebx, 1
jne 0x1004cd6c
lea ebx, [eax + 6]
jmp 0x1004cd70
test edi, edi
je 0x1004cd0c
mov ebx, 0x2a
jmp 0x1004cd70
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push 1
push edx
call fcn.10052220
add esp, 8
test ebx, ebx
je 0x1004cdeb
mov eax, dword [esp + 0x10]
mov edi, dword [eax]
cmp edi, 0xffffffff
je 0x1004ce39
mov ecx, dword [esp + 0x30]
mov ebp, dword [ecx + 0xc]
test ebp, ebp
je 0x1004cdd0
cmp dword [ebp + 0x30], 0
push edi
push esi
je 0x1004cdc8
call fcn.1001d650
push 1
push esi
call fcn.1001e000
mov edx, dword [ebp + 0x34]
mov eax, dword [ebp + 0x30]
push edi
push edx
call eax
push 0
push esi
call fcn.1001e000
mov ecx, dword [esp + 0x30]
add esp, 0x20
pop edi
pop esi
pop ebp
mov eax, ebx
mov dword [ecx], 0xffffffff
pop ebx
add esp, 0x1c
ret
call fcn.1001d650
add esp, 8
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, ebx
mov dword [ecx], 0xffffffff
pop ebx
add esp, 0x1c
ret
cmp dword [esp + 0x14], 0
je 0x1004ce39
mov edx, dword [esp + 0x30]
push edx
mov edi, esi
call fcn.1004c9c0
lea eax, [esp + 0x20]
push eax
call fcn.10023220
mov ecx, dword [eax]
mov dword [ebp + 0x138], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 0x13c], edx
mov ecx, dword [eax + 8]
mov dword [ebp + 0x140], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x38]
mov dword [ebp + 0x144], edx
add esp, 8
mov dword [eax + 0x14], 1
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x1c
ret