Function at 0x473950
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov byte [ebp - 1], 0
mov eax, dword [esi + 0x90]
or eax, dword [esi + 0x94]
jne 0x47398b
mov eax, dword [esi + 0x98]
or eax, dword [esi + 0x9c]
jne 0x47398b
push 7
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.00474140
add esp, 0xc
mov edi, dword [ebp + 0x10]
or dword [edi], 2
cmp dword [esi + 0x12c], 0
jne 0x473bcb
cmp dword [esi + 0x8d8], 0
jne 0x4739c4
push dword [esi + 0x4cc]
call dword [0x4ff158]
add esp, 4
mov dword [esi + 0x8d8], eax
test eax, eax
je 0x473acf
cmp byte [esi + 0x13e], 0
mov eax, dword [esi + 0x8d8]
mov dword [esi + 0x130], eax
jne 0x473b8f
cmp dword [esi + 0x108], 2
mov ecx, dword [esi + 0x134]
jne 0x473a39
cmp dword [ecx + 0x1a0], 2
jne 0x473a39
and dword [esi + 0xf4], 0xfffffffd
lea eax, [ebp - 0x18]
push eax
mov dword [esi + 0x108], 1
call fcn.0046b820
push 0
movups xmm0, xmmword [eax]
movups xmmword [esi + 0xf8], xmm0
and dword [edi], 0xfffffffd
mov eax, dword [esi + 0x6a4]
cdq
push edx
push eax
push esi
call fcn.00457640
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 + 0x288]
test dword [eax + 0x40], 0x40003
je 0x473a56
cmp dword [ecx + 0x1a0], 1
sete byte [ebp - 1]
lea eax, [ebp + 0x10]
push eax
push dword [esi + 0x4cc]
push esi
call fcn.00471fb0
add esp, 0xc
test eax, eax
jne 0x473db1
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x473b8f
jle 0x473b9c
mov dword [esi + 0x12c], ebx
cmp byte [ebp - 1], al
jne 0x473b6b
cmp byte [esi + 0x6da], al
je 0x473b6b
cmp dword [esi + 0x940], eax
jne 0x473adb
mov eax, dword [esi + 0x4cc]
add eax, eax
push eax
call dword [0x4ff158]
add esp, 4
mov dword [esi + 0x940], eax
test eax, eax
jne 0x473adb
push str.Failed_to_alloc_scratch_buffer_
push esi
call fcn.00467540
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 0x473b53
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esi + 0x130]
mov bl, byte [edx + eax]
mov eax, dword [esi + 0x940]
cmp bl, 0xa
jne 0x473b44
mov byte [ecx + eax], 0xd
inc ecx
mov eax, dword [esi + 0x940]
mov byte [ecx + eax], bl
cmp byte [esi + 0x6da], 0
jne 0x473b47
mov edi, dword [esi + 0xc28]
mov eax, edi
mov ebx, dword [esi + 0xc2c]
and eax, ebx
cmp eax, 0xffffffff
je 0x473b47
add edi, 1
mov dword [esi + 0xc28], edi
adc ebx, 0
mov dword [esi + 0xc2c], ebx
jmp 0x473b47
mov byte [ecx + eax], bl
mov ebx, dword [ebp + 0x10]
inc edx
inc ecx
cmp edx, ebx
jl 0x473af0
mov edi, dword [ebp + 0xc]
cmp ecx, ebx
je 0x473b6b
mov eax, dword [esi + 0x940]
mov ebx, ecx
mov dword [esi + 0x130], eax
mov dword [esi + 0x12c], ecx
mov eax, dword [edi + 0x288]
test dword [eax + 0x40], 0x30000
je 0x473bce
push ebx
push esi
call fcn.00487d20
add esp, 8
test eax, eax
je 0x473bce
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [esi + 0xf4], 0x20
jne 0x473daf
mov eax, dword [esi + 0xc]
and dword [esi + 0xf4], 0xfffffffd
cmp byte [eax + 0x252], 0
je 0x473daf
push esi
call fcn.00472ae0
add esp, 4
test eax, eax
je 0x473daf
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 + 0x12c]
push dword [esi + 0x130]
push dword [edi + 0x2a4]
push esi
call fcn.00467a00
add esp, 0x14
test eax, eax
jne 0x473db1
mov edi, dword [edi + 0x2a4]
push eax
push eax
lea eax, [ebp - 8]
push eax
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 0x473c32
push 4
lea eax, [ebp + 0x10]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, dword [esi + 0xb0]
mov eax, ebx
mov edi, dword [esi + 0xb4]
or eax, edi
mov dword [ebp + 0x10], ebx
mov dword [ebp - 8], edi
je 0x473c95
mov eax, dword [ebp + 8]
cdq
cmp edi, edx
jg 0x473c58
jl 0x473c62
cmp ebx, eax
jb 0x473c62
mov ebx, eax
mov dword [ebp + 0x10], eax
mov edi, edx
mov dword [ebp - 8], edx
push ebx
push dword [esi + 0x130]
push 2
push esi
call fcn.004674b0
add esp, 0x10
sub dword [esi + 0xb0], ebx
sbb dword [esi + 0xb4], edi
mov edi, dword [ebp + 8]
mov eax, edi
cdq
mov ebx, eax
mov eax, edx
sub ebx, dword [ebp + 0x10]
sbb eax, dword [ebp - 8]
mov dword [ebp + 0x10], eax
jmp 0x473ca2
mov edi, dword [ebp + 8]
mov eax, edi
cdq
mov ebx, eax
mov dword [ebp + 0x10], edx
mov eax, edx
mov ecx, ebx
or ecx, eax
je 0x473ce3
mov eax, dword [esi + 0x130]
sub eax, ebx
push ebx
add eax, edi
push eax
push 4
push esi
call fcn.004674b0
add dword [esi + 0x98], ebx
mov eax, dword [ebp + 0x10]
adc dword [esi + 0x9c], eax
push dword [esi + 0x9c]
push dword [esi + 0x98]
push esi
call fcn.00474030
mov edi, dword [ebp + 8]
add esp, 0x1c
cmp byte [esi + 0x142], 0
je 0x473cf5
cmp byte [esi + 0x144], 0
je 0x473d29
mov eax, dword [esi + 0x98]
cmp eax, dword [esi + 0xc28]
jne 0x473d29
mov eax, dword [esi + 0x9c]
cmp eax, dword [esi + 0xc2c]
jne 0x473d29
push str.We_are_completely_uploaded_and_fine_n
push esi
mov byte [esi + 0x13e], 1
call fcn.00467660
mov edi, dword [ebp + 8]
add esp, 8
mov eax, dword [esi + 0x12c]
cmp eax, edi
je 0x473d4a
add dword [esi + 0x130], edi
sub eax, edi
pop edi
mov dword [esi + 0x12c], eax
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x8d8], 0
jne 0x473d70
push dword [esi + 0x4cc]
call dword [0x4ff158]
add esp, 4
mov dword [esi + 0x8d8], eax
test eax, eax
je 0x473acf
cmp byte [esi + 0x13e], 0
mov eax, dword [esi + 0x8d8]
mov dword [esi + 0x130], eax
mov dword [esi + 0x12c], 0
je 0x473daf
mov eax, dword [esi + 0xc]
and dword [esi + 0xf4], 0xfffffffd
cmp byte [eax + 0x252], 0
je 0x473daf
push esi
call fcn.00472ae0
add esp, 4
test eax, eax
jne 0x473db1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret