Function at 0x9d0d40
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov byte [ebp + 0xb], 0
mov eax, dword [esi + 0x98]
or eax, dword [esi + 0x9c]
jne 0x9d0d7b
mov eax, dword [esi + 0xa0]
or eax, dword [esi + 0xa4]
jne 0x9d0d7b
push 7
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.009d16c0
add esp, 0xc
mov eax, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 8], edi
or dword [eax], 2
mov ebx, dword [esi + 0x124]
test ebx, ebx
je 0x9d0df3
mov eax, dword [esi + 0x4bc]
shr eax, 5
cmp ebx, eax
jge 0x9d1030
cmp byte [esi + 0x151], 0
jne 0x9d1030
cmp byte [esi + 0x14c], 0
jne 0x9d1030
mov ecx, dword [esi + 0xa0]
mov eax, ebx
sub ecx, dword [esi + 0xb8]
mov edi, dword [esi + 0xa4]
sbb edi, dword [esi + 0xbc]
cdq
add ecx, eax
adc edi, edx
cmp ecx, dword [esi + 0xc88]
jne 0x9d0dee
cmp edi, dword [esi + 0xc8c]
je 0x9d1030
mov edi, ebx
mov dword [ebp - 8], ebx
mov eax, dword [esi + 0x8cc]
test eax, eax
jne 0x9d0e1a
push dword [esi + 0x4bc]
call dword [0xa7f0f8]
add esp, 4
mov dword [esi + 0x8cc], eax
test eax, eax
je 0x9d0f5a
test edi, edi
je 0x9d0e33
mov ecx, dword [esi + 0x128]
cmp ecx, eax
je 0x9d0e33
push edi
push ecx
push eax
call fcn.00a04090
add esp, 0xc
cmp byte [esi + 0x14c], 0
mov edx, dword [esi + 0x8cc]
mov dword [esi + 0x128], edx
jne 0x9d123f
cmp dword [esi + 0x100], 2
mov ecx, dword [esi + 0x12c]
jne 0x9d0eab
cmp dword [ecx + 0x1a8], 2
jne 0x9d0eab
and dword [esi + 0xec], 0xfffffffd
lea eax, [ebp - 0x18]
push eax
mov dword [esi + 0x100], 1
call fcn.009b8300
push 0
movups xmm0, xmmword [eax]
mov eax, dword [ebp + 0x10]
movups xmmword [esi + 0xf0], xmm0
and dword [eax], 0xfffffffd
mov eax, dword [esi + 0x68c]
cdq
push edx
push eax
push esi
call fcn.009b2a00
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1e8]
test dword [eax + 0x44], 0x40003
je 0x9d0ec8
cmp dword [ecx + 0x1a8], 1
sete byte [ebp + 0xb]
lea eax, [edx + edi]
mov dword [esi + 0x128], eax
lea eax, [ebp + 0x10]
push eax
mov eax, dword [esi + 0x4bc]
sub eax, edi
push eax
push esi
call fcn.009cf220
sub dword [esi + 0x128], edi
add esp, 0xc
test eax, eax
jne 0x9d125a
mov ebx, dword [ebp + 0x10]
add ebx, edi
mov dword [ebp + 0x10], ebx
je 0x9d123f
test ebx, ebx
jle 0x9d1248
mov dword [esi + 0x124], ebx
cmp byte [ebp + 0xb], al
jne 0x9d100b
cmp byte [esi + 0x6bf], al
je 0x9d100b
mov eax, dword [esi + 0x934]
test eax, eax
jne 0x9d0f66
mov eax, dword [esi + 0x4bc]
add eax, eax
push eax
call dword [0xa7f0f8]
add esp, 4
mov dword [esi + 0x934], eax
test eax, eax
jne 0x9d0f66
push str.Failed_to_alloc_scratch_buffer
push esi
call fcn.009c3230
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x9d0f7a
push edi
push dword [esi + 0x128]
push eax
call fcn.00a02dc0
add esp, 0xc
mov edx, edi
mov ecx, edi
cmp edi, ebx
jge 0x9d0ff3
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esi + 0x128]
mov bl, byte [edx + eax]
mov eax, dword [esi + 0x934]
cmp bl, 0xa
jne 0x9d0fe4
mov byte [eax + ecx], 0xd
inc ecx
mov eax, dword [esi + 0x934]
mov byte [ecx + eax], bl
cmp byte [esi + 0x6bf], 0
jne 0x9d0fe7
mov edi, dword [esi + 0xc88]
mov eax, edi
mov ebx, dword [esi + 0xc8c]
and eax, ebx
cmp eax, 0xffffffff
je 0x9d0fe7
add edi, 1
mov dword [esi + 0xc88], edi
adc ebx, 0
mov dword [esi + 0xc8c], ebx
jmp 0x9d0fe7
mov byte [eax + ecx], bl
mov ebx, dword [ebp + 0x10]
inc edx
inc ecx
cmp edx, ebx
jl 0x9d0f90
mov edi, dword [ebp - 8]
cmp ecx, ebx
je 0x9d100b
mov eax, dword [esi + 0x934]
mov ebx, ecx
mov dword [esi + 0x128], eax
mov dword [esi + 0x124], ecx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1e8]
test dword [eax + 0x44], 0x30000
je 0x9d1030
push edi
push ebx
push esi
call fcn.009dde70
add esp, 0xc
test eax, eax
jne 0x9d125a
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push dword [esi + 0x124]
push dword [esi + 0x128]
push dword [ebx + 0x204]
push esi
call fcn.009c33f0
add esp, 0x14
test eax, eax
jne 0x9d125a
lea eax, [ebp - 0x28]
push eax
call fcn.009b8300
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 + 0x138]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [edx]
movups xmmword [eax], xmm0
call fcn.009b83b0
add esp, 0x20
test edx, edx
jl 0x9d10e5
jg 0x9d109b
cmp eax, 0x3e8
jbe 0x9d10e5
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 0x9d10da
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 + 0x138], xmm0
mov ebx, dword [esi + 0xb8]
mov eax, ebx
mov edi, dword [esi + 0xbc]
or eax, edi
mov dword [ebp + 0x10], ebx
mov dword [ebp + 8], edi
je 0x9d1148
mov eax, dword [ebp - 4]
cdq
cmp edi, edx
jg 0x9d110b
jl 0x9d1115
cmp ebx, eax
jb 0x9d1115
mov ebx, eax
mov dword [ebp + 0x10], eax
mov edi, edx
mov dword [ebp + 8], edx
push ebx
push dword [esi + 0x128]
push 2
push esi
call fcn.009c3190
add esp, 0x10
sub dword [esi + 0xb8], ebx
sbb dword [esi + 0xbc], edi
mov edi, dword [ebp - 4]
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 0x9d1155
mov edi, dword [ebp - 4]
mov eax, edi
cdq
mov ebx, eax
mov dword [ebp + 0x10], edx
mov eax, edx
mov ecx, ebx
or ecx, eax
je 0x9d1196
push ebx
sub edi, ebx
add edi, dword [esi + 0x128]
push edi
push 4
push esi
call fcn.009c3190
add ebx, dword [esi + 0xa0]
mov eax, dword [esi + 0xa4]
adc eax, dword [ebp + 0x10]
push eax
push ebx
push esi
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], eax
call fcn.009d14b0
mov edi, dword [ebp - 4]
add esp, 0x1c
cmp byte [esi + 0x151], 0
je 0x9d11a8
cmp byte [esi + 0x153], 0
je 0x9d11dc
mov eax, dword [esi + 0xa0]
cmp eax, dword [esi + 0xc88]
jne 0x9d11dc
mov eax, dword [esi + 0xa4]
cmp eax, dword [esi + 0xc8c]
jne 0x9d11dc
push str.We_are_completely_uploaded_and_fine
push esi
mov byte [esi + 0x14c], 1
call fcn.009c32f0
mov edi, dword [ebp - 4]
add esp, 8
mov eax, dword [esi + 0x124]
cmp eax, edi
je 0x9d11fd
add dword [esi + 0x128], edi
sub eax, edi
mov dword [esi + 0x124], 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 0x9d1224
push dword [esi + 0x4bc]
call dword [0xa7f0f8]
add esp, 4
mov dword [esi + 0x8cc], eax
test eax, eax
je 0x9d0f5a
cmp byte [esi + 0x14c], 0
mov dword [esi + 0x128], eax
mov dword [esi + 0x124], 0
je 0x9d1258
jmp 0x9d1248
test byte [esi + 0xec], 0x20
jne 0x9d1258
and dword [esi + 0xec], 0xfffffffd
push esi
call fcn.009c2c00
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret