Function at 0x4c9fd0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x104
push ebp
push esi
mov esi, dword [esp + 0x114]
push edi
mov edi, ecx
mov ecx, esi
mov ebp, edx
call fcn.004f0af0
test eax, eax
je 0x4ca163
test ebp, ebp
jne 0x4ca020
mov al, byte [esi + 0x840]
test al, al
je 0x4ca020
mov eax, dword [esi + 0x908]
test eax, eax
je 0x4ca0c3
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x104
ret 8
test edi, edi
je 0x4ca238
cmp byte [edi], 0
je 0x4ca238
push 0x40
push edi
call fcn.005912e0
add esp, 8
test eax, eax
je 0x4ca0bb
mov cl, byte [eax + 1]
inc eax
test cl, cl
je 0x4ca0bb
push eax
mov edx, 0x104
lea ecx, [esp + 0x10]
call fcn.00420d70
lea eax, [esp + 0xc]
push 0x20
push eax
call fcn.005912e0
add esp, 8
test eax, eax
je 0x4ca06d
mov byte [eax], 0
mov al, byte [esp + 0xc]
test al, al
je 0x4ca0bb
lea ecx, [esp + 0xc]
push 0x2e
push ecx
call fcn.00591bd0
mov edi, eax
add esp, 8
test edi, edi
je 0x4ca0bb
mov al, byte [edi + 1]
inc edi
test al, al
je 0x4ca0af
movzx edx, byte [edi]
push edx
call fcn.0059215a
add esp, 4
test eax, eax
je 0x4ca0ac
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4ca092
jmp 0x4ca0af
mov byte [edi], 0
mov al, byte [esp + 0xc]
test al, al
jne 0x4ca171
test ebp, ebp
jne 0x4ca14a
mov cl, byte [esi + 0x840]
test cl, cl
lea eax, [esi + 0x840]
je 0x4ca109
mov ecx, dword [esi + 0x908]
test ecx, ecx
jne 0x4ca278
mov ecx, dword [esp + 0x114]
push 5
push ecx
mov ecx, dword [esi]
push eax
mov edx, 0x5a4bec
call fcn.00475c40
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x104
ret 8
mov edx, dword [esp + 0x114]
mov ecx, dword [esi + 0xf2c]
mov eax, dword [esi]
imul ecx, ecx, 0x64
push edx
push 0
push 0xa
push 0
push eax
push 0
push 5
push 0
push 0
lea ecx, [ecx + esi + 0xe00]
xor edx, edx
call fcn.00556880
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x104
ret 8
mov eax, dword [esp + 0x114]
test eax, eax
je 0x4ca15c
mov ecx, esi
call fcn.00569510
mov ecx, esi
call fcn.004c1000
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x104
ret 8
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esi + 0x908], eax
jne 0x4ca1de
lea eax, [esp + 0xc]
lea edi, [esi + 0x840]
push eax
mov edx, 0x64
mov ecx, edi
mov dword [esi + 0x908], 0
mov byte [esi + 0x8a4], 0
call fcn.00420d70
mov ecx, edi
call fcn.00537a90
mov ecx, dword [esp + 0x114]
push 5
push ecx
mov ecx, dword [esi]
push edi
mov edx, 0x5a4bec
call fcn.00475c40
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x104
ret 8
push eax
call dword [sym.imp.WSOCK32.dll_htonl]
lea edx, [esp + 0xc]
lea edi, [esi + 0x8a4]
push edx
mov edx, 0x64
mov ecx, edi
mov dword [esi + 0x908], eax
call fcn.00420d70
mov ecx, edi
mov byte [esi + 0x840], 0
call fcn.00537a90
mov eax, dword [esp + 0x114]
mov ecx, dword [esi]
push 5
push eax
push edi
mov edx, 0x5a4bec
call fcn.00475c40
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x104
ret 8
test ebp, ebp
jne 0x4ca278
mov ecx, dword [esp + 0x114]
mov eax, dword [esi + 0xf2c]
mov edx, dword [esi]
imul eax, eax, 0x64
push ecx
push ebp
push 0xa
push ebp
push edx
push ebp
push 5
push ebp
push ebp
lea ecx, [eax + esi + 0xe00]
xor edx, edx
call fcn.00556880
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x104
ret 8
mov eax, dword [esp + 0x114]
test eax, eax
je 0x4ca28a
mov ecx, esi
call fcn.00569510
mov ecx, esi
call fcn.004c1000
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x104
ret 8