Function at 0x450620
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
push edi
mov eax, dword [esi + 0x90]
or eax, dword [esi + 0x94]
jne 0x450659
mov eax, dword [esi + 0x98]
or eax, dword [esi + 0x9c]
jne 0x450659
push 7
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.00451020
add esp, 0xc
mov edi, dword [ebp + 0x10]
or dword [edi], 2
cmp dword [esi + 0x12c], 0
jne 0x45088c
mov eax, dword [esi + 0x900]
test eax, eax
jne 0x450693
push dword [esi + 0x4e4]
call dword [section..data]
add esp, 4
mov dword [esi + 0x900], eax
test eax, eax
je 0x450795
mov dword [esi + 0x130], eax
cmp byte [esi + 0x13e], bl
jne 0x450850
cmp dword [esi + 0x108], 2
mov ecx, dword [esi + 0x134]
jne 0x450701
cmp dword [ecx + 0x1a0], 2
jne 0x450701
and dword [esi + 0xf4], 0xfffffffd
lea eax, [ebp - 0x14]
push eax
mov dword [esi + 0x108], 1
call fcn.004482a0
push 0
movups xmm0, xmmword [eax]
movups xmmword [esi + 0xf8], xmm0
and dword [edi], 0xfffffffd
mov eax, dword [esi + 0x6c4]
cdq
push edx
push eax
push esi
call fcn.00434d30
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 + 0x290]
test dword [eax + 0x44], 0x40003
je 0x45071d
cmp dword [ecx + 0x1a0], 1
sete bl
lea eax, [ebp + 0x10]
push eax
push dword [esi + 0x4e4]
push esi
call fcn.0044ec50
add esp, 0xc
test eax, eax
jne 0x450a6d
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x450850
jle 0x45085d
mov dword [esi + 0x12c], edx
test bl, bl
jne 0x45082c
cmp byte [esi + 0x6fa], bl
je 0x45082c
cmp dword [esi + 0x968], eax
jne 0x4507a1
mov eax, dword [esi + 0x4e4]
add eax, eax
push eax
call dword [section..data]
add esp, 4
mov dword [esi + 0x968], eax
test eax, eax
jne 0x4507a1
push str.Failed_to_alloc_scratch_buffer_
push esi
call fcn.00443440
add esp, 8
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
xor edx, edx
cmp dword [ebp + 0x10], ecx
jle 0x450811
nop word [eax + eax]
mov eax, dword [esi + 0x130]
mov bl, byte [edx + eax]
mov eax, dword [esi + 0x968]
cmp bl, 0xa
jne 0x450804
mov byte [eax + ecx], 0xd
inc ecx
mov eax, dword [esi + 0x968]
mov byte [ecx + eax], bl
cmp byte [esi + 0x6fa], 0
jne 0x450807
mov edi, dword [esi + 0xc70]
mov eax, edi
mov ebx, dword [esi + 0xc74]
and eax, ebx
cmp eax, 0xffffffff
je 0x450807
add edi, 1
mov dword [esi + 0xc70], edi
adc ebx, 0
mov dword [esi + 0xc74], ebx
jmp 0x450807
mov byte [eax + ecx], bl
inc edx
inc ecx
cmp edx, dword [ebp + 0x10]
jl 0x4507b0
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
cmp ecx, edx
je 0x45082c
mov eax, dword [esi + 0x968]
mov edx, ecx
mov dword [esi + 0x130], eax
mov dword [esi + 0x12c], ecx
mov eax, dword [edi + 0x290]
test dword [eax + 0x44], 0x30000
je 0x45088f
push edx
push esi
call fcn.0045b260
add esp, 8
test eax, eax
je 0x45088f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [esi + 0xf4], 0x20
jne 0x450a6b
mov eax, dword [esi + 0xc]
and dword [esi + 0xf4], 0xfffffffd
cmp byte [eax + 0x256], 0
je 0x450a6b
push esi
call fcn.0044f780
add esp, 4
test eax, eax
je 0x450a6b
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 + 0x2ac]
push esi
call fcn.00443970
add esp, 0x14
test eax, eax
jne 0x450a6d
mov edi, dword [edi + 0x2ac]
push eax
push eax
lea eax, [ebp - 4]
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 0x4508f3
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 - 4], edi
je 0x450956
mov eax, dword [ebp + 8]
cdq
cmp edi, edx
jg 0x450919
jl 0x450923
cmp ebx, eax
jb 0x450923
mov ebx, eax
mov dword [ebp + 0x10], eax
mov edi, edx
mov dword [ebp - 4], edx
push ebx
push dword [esi + 0x130]
push 2
push esi
call fcn.004433a0
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 - 4]
mov dword [ebp + 0x10], eax
jmp 0x450963
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 0x4509a4
push ebx
sub edi, ebx
add edi, dword [esi + 0x130]
push edi
push 4
push esi
call fcn.004433a0
add ebx, dword [esi + 0x98]
mov eax, dword [esi + 0x9c]
adc eax, dword [ebp + 0x10]
push eax
push ebx
push esi
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], eax
call fcn.00450e10
mov edi, dword [ebp + 8]
add esp, 0x1c
cmp byte [esi + 0x142], 0
je 0x4509b6
cmp byte [esi + 0x144], 0
je 0x4509ea
mov eax, dword [esi + 0x98]
cmp eax, dword [esi + 0xc70]
jne 0x4509ea
mov eax, dword [esi + 0x9c]
cmp eax, dword [esi + 0xc74]
jne 0x4509ea
push str.We_are_completely_uploaded_and_fine
push esi
mov byte [esi + 0x13e], 1
call fcn.00443500
mov edi, dword [ebp + 8]
add esp, 8
mov eax, dword [esi + 0x12c]
cmp eax, edi
je 0x450a0b
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
mov eax, dword [esi + 0x900]
test eax, eax
jne 0x450a32
push dword [esi + 0x4e4]
call dword [section..data]
add esp, 4
mov dword [esi + 0x900], eax
test eax, eax
je 0x450795
cmp byte [esi + 0x13e], 0
mov dword [esi + 0x130], eax
mov dword [esi + 0x12c], 0
je 0x450a6b
mov eax, dword [esi + 0xc]
and dword [esi + 0xf4], 0xfffffffd
cmp byte [eax + 0x256], 0
je 0x450a6b
push esi
call fcn.0044f780
add esp, 4
test eax, eax
jne 0x450a6d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret