Function at 0x532fb0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
or dword [eax], 2
push edi
mov byte [ebp + 0xb], 0
mov edi, dword [esi + 0x11c]
mov dword [ebp - 8], ebx
test edi, edi
je 0x533036
mov eax, dword [esi + 0x4bc]
shr eax, 5
cmp edi, eax
jge 0x533271
cmp byte [esi + 0x149], bl
jne 0x533271
cmp byte [esi + 0x144], bl
jne 0x533271
mov ecx, dword [esi + 0xa0]
mov eax, edi
sub ecx, dword [esi + 0xa8]
mov ebx, dword [esi + 0xa4]
sbb ebx, dword [esi + 0xac]
cdq
add ecx, eax
adc ebx, edx
cmp ecx, dword [esi + 0xca8]
jne 0x533031
cmp ebx, dword [esi + 0xcac]
je 0x533271
mov ebx, edi
mov dword [ebp - 8], edi
mov eax, dword [esi + 0x8cc]
test eax, eax
jne 0x53305d
push dword [esi + 0x4bc]
call dword [0x7192f0]
add esp, 4
mov dword [esi + 0x8cc], eax
test eax, eax
je 0x533199
mov ecx, eax
test ebx, ebx
je 0x53307e
mov edx, dword [esi + 0x120]
cmp edx, eax
je 0x53307e
push ebx
push edx
push eax
call fcn.004e2b40
mov ecx, dword [esi + 0x8cc]
add esp, 0xc
cmp byte [esi + 0x144], 0
mov dword [esi + 0x120], ecx
jne 0x533474
cmp dword [esi + 0xf8], 2
mov edx, dword [esi + 0x124]
jne 0x5330ed
cmp dword [edx + 0x30], 2
jne 0x5330ed
and dword [esi + 0xe4], 0xfffffffd
lea eax, [ebp - 0x18]
push eax
mov dword [esi + 0xf8], 1
call fcn.00518250
push 0
movups xmm0, xmmword [eax]
mov eax, dword [ebp + 0x10]
movups xmmword [esi + 0xe8], xmm0
and dword [eax], 0xfffffffd
mov eax, dword [esi + 0x690]
cdq
push edx
push eax
push esi
call fcn.00512400
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 + 0x1e8]
test dword [eax + 0x44], 0x40003
je 0x533107
cmp dword [edx + 0x30], 1
sete byte [ebp + 0xb]
lea eax, [ecx + ebx]
mov dword [esi + 0x120], eax
lea eax, [ebp + 0x10]
push eax
mov eax, dword [esi + 0x4bc]
sub eax, ebx
push eax
push esi
call fcn.005314d0
sub dword [esi + 0x120], ebx
add esp, 0xc
test eax, eax
jne 0x53348f
mov edx, dword [ebp + 0x10]
add edx, ebx
mov dword [ebp + 0x10], edx
je 0x533474
test edx, edx
jle 0x53347d
mov dword [esi + 0x11c], edx
cmp byte [ebp + 0xb], al
jne 0x53324f
cmp byte [esi + 0x6c3], al
je 0x53324f
mov eax, dword [esi + 0x934]
test eax, eax
jne 0x5331a5
mov eax, dword [esi + 0x4bc]
add eax, eax
push eax
call dword [0x7192f0]
add esp, 4
mov dword [esi + 0x934], eax
test eax, eax
jne 0x5331a5
push str.Failed_to_alloc_scratch_buffer
push esi
call fcn.005245a0
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x5331b9
push ebx
push dword [esi + 0x120]
push eax
call fcn.004e25c0
add esp, 0xc
mov edx, ebx
mov ecx, ebx
cmp ebx, dword [ebp + 0x10]
jge 0x533234
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esi + 0x120]
mov bl, byte [edx + eax]
mov eax, dword [esi + 0x934]
cmp bl, 0xa
jne 0x533224
mov byte [eax + ecx], 0xd
inc ecx
mov eax, dword [esi + 0x934]
mov byte [ecx + eax], bl
cmp byte [esi + 0x6c3], 0
jne 0x533227
mov edi, dword [esi + 0xca8]
mov eax, edi
mov ebx, dword [esi + 0xcac]
and eax, ebx
cmp eax, 0xffffffff
je 0x533227
add edi, 1
mov dword [esi + 0xca8], edi
adc ebx, 0
mov dword [esi + 0xcac], ebx
jmp 0x533227
mov byte [eax + ecx], bl
inc edx
inc ecx
cmp edx, dword [ebp + 0x10]
jl 0x5331d0
mov ebx, dword [ebp - 8]
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
cmp ecx, edx
je 0x53324f
mov eax, dword [esi + 0x934]
mov edx, ecx
mov dword [esi + 0x120], eax
mov dword [esi + 0x11c], ecx
mov eax, dword [edi + 0x1e8]
test dword [eax + 0x44], 0x30000
je 0x533271
push ebx
push edx
push esi
call fcn.00541ac0
add esp, 0xc
test eax, eax
jne 0x53348f
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push dword [esi + 0x11c]
push dword [esi + 0x120]
push dword [ebx + 0x204]
push esi
call fcn.00524970
add esp, 0x14
test eax, eax
jne 0x53348f
lea eax, [ebp - 0x28]
push eax
call fcn.00518250
mov edx, eax
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
mov eax, esp
movups xmm0, xmmword [edx]
movups xmmword [ebp - 0x18], xmm0
movups xmm0, xmmword [esi + 0x130]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [edx]
movups xmmword [eax], xmm0
call fcn.00518310
add esp, 0x20
test edx, edx
jl 0x533326
jg 0x5332dc
cmp eax, 0x3e8
jbe 0x533326
mov edi, dword [ebx + 0x204]
lea eax, [ebp + 8]
push 0
push 0
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 0x53331b
push 4
lea eax, [ebp + 0x10]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
movups xmm0, xmmword [ebp - 0x18]
movups xmmword [esi + 0x130], xmm0
mov ebx, dword [esi + 0xa8]
mov eax, ebx
mov edi, dword [esi + 0xac]
or eax, edi
mov dword [ebp + 0x10], edi
je 0x53337b
mov eax, dword [ebp - 4]
cdq
cmp edi, edx
jg 0x533349
jl 0x533350
cmp ebx, eax
jb 0x533350
mov ebx, eax
mov dword [ebp + 0x10], edx
mov edi, edx
push ebx
push dword [esi + 0x120]
push 2
push esi
call fcn.00524510
add esp, 0x10
sub dword [esi + 0xa8], ebx
sbb dword [esi + 0xac], edi
mov edi, dword [ebp - 4]
mov eax, edi
cdq
sub eax, ebx
sbb edx, dword [ebp + 0x10]
jmp 0x533381
mov edi, dword [ebp - 4]
mov eax, edi
cdq
mov ecx, eax
mov dword [ebp + 0x10], edx
or ecx, edx
mov dword [ebp + 8], eax
je 0x5333cb
mov ebx, dword [ebp + 8]
push eax
mov eax, dword [esi + 0x120]
sub eax, ebx
add eax, edi
push eax
push 4
push esi
call fcn.00524510
add dword [esi + 0xa0], ebx
mov eax, dword [ebp + 0x10]
adc dword [esi + 0xa4], eax
push dword [esi + 0xa4]
push dword [esi + 0xa0]
push esi
call fcn.005336e0
mov edi, dword [ebp - 4]
add esp, 0x1c
cmp byte [esi + 0x149], 0
je 0x5333dd
cmp byte [esi + 0x14b], 0
je 0x533411
mov eax, dword [esi + 0xa0]
cmp eax, dword [esi + 0xca8]
jne 0x533411
mov eax, dword [esi + 0xa4]
cmp eax, dword [esi + 0xcac]
jne 0x533411
push str.We_are_completely_uploaded_and_fine
push esi
mov byte [esi + 0x144], 1
call fcn.00524660
mov edi, dword [ebp - 4]
add esp, 8
mov eax, dword [esi + 0x11c]
cmp eax, edi
je 0x533432
add dword [esi + 0x120], edi
sub eax, edi
mov dword [esi + 0x11c], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x8cc]
test eax, eax
jne 0x533459
push dword [esi + 0x4bc]
call dword [0x7192f0]
add esp, 4
mov dword [esi + 0x8cc], eax
test eax, eax
je 0x533199
cmp byte [esi + 0x144], 0
mov dword [esi + 0x120], eax
mov dword [esi + 0x11c], 0
je 0x53348d
jmp 0x53347d
test byte [esi + 0xe4], 0x20
jne 0x53348d
and dword [esi + 0xe4], 0xfffffffd
push esi
call fcn.00523f90
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret