Function at 0x4d7b50
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x118]
push esi
call fcn.00502a60
add esp, 4
test eax, eax
jne 0x4d7b73
pop esi
add esp, 0x104
ret
push ebp
mov ebp, dword [esp + 0x114]
test ebp, ebp
push edi
jne 0x4d7ba7
mov al, byte [esi + 0x83c]
test al, al
je 0x4d7ba7
mov eax, dword [esi + 0x904]
test eax, eax
je 0x4d7c52
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x104
ret
mov eax, dword [esp + 0x114]
test eax, eax
je 0x4d7d99
cmp byte [eax], 0
je 0x4d7d99
push 0x40
push eax
call fcn.005cbf10
add esp, 8
test eax, eax
je 0x4d7c4a
mov cl, byte [eax + 1]
inc eax
test cl, cl
je 0x4d7c4a
push eax
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00423900
lea ecx, [esp + 0x18]
push 0x20
push ecx
call fcn.005cbf10
add esp, 0x14
test eax, eax
je 0x4d7bfc
mov byte [eax], 0
mov al, byte [esp + 0xc]
test al, al
je 0x4d7c4a
lea edx, [esp + 0xc]
push 0x2e
push edx
call fcn.005ccc30
mov edi, eax
add esp, 8
test edi, edi
je 0x4d7c4a
mov al, byte [edi + 1]
inc edi
test al, al
je 0x4d7c3e
movzx eax, byte [edi]
push eax
call fcn.005cd4f8
add esp, 4
test eax, eax
je 0x4d7c3b
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4d7c21
jmp 0x4d7c3e
mov byte [edi], 0
mov al, byte [esp + 0xc]
test al, al
jne 0x4d7d06
test ebp, ebp
jne 0x4d7cdd
mov cl, byte [esi + 0x83c]
test cl, cl
lea eax, [esi + 0x83c]
je 0x4d7c9a
mov ecx, dword [esi + 0x904]
test ecx, ecx
jne 0x4d7dda
mov ecx, dword [esp + 0x11c]
mov edx, dword [esi]
push 5
push ecx
push eax
push 0x5e6c98
push edx
call fcn.0047e8b0
add esp, 0x14
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x104
ret
mov eax, dword [esp + 0x11c]
mov edx, dword [esi + 0xf28]
mov ecx, dword [esi]
imul edx, edx, 0x64
push eax
push 0
push 0xa
push 0
push ecx
push 0
push 5
push 0
push 0
lea eax, [edx + esi + 0xdfc]
push 0
push eax
call fcn.005771b0
add esp, 0x2c
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x104
ret
mov eax, dword [esp + 0x11c]
test eax, eax
je 0x4d7cf1
push esi
call fcn.0058bb10
add esp, 4
push esi
call fcn.004ce210
add esp, 4
pop edi
pop ebp
xor eax, eax
pop esi
add esp, 0x104
ret
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esi + 0x904], eax
jne 0x4d7d42
lea edx, [esp + 0xc]
push edx
lea edi, [esi + 0x83c]
push 0x64
push edi
mov dword [esi + 0x904], 0
mov byte [esi + 0x8a0], 0
call fcn.00423900
jmp 0x4d7d69
push eax
call dword [sym.imp.WSOCK32.dll_htonl]
lea edx, [esp + 0xc]
push edx
lea edi, [esi + 0x8a0]
push 0x64
push edi
mov dword [esi + 0x904], eax
call fcn.00423900
mov byte [esi + 0x83c], 0
push edi
call fcn.00552160
mov eax, dword [esp + 0x12c]
mov ecx, dword [esi]
push 5
push eax
push edi
push 0x5e6c98
push ecx
call fcn.0047e8b0
add esp, 0x24
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x104
ret
test ebp, ebp
jne 0x4d7dda
mov edx, dword [esp + 0x11c]
mov ecx, dword [esi + 0xf28]
mov eax, dword [esi]
imul ecx, ecx, 0x64
push edx
push ebp
push 0xa
push ebp
push eax
push ebp
push 5
push ebp
push ebp
lea edx, [ecx + esi + 0xdfc]
push ebp
push edx
call fcn.005771b0
add esp, 0x2c
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x104
ret
mov eax, dword [esp + 0x11c]
test eax, eax
je 0x4d7dee
push esi
call fcn.0058bb10
add esp, 4
push esi
call fcn.004ce210
add esp, 4
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x104
ret