Function at 0x49c240
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov byte [ebp - 1], 0
mov eax, dword [esi + 0x98]
or eax, dword [esi + 0x9c]
jne 0x49c277
mov eax, dword [esi + 0xa0]
or eax, dword [esi + 0xa4]
jne 0x49c277
push 7
push esi
call fcn.0049cb70
add esp, 8
mov ebx, dword [ebp + 0x10]
or dword [ebx], 2
cmp dword [esi + 0x144], 0
jne 0x49c4a3
mov eax, dword [esi + 0xc60]
test eax, eax
jne 0x49c2bb
push dword [esi + 0x8e8]
mov edi, dword [fcn.004f0180]
mov ecx, edi
call dword [0x51a4a0]
call edi
add esp, 4
mov dword [esi + 0xc60], eax
test eax, eax
je 0x49c3cb
test byte [esi + 0x588], 4
mov dword [esi + 0x148], eax
jne 0x49c45b
cmp dword [esi + 0x118], 2
mov ecx, dword [esi + 0x14c]
jne 0x49c32a
cmp dword [ecx + 0x1a0], 2
jne 0x49c32a
and dword [esi + 0x138], 0xfffffffd
lea eax, [ebp - 0x20]
push eax
mov dword [esi + 0x118], 1
call fcn.00493b70
push 0
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x108], xmm0
and dword [ebx], 0xfffffffd
mov eax, dword [esi + 0xa5c]
cdq
push edx
push eax
push esi
call fcn.0047a8c0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x2c0]
test dword [eax + 0x40], 0x40003
je 0x49c347
cmp dword [ecx + 0x1a0], 1
sete byte [ebp - 1]
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x8e8]
push edi
call fcn.0049a8c0
add esp, 0xc
test eax, eax
jne 0x49c631
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x49c45e
jle 0x49c46b
mov dword [esi + 0x144], ebx
cmp byte [ebp - 1], al
jne 0x49c4a6
test byte [esi + 0xa8c], 0x40
je 0x49c4a6
cmp dword [esi + 0xca8], eax
jne 0x49c3d7
mov eax, dword [esi + 0x8e8]
mov edi, dword [fcn.004f0180]
add eax, eax
push eax
mov ecx, edi
call dword [0x51a4a0]
call edi
add esp, 4
mov dword [esi + 0xca8], eax
test eax, eax
jne 0x49c3d7
push str.Failed_to_alloc_scratch_buffer_
push esi
call fcn.004902f0
add esp, 8
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
xor edx, edx
test ebx, ebx
jle 0x49c440
nop
mov eax, dword [esi + 0x148]
mov bl, byte [edx + eax]
mov eax, dword [esi + 0xca8]
cmp bl, 0xa
jne 0x49c434
mov byte [eax + ecx], 0xd
inc ecx
mov eax, dword [esi + 0xca8]
mov byte [ecx + eax], bl
test byte [esi + 0xa8c], 0x40
jne 0x49c437
mov edi, dword [esi + 0xf50]
mov eax, edi
mov ebx, dword [esi + 0xf54]
and eax, ebx
cmp eax, 0xffffffff
je 0x49c437
add edi, 1
mov dword [esi + 0xf50], edi
adc ebx, 0
mov dword [esi + 0xf54], ebx
jmp 0x49c437
mov byte [eax + ecx], bl
mov ebx, dword [ebp - 0xc]
inc edx
inc ecx
cmp edx, ebx
jl 0x49c3e0
mov edi, dword [ebp + 0xc]
cmp ecx, ebx
je 0x49c4a6
mov eax, dword [esi + 0xca8]
mov dword [esi + 0x148], eax
mov dword [esi + 0x144], ecx
jmp 0x49c4a6
mov edi, dword [ebp + 0xc]
test byte [esi + 0x138], 0x20
jne 0x49c62f
and dword [esi + 0x138], 0xfffffffd
push edi
call fcn.0049f090
add esp, 4
test dword [edi + 0x29c], 0x20000
je 0x49c62f
push edi
call fcn.0049b210
add esp, 4
test eax, eax
je 0x49c62f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push dword [esi + 0x144]
push dword [esi + 0x148]
push dword [edi + 0x2e8]
push edi
call fcn.004908d0
add esp, 0x14
test eax, eax
jne 0x49c631
mov ebx, dword [edi + 0x2e8]
push eax
push eax
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x4004747b
push ebx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x49c50a
push 4
lea eax, [ebp - 0xc]
push eax
push 0x1001
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test dword [esi + 0xa8c], 0x2000000
je 0x49c52a
push dword [ebp - 8]
push dword [esi + 0x148]
push 4
push esi
call fcn.00490260
add esp, 0x10
mov eax, dword [ebp - 8]
cdq
add dword [esi + 0xa0], eax
adc dword [esi + 0xa4], edx
push dword [esi + 0xa4]
push dword [esi + 0xa0]
push esi
call fcn.0049c960
mov ecx, dword [esi + 0x588]
add esp, 0xc
test cl, 0x40
je 0x49c562
test ecx, 0x100
je 0x49c595
mov eax, dword [esi + 0xa0]
cmp eax, dword [esi + 0xf50]
jne 0x49c595
mov eax, dword [esi + 0xa4]
cmp eax, dword [esi + 0xf54]
jne 0x49c595
or ecx, 4
push str.We_are_completely_uploaded_and_fine_n
push esi
mov dword [esi + 0x588], ecx
call fcn.004903d0
add esp, 8
mov eax, dword [esi + 0x144]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x49c5b9
add dword [esi + 0x148], ecx
sub eax, ecx
pop edi
mov dword [esi + 0x144], eax
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc60]
test eax, eax
jne 0x49c5ed
push dword [esi + 0x8e8]
mov edi, dword [fcn.004f0180]
mov ecx, edi
call dword [0x51a4a0]
call edi
add esp, 4
mov dword [esi + 0xc60], eax
test eax, eax
je 0x49c3cb
mov edi, dword [ebp + 0xc]
test byte [esi + 0x588], 4
mov dword [esi + 0x148], eax
mov dword [esi + 0x144], 0
je 0x49c62f
and dword [esi + 0x138], 0xfffffffd
push edi
call fcn.0049f090
add esp, 4
test dword [edi + 0x29c], 0x20000
je 0x49c62f
push edi
call fcn.0049b210
add esp, 4
test eax, eax
jne 0x49c631
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret