Function at 0x48ecb0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
mov edi, eax
mov eax, dword [esi + 0x98]
or eax, dword [esi + 0x9c]
mov dword [ebp - 0xc], 0
jne 0x48ece8
mov ecx, dword [esi + 0xa0]
or ecx, dword [esi + 0xa4]
jne 0x48ece8
push 7
push esi
call fcn.0048c9a0
add esp, 8
mov ebx, 2
or dword [edi], ebx
cmp dword [esi + 0x144], 0
jne 0x48ef43
cmp dword [esi + 0xe00], 0
jne 0x48ed23
mov edx, dword [esi + 0x958]
push edx
call dword [0x4db924]
add esp, 4
mov dword [esi + 0xe00], eax
test eax, eax
je 0x48ee84
cmp dword [esi + 0x590], 0
mov eax, dword [esi + 0xe00]
mov dword [esi + 0x148], eax
jne 0x48ee22
mov eax, dword [esi + 0x14c]
cmp dword [esi + 0x118], ebx
jne 0x48edae
cmp dword [eax + 0x1b0], ebx
jne 0x48edae
and dword [esi + 0x138], 0xfffffffd
lea ecx, [ebp - 0x20]
push ecx
mov dword [esi + 0x118], 1
call fcn.00473e20
mov edx, dword [eax]
mov dword [esi + 0x108], edx
mov ecx, dword [eax + 4]
mov dword [esi + 0x10c], ecx
mov edx, dword [eax + 8]
mov dword [esi + 0x110], edx
mov eax, dword [eax + 0xc]
mov dword [esi + 0x114], eax
and dword [edi], 0xfffffffd
mov eax, dword [esi + 0xb0c]
cdq
push 0
push edx
push eax
push esi
call fcn.004688f0
add esp, 0x14
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x5b0]
test dword [ecx + 0x40], 0x40003
je 0x48edcf
xor edx, edx
cmp dword [eax + 0x1b0], 1
sete dl
mov dword [ebp - 0xc], edx
mov ecx, dword [esi + 0x958]
lea eax, [ebp - 4]
push eax
push ecx
push edi
call fcn.0048df30
add esp, 0xc
test eax, eax
jne 0x48f0c4
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x48ee25
jg 0x48ee34
and dword [esi + 0x138], 0xfffffffd
cmp dword [edi + 0x554], 0
je 0x48f0c2
push edi
call fcn.0048e320
add esp, 4
test eax, eax
je 0x48f0c2
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
test byte [esi + 0x138], 0x20
jne 0x48f0c2
jmp 0x48edf7
cmp dword [ebp - 0xc], 0
mov dword [esi + 0x144], ebx
jne 0x48ef1d
cmp dword [esi + 0xb54], 0
je 0x48ef1d
cmp dword [esi + 0xe48], 0
jne 0x48ee8f
mov edx, dword [esi + 0x958]
add edx, edx
push edx
call dword [0x4db924]
add esp, 4
mov dword [esi + 0xe48], eax
test eax, eax
jne 0x48ee8f
push str.Failed_to_alloc_scratch_buffer_
push esi
call fcn.0046af40
add esp, 8
pop edi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
xor eax, eax
test ebx, ebx
jle 0x48ef01
jmp 0x48eea0
mov ecx, dword [esi + 0x148]
mov cl, byte [edi + ecx]
mov edx, dword [esi + 0xe48]
cmp cl, 0xa
jne 0x48eef8
mov byte [eax + edx], 0xd
mov ecx, dword [esi + 0xe48]
inc eax
mov byte [eax + ecx], 0xa
cmp dword [esi + 0xb54], 0
jne 0x48eefb
mov ecx, dword [esi + 0x1128]
mov edx, dword [esi + 0x112c]
mov ebx, ecx
and ebx, edx
cmp ebx, 0xffffffff
mov ebx, dword [ebp - 4]
je 0x48eefb
add ecx, 1
adc edx, 0
mov dword [esi + 0x1128], ecx
mov dword [esi + 0x112c], edx
jmp 0x48eefb
mov byte [eax + edx], cl
inc edi
inc eax
cmp edi, ebx
jl 0x48eea0
mov edi, dword [ebp + 8]
cmp eax, ebx
je 0x48ef1d
mov ecx, dword [esi + 0xe48]
mov dword [ebp - 0x10], eax
mov dword [esi + 0x148], ecx
mov dword [esi + 0x144], eax
mov edx, dword [edi + 0x5b0]
test dword [edx + 0x40], 0x30000
je 0x48ef46
mov eax, dword [ebp - 0x10]
push eax
push edi
call fcn.00475aa0
add esp, 8
test eax, eax
je 0x48ef46
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
mov edx, dword [esi + 0x144]
mov eax, dword [esi + 0x148]
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [edi + 0x5d8]
push edx
push eax
push ecx
push edi
call fcn.0046ab90
add esp, 0x14
test eax, eax
jne 0x48f0c4
mov edi, dword [edi + 0x5d8]
push eax
push eax
lea edx, [ebp - 0xc]
push edx
push 4
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4004747b
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x48efad
push 4
lea ecx, [ebp - 0x10]
push ecx
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp dword [esi + 0xbb4], 0
je 0x48efcc
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x148]
push edx
push eax
push 4
push esi
call fcn.0046ad90
add esp, 0x10
mov eax, dword [ebp - 8]
cdq
add dword [esi + 0xa0], eax
adc dword [esi + 0xa4], edx
mov ecx, dword [esi + 0xa4]
mov edx, dword [esi + 0xa0]
push ecx
push edx
push esi
call fcn.0048ce20
add esp, 0xc
cmp dword [esi + 0x5a0], 0
je 0x48f005
cmp dword [esi + 0x5a8], 0
je 0x48f039
mov eax, dword [esi + 0xa0]
cmp eax, dword [esi + 0x1128]
jne 0x48f039
mov ecx, dword [esi + 0xa4]
cmp ecx, dword [esi + 0x112c]
jne 0x48f039
push str.We_are_completely_uploaded_and_fine_n
push esi
mov dword [esi + 0x590], 1
call fcn.0046ae20
add esp, 8
mov eax, dword [esi + 0x144]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x48f05c
add dword [esi + 0x148], ecx
sub eax, ecx
pop edi
mov dword [esi + 0x144], eax
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xe00], 0
jne 0x48f083
mov edx, dword [esi + 0x958]
push edx
call dword [0x4db924]
add esp, 4
mov dword [esi + 0xe00], eax
test eax, eax
je 0x48ee84
cmp dword [esi + 0x590], 0
mov eax, dword [esi + 0xe00]
mov dword [esi + 0x148], eax
mov dword [esi + 0x144], 0
je 0x48f0c2
mov eax, dword [ebp + 8]
and dword [esi + 0x138], 0xfffffffd
cmp dword [eax + 0x554], 0
je 0x48f0c2
push eax
call fcn.0048e320
add esp, 4
test eax, eax
jne 0x48f0c4
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret