Function at 0x4db390
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov byte [ebp + 0xb], 0
mov eax, dword [esi + 0x90]
or eax, dword [esi + 0x94]
jne 0x4db3cb
mov eax, dword [esi + 0x98]
or eax, dword [esi + 0x9c]
jne 0x4db3cb
push 7
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.004dbca0
add esp, 0xc
mov eax, dword [ebp + 0x10]
xor edi, edi
or dword [eax], 2
mov ebx, dword [esi + 0x12c]
test ebx, ebx
je 0x4db43d
mov eax, dword [esi + 0x4b8]
shr eax, 5
cmp ebx, eax
jge 0x4db656
cmp byte [esi + 0x144], 0
jne 0x4db656
cmp byte [esi + 0x13f], 0
jne 0x4db656
mov ecx, dword [esi + 0x98]
mov eax, ebx
sub ecx, dword [esi + 0xb0]
mov edi, dword [esi + 0x9c]
sbb edi, dword [esi + 0xb4]
cdq
add ecx, eax
adc edi, edx
cmp ecx, dword [esi + 0xc20]
jne 0x4db43b
cmp edi, dword [esi + 0xc24]
je 0x4db656
mov edi, ebx
mov eax, dword [esi + 0x898]
test eax, eax
jne 0x4db464
push dword [esi + 0x4b8]
call dword [0x68dc1c]
add esp, 4
mov dword [esi + 0x898], eax
test eax, eax
je 0x4db5a9
mov ecx, eax
test edi, edi
je 0x4db485
mov edx, dword [esi + 0x130]
cmp edx, eax
je 0x4db485
push edi
push edx
push eax
call fcn.005d67e0
mov ecx, dword [esi + 0x898]
add esp, 0xc
cmp byte [esi + 0x13f], 0
mov dword [esi + 0x130], ecx
jne 0x4db830
cmp dword [esi + 0x108], 2
mov edx, dword [esi + 0x134]
jne 0x4db4f7
cmp dword [edx + 0x1a0], 2
jne 0x4db4f7
and dword [esi + 0xf4], 0xfffffffd
lea eax, [ebp - 0x14]
push eax
mov dword [esi + 0x108], 1
call fcn.004d30a0
push 0
movups xmm0, xmmword [eax]
mov eax, dword [ebp + 0x10]
movups xmmword [esi + 0xf8], xmm0
and dword [eax], 0xfffffffd
mov eax, dword [esi + 0x674]
cdq
push edx
push eax
push esi
call fcn.004beaa0
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 + 0x280]
test dword [eax + 0x44], 0x40003
je 0x4db515
cmp dword [edx + 0x1a0], 1
sete bl
jmp 0x4db518
mov bl, byte [ebp + 0xb]
lea eax, [ecx + edi]
mov dword [esi + 0x130], eax
lea eax, [ebp + 0x10]
push eax
mov eax, dword [esi + 0x4b8]
sub eax, edi
push eax
push esi
call fcn.004d9940
sub dword [esi + 0x130], edi
add esp, 0xc
test eax, eax
jne 0x4db85b
mov eax, dword [ebp + 0x10]
add eax, edi
mov dword [ebp + 0x10], eax
je 0x4db830
test eax, eax
jle 0x4db839
mov dword [esi + 0x12c], eax
test bl, bl
jne 0x4db656
cmp byte [esi + 0x69c], bl
je 0x4db656
mov eax, dword [esi + 0x904]
test eax, eax
jne 0x4db5b5
mov eax, dword [esi + 0x4b8]
add eax, eax
push eax
call dword [0x68dc1c]
add esp, 4
mov dword [esi + 0x904], eax
test eax, eax
jne 0x4db5b5
push str.Failed_to_alloc_scratch_buffer
push esi
call fcn.004cdd90
add esp, 8
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4db5c9
push edi
push dword [esi + 0x130]
push eax
call fcn.005d67e0
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, edi
cmp edi, eax
jge 0x4db640
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esi + 0x130]
mov dl, byte [edi + eax]
mov eax, dword [esi + 0x904]
cmp dl, 0xa
jne 0x4db634
mov byte [eax + ecx], 0xd
inc ecx
mov eax, dword [esi + 0x904]
mov byte [ecx + eax], dl
cmp byte [esi + 0x69c], 0
jne 0x4db637
mov edx, dword [esi + 0xc20]
mov eax, edx
mov ebx, dword [esi + 0xc24]
and eax, ebx
cmp eax, 0xffffffff
je 0x4db637
add edx, 1
mov dword [esi + 0xc20], edx
adc ebx, 0
mov dword [esi + 0xc24], ebx
jmp 0x4db637
mov byte [eax + ecx], dl
mov eax, dword [ebp + 0x10]
inc edi
inc ecx
cmp edi, eax
jl 0x4db5e0
cmp ecx, eax
je 0x4db656
mov eax, dword [esi + 0x904]
mov dword [esi + 0x130], eax
mov dword [esi + 0x12c], ecx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push dword [esi + 0x12c]
push dword [esi + 0x130]
push dword [ebx + 0x29c]
push esi
call fcn.004ce200
add esp, 0x14
test eax, eax
jne 0x4db85b
mov edi, dword [ebx + 0x29c]
push eax
push eax
lea eax, [ebp + 8]
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 0x4db6bd
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], edi
je 0x4db712
mov eax, dword [ebp - 4]
cdq
cmp edi, edx
jg 0x4db6e0
jl 0x4db6e7
cmp ebx, eax
jb 0x4db6e7
mov ebx, eax
mov dword [ebp + 0x10], edx
mov edi, edx
push ebx
push dword [esi + 0x130]
push 2
push esi
call fcn.004cdd00
add esp, 0x10
sub dword [esi + 0xb0], ebx
sbb dword [esi + 0xb4], edi
mov edi, dword [ebp - 4]
mov eax, edi
cdq
sub eax, ebx
sbb edx, dword [ebp + 0x10]
jmp 0x4db718
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 0x4db762
mov ebx, dword [ebp + 8]
push eax
mov eax, dword [esi + 0x130]
sub eax, ebx
add eax, edi
push eax
push 4
push esi
call fcn.004cdd00
add dword [esi + 0x98], ebx
mov eax, dword [ebp + 0x10]
adc dword [esi + 0x9c], eax
push dword [esi + 0x9c]
push dword [esi + 0x98]
push esi
call fcn.004dbab0
mov edi, dword [ebp - 4]
add esp, 0x1c
cmp byte [esi + 0x144], 0
je 0x4db774
cmp byte [esi + 0x146], 0
je 0x4db7a8
mov eax, dword [esi + 0x98]
cmp eax, dword [esi + 0xc20]
jne 0x4db7a8
mov eax, dword [esi + 0x9c]
cmp eax, dword [esi + 0xc24]
jne 0x4db7a8
push str.We_are_completely_uploaded_and_fine
push esi
mov byte [esi + 0x13f], 1
call fcn.004cde30
mov edi, dword [ebp - 4]
add esp, 8
mov eax, dword [esi + 0x12c]
cmp eax, edi
je 0x4db7c9
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 + 0x898]
test eax, eax
jne 0x4db7f0
push dword [esi + 0x4b8]
call dword [0x68dc1c]
add esp, 4
mov dword [esi + 0x898], eax
test eax, eax
je 0x4db5a9
cmp byte [esi + 0x13f], 0
mov dword [esi + 0x130], eax
mov dword [esi + 0x12c], 0
je 0x4db859
mov eax, dword [esi + 0xc]
and dword [esi + 0xf4], 0xfffffffd
cmp byte [eax + 0x251], 0
je 0x4db859
push esi
call fcn.004da560
add esp, 4
test eax, eax
je 0x4db859
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [esi + 0xf4], 0x20
jne 0x4db859
mov eax, dword [esi + 0xc]
and dword [esi + 0xf4], 0xfffffffd
cmp byte [eax + 0x251], 0
je 0x4db859
push esi
call fcn.004da560
add esp, 4
test eax, eax
jne 0x4db85b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret