Function at 0x4527f0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push edi
mov edi, eax
mov eax, dword [esi + 0xb0]
xor ebp, ebp
or eax, dword [esi + 0xb4]
jne 0x452821
mov ecx, dword [esi + 0xb8]
or ecx, dword [esi + 0xbc]
jne 0x452821
push 7
push esi
call fcn.00434b50
add esp, 8
mov ebx, 2
or dword [edi], ebx
cmp dword [esi + 0x16c], ebp
jne 0x452a75
cmp dword [esi + 0xdc0], ebp
jne 0x45285a
mov edx, dword [esi + 0x964]
push edx
call dword [0x47604c]
add esp, 4
mov dword [esi + 0xdc0], eax
test eax, eax
je 0x4529bd
mov eax, dword [esi + 0xdc0]
mov dword [esi + 0x170], eax
cmp dword [esi + 0x158], ebp
jne 0x45295e
mov eax, dword [esi + 0x184]
cmp dword [esi + 0x130], ebx
jne 0x4528e6
cmp dword [eax + 0x1b0], ebx
jne 0x4528e6
and dword [esi + 0x154], 0xfffffffd
lea ecx, [esp + 0x18]
push ecx
mov dword [esi + 0x130], 1
call fcn.00430860
mov edx, dword [eax]
mov dword [esi + 0x120], edx
mov ecx, dword [eax + 4]
mov dword [esi + 0x124], ecx
mov edx, dword [eax + 8]
mov dword [esi + 0x128], edx
mov eax, dword [eax + 0xc]
mov dword [esi + 0x12c], eax
and dword [edi], 0xfffffffd
mov eax, dword [esi + 0xb88]
cdq
push 0
push edx
push eax
push esi
call fcn.004261a0
add esp, 0x14
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov edi, dword [esp + 0x2c]
mov ecx, dword [edi + 0x350]
test dword [ecx + 0x40], 0x40003
je 0x452907
xor edx, edx
cmp dword [eax + 0x1b0], 1
sete dl
mov ebp, edx
mov ecx, dword [esi + 0x964]
lea eax, [esp + 0x10]
push eax
push ecx
push edi
call fcn.00451960
add esp, 0xc
test eax, eax
jne 0x452bfb
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x452962
jg 0x452971
and dword [esi + 0x154], 0xfffffffd
cmp dword [edi + 0x2e8], 0
je 0x452bf9
push edi
call fcn.00451d50
add esp, 4
test eax, eax
je 0x452bf9
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edi, dword [esp + 0x2c]
test byte [esi + 0x154], 0x20
jne 0x452bf9
jmp 0x452932
mov dword [esi + 0x16c], ebx
test ebp, ebp
jne 0x452a4d
cmp dword [esi + 0x838], ebp
je 0x452a4d
cmp dword [esi + 0xe10], ebp
jne 0x4529c9
mov edx, dword [esi + 0x964]
add edx, edx
push edx
call dword [0x47604c]
add esp, 4
mov dword [esi + 0xe10], eax
test eax, eax
jne 0x4529c9
push str.Failed_to_alloc_scratch_buffer_
push esi
call fcn.00428bd0
add esp, 8
pop edi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x1c
ret
xor edi, edi
xor eax, eax
test ebx, ebx
jle 0x452a2f
mov ecx, dword [esi + 0x170]
mov cl, byte [edi + ecx]
mov edx, dword [esi + 0xe10]
cmp cl, 0xa
jne 0x452a26
mov byte [eax + edx], 0xd
mov ecx, dword [esi + 0xe10]
inc eax
mov byte [eax + ecx], 0xa
cmp dword [esi + 0x838], 0
jne 0x452a29
mov ecx, dword [esi + 0x1120]
mov edx, dword [esi + 0x1124]
mov ebp, ecx
and ebp, edx
cmp ebp, 0xffffffff
je 0x452a29
add ecx, 1
adc edx, 0
mov dword [esi + 0x1120], ecx
mov dword [esi + 0x1124], edx
jmp 0x452a29
mov byte [eax + edx], cl
inc edi
inc eax
cmp edi, ebx
jl 0x4529d1
mov edi, dword [esp + 0x2c]
cmp eax, ebx
je 0x452a4d
mov ecx, dword [esi + 0xe10]
mov dword [esp + 0x10], eax
mov dword [esi + 0x170], ecx
mov dword [esi + 0x16c], eax
mov edx, dword [edi + 0x350]
test dword [edx + 0x40], 0x30000
je 0x452a79
mov eax, dword [esp + 0x10]
push eax
push edi
call fcn.00439f50
add esp, 8
test eax, eax
je 0x452a79
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret
mov edi, dword [esp + 0x2c]
mov edx, dword [esi + 0x16c]
mov eax, dword [esi + 0x170]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [edi + 0x378]
push edx
push eax
push ecx
push edi
call fcn.00428730
add esp, 0x14
test eax, eax
jne 0x452bfb
mov edi, dword [edi + 0x378]
push eax
push eax
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0x4004747b
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x452ae4
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp dword [esi + 0x9dc], 0
je 0x452b04
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 0x170]
push edx
push eax
push 4
push esi
call fcn.004289f0
add esp, 0x10
mov ecx, dword [esp + 0xc]
mov eax, ecx
cdq
add dword [esi + 0xb8], eax
adc dword [esi + 0xbc], edx
cmp dword [esi + 0x178], 0
je 0x452b29
cmp dword [esi + 0x180], 0
je 0x452b61
mov edx, dword [esi + 0xb8]
cmp edx, dword [esi + 0x1120]
jne 0x452b61
mov eax, dword [esi + 0xbc]
cmp eax, dword [esi + 0x1124]
jne 0x452b61
push str.We_are_completely_uploaded_and_fine_n
push esi
mov dword [esi + 0x158], 1
call fcn.00428a80
mov ecx, dword [esp + 0x14]
add esp, 8
mov eax, dword [esi + 0x16c]
cmp eax, ecx
je 0x452b7b
sub eax, ecx
add dword [esi + 0x170], ecx
mov dword [esi + 0x16c], eax
jmp 0x452be2
cmp dword [esi + 0xdc0], 0
jne 0x452ba2
mov ecx, dword [esi + 0x964]
push ecx
call dword [0x47604c]
add esp, 4
mov dword [esi + 0xdc0], eax
test eax, eax
je 0x4529bd
cmp dword [esi + 0x158], 0
mov edx, dword [esi + 0xdc0]
mov dword [esi + 0x170], edx
mov dword [esi + 0x16c], 0
je 0x452be2
mov eax, dword [esp + 0x2c]
and dword [esi + 0x154], 0xfffffffd
cmp dword [eax + 0x2e8], 0
je 0x452be2
push eax
call fcn.00451d50
add esp, 4
test eax, eax
jne 0x452bfb
mov eax, dword [esi + 0xbc]
mov ecx, dword [esi + 0xb8]
push eax
push ecx
push esi
call fcn.00434ff0
add esp, 0xc
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret