Function at 0x456790
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
xor bl, bl
push edi
mov eax, dword [esi + 0xb0]
or eax, dword [esi + 0xb4]
jne 0x4567c4
mov eax, dword [esi + 0xb8]
or eax, dword [esi + 0xbc]
jne 0x4567c4
push 7
push esi
call fcn.0045d040
add esp, 8
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
or dword [edi], 2
cmp dword [esi + 0x164], 0
jne 0x4569ce
mov eax, dword [esi + 0xd08]
test eax, eax
jne 0x456803
push dword [esi + 0x924]
call dword [0x4e5078]
add esp, 4
mov dword [esi + 0xd08], eax
test eax, eax
je 0x456907
cmp byte [esi + 0x158], 0
mov dword [esi + 0x168], eax
jne 0x456acb
cmp dword [esi + 0x130], 2
mov ecx, dword [esi + 0x170]
jne 0x456874
cmp dword [ecx + 0x1b0], 2
jne 0x456874
and dword [esi + 0x154], 0xfffffffd
lea eax, [esp + 0x14]
push eax
mov dword [esi + 0x130], 1
call fcn.00456b80
push 0
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x120], xmm0
and dword [edi], 0xfffffffd
mov eax, dword [esi + 0xae0]
cdq
push edx
push eax
push esi
call fcn.00440cb0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [ebp + 0x2c8]
test dword [eax + 0x40], 0x40003
je 0x45688d
cmp dword [ecx + 0x1b0], 1
sete bl
lea eax, [esp + 0x28]
push eax
push dword [esi + 0x924]
push ebp
call fcn.00454db0
add esp, 0xc
test eax, eax
jne 0x456b75
mov edx, dword [esp + 0x28]
test edx, edx
je 0x456acb
jle 0x456ad8
mov dword [esi + 0x164], edx
test bl, bl
jne 0x4569ad
cmp byte [esi + 0x822], bl
je 0x4569ad
cmp dword [esi + 0xd54], eax
jne 0x456914
mov eax, dword [esi + 0x924]
add eax, eax
push eax
call dword [0x4e5078]
add esp, 4
mov dword [esi + 0xd54], eax
test eax, eax
jne 0x456914
push str.Failed_to_alloc_scratch_buffer_
push esi
call fcn.004506c0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x14
ret
xor ecx, ecx
xor edx, edx
cmp dword [esp + 0x28], ecx
jle 0x456991
mov ebp, dword [esp + 0x28]
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esi + 0x168]
mov bl, byte [edx + eax]
mov eax, dword [esi + 0xd54]
cmp bl, 0xa
jne 0x456984
mov byte [eax + ecx], 0xd
inc ecx
mov eax, dword [esi + 0xd54]
mov byte [ecx + eax], bl
cmp byte [esi + 0x822], 0
jne 0x456987
mov edi, dword [esi + 0x1048]
mov eax, edi
mov ebx, dword [esi + 0x104c]
and eax, ebx
cmp eax, 0xffffffff
je 0x456987
add edi, 1
mov dword [esi + 0x1048], edi
adc ebx, 0
mov dword [esi + 0x104c], ebx
jmp 0x456987
mov byte [eax + ecx], bl
inc edx
inc ecx
cmp edx, ebp
jl 0x456930
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
cmp ecx, edx
je 0x4569ad
mov eax, dword [esi + 0xd54]
mov edx, ecx
mov dword [esi + 0x168], eax
mov dword [esi + 0x164], ecx
mov eax, dword [ebp + 0x2c8]
test dword [eax + 0x40], 0x30000
je 0x4569ce
push edx
push ebp
call fcn.0046ec70
add esp, 8
test eax, eax
jne 0x456b75
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x164]
push dword [esi + 0x168]
push dword [ebp + 0x2f0]
push ebp
call fcn.00450d70
add esp, 0x14
test eax, eax
jne 0x456b75
mov edi, dword [ebp + 0x2f0]
push eax
push eax
lea eax, [esp + 0x38]
push eax
push 4
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0x4004747b
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x456a36
push 4
lea eax, [esp + 0x2c]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp byte [esi + 0x968], 0
je 0x456a54
push dword [esp + 0x10]
push dword [esi + 0x168]
push 4
push esi
call fcn.00450630
add esp, 0x10
mov ecx, dword [esp + 0x10]
mov eax, ecx
cdq
add eax, dword [esi + 0xb8]
mov dword [esi + 0xb8], eax
adc edx, dword [esi + 0xbc]
cmp byte [esi + 0x16d], 0
mov dword [esi + 0xbc], edx
je 0x456a85
cmp byte [esi + 0x16f], 0
je 0x456aae
cmp eax, dword [esi + 0x1048]
jne 0x456aae
cmp edx, dword [esi + 0x104c]
jne 0x456aae
push str.We_are_completely_uploaded_and_fine_n
push esi
mov byte [esi + 0x158], 1
call fcn.004507a0
mov ecx, dword [esp + 0x18]
add esp, 8
mov eax, dword [esi + 0x164]
cmp eax, ecx
je 0x456b01
sub eax, ecx
add dword [esi + 0x168], ecx
mov dword [esi + 0x164], eax
jmp 0x456b5e
test byte [esi + 0x154], 0x20
jne 0x456b73
and dword [esi + 0x154], 0xfffffffd
cmp byte [ebp + 0x293], 0
je 0x456b73
push ebp
call fcn.00455700
add esp, 4
test eax, eax
je 0x456b73
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [esi + 0xd08]
test eax, eax
jne 0x456b28
push dword [esi + 0x924]
call dword [0x4e5078]
add esp, 4
mov dword [esi + 0xd08], eax
test eax, eax
je 0x456907
cmp byte [esi + 0x158], 0
mov dword [esi + 0x168], eax
mov dword [esi + 0x164], 0
je 0x456b5e
and dword [esi + 0x154], 0xfffffffd
cmp byte [ebp + 0x293], 0
je 0x456b5e
push ebp
call fcn.00455700
add esp, 4
test eax, eax
jne 0x456b75
push dword [esi + 0xbc]
push dword [esi + 0xb8]
push esi
call fcn.0045ce40
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret