Function at 0x535520
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x607030
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf8
push ebx
mov ebx, ecx
push esi
push edi
mov esi, dword [ebx + 0x48]
mov edi, dword [ebx + 0x4c]
mov eax, esi
xor edx, edx
or eax, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x40], ebx
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], edx
mov byte [ebp - 0x21], dl
je 0x53557e
mov eax, dword [ebx + 0x60]
mov ecx, dword [ebx + 0x50]
sub eax, ecx
mov ecx, dword [ebx + 0x64]
sbb ecx, dword [ebx + 0x54]
add eax, 1
mov dword [ebp - 0x1c], eax
adc ecx, edx
mov dword [ebp - 0x18], ecx
jmp 0x535584
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov ecx, esi
or ecx, edi
jne 0x5355d6
mov eax, dword [ebx + 0xb0]
cmp dword [eax + 0x2e8], edx
je 0x5355d6
mov cl, byte [eax + 0x2ec]
test cl, cl
je 0x5355d6
mov eax, dword [ebx + 0x64]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x60]
cmp eax, edx
jl 0x5355d6
jg 0x5355b6
cmp ecx, dword [ebx + 0x50]
jb 0x5355d6
mov dl, byte [ebx + 0xc8]
test dl, dl
jne 0x5355d6
mov edx, dword [ebx + 0x50]
sub ecx, edx
mov edx, dword [ebx + 0x54]
sbb eax, edx
add ecx, 1
adc eax, 0
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
mov al, byte [ebx + 0xc7]
test al, al
je 0x53560c
mov eax, dword [ebx + 0x174]
mov edx, dword [ebx + 0x178]
sub eax, edx
test eax, eax
jle 0x535605
mov cl, byte [ebx + 0xc6]
test cl, cl
je 0x535605
cdq
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
jmp 0x53560c
mov byte [ebx + 0xc7], 0
mov eax, dword [ebx + 0xb0]
mov ecx, dword [eax + 0x31c]
test ecx, ecx
je 0x53565e
mov edx, dword [ebx + 0x60]
mov eax, dword [ebx + 0x64]
mov ecx, edx
or ecx, eax
je 0x53565e
mov eax, esi
mov ecx, edi
sub eax, 1
sbb ecx, 0
cmp edx, eax
jne 0x53565e
cmp dword [ebx + 0x64], ecx
jne 0x53565e
mov edx, esi
or edx, edi
je 0x53565e
mov eax, dword [ebx + 0xb0]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax + 0x31c]
add ecx, eax
mov eax, dword [ebp - 0x18]
adc eax, 0
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov eax, edx
or eax, ecx
jne 0x535691
mov eax, esi
or eax, edi
je 0x535691
push str.Completed0._n
mov ecx, ebx
call fcn.00532d70
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x5356a4
cmp eax, 0x2da0
jg 0x5356d5
mov dword [ebp + 0x10], eax
jmp 0x5356dc
test ecx, ecx
jl 0x5356d5
jg 0x5356ae
test edx, edx
jbe 0x5356d5
mov edx, dword [ebx + 0x68]
mov eax, dword [ebx + 0x6c]
mov ecx, edx
add ecx, 0x2da0
adc eax, 0
cmp eax, dword [ebp - 0x18]
jl 0x5356d5
jg 0x5356cb
cmp ecx, dword [ebp - 0x1c]
jbe 0x5356d5
mov eax, dword [ebp - 0x1c]
sub eax, edx
mov dword [ebp + 0x10], eax
jmp 0x5356dc
mov dword [ebp + 0x10], 0x2da0
mov eax, dword [ebp + 0x10]
mov byte [ebx + 0xc5], 0
test eax, eax
jne 0x53579b
mov al, byte [ebx + 0xc4]
test al, al
je 0x53579b
mov ecx, esi
or ecx, edi
je 0x53579b
mov eax, dword [ebx + 0x3c8]
mov edx, dword [ebx + 0x3cc]
mov ecx, eax
mov byte [ebx + 0xc5], 1
sub ecx, edx
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebx + 0x60]
cdq
add eax, ecx
mov ecx, dword [ebx + 0x64]
adc edx, ecx
sub esi, 2
sbb edi, 0
mov ecx, edi
cmp edx, ecx
jl 0x53574d
jg 0x53573d
cmp eax, esi
jbe 0x53574d
mov eax, dword [ebx + 0x48]
mov edx, dword [ebx + 0x60]
sub eax, edx
sub eax, 2
mov dword [ebp + 0x10], eax
jmp 0x535750
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x535775
push str.Completed02._n
mov ecx, ebx
call fcn.00532d70
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 0xffffffff
jne 0x53579b
push str.Completed02b._n
mov ecx, ebx
call fcn.00532d70
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x5357aa
mov eax, dword [eax + 0x10]
jmp 0x5357b3
mov eax, dword [ebx + 0xb0]
mov eax, dword [eax + 0x24]
cmp eax, 2
mov dword [ebp - 0x38], eax
jne 0x535a36
mov eax, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x68]
mov edx, dword [ebx]
push eax
push ecx
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x14]
push eax
xor esi, esi
push ecx
mov ecx, ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
call dword [edx + 0x10]
mov ecx, dword [ebp - 0x14]
cmp eax, esi
mov dword [ebp - 0x28], eax
je 0x5359aa
cmp ecx, dword [ebp - 0x20]
jne 0x5359aa
cmp dword [ebp + 0xc], esi
je 0x5359aa
mov esi, dword [ebx + 0x68]
mov edi, dword [ebx + 0x6c]
mov eax, ecx
cdq
add eax, esi
adc edx, edi
mov edi, dword [ebp - 0x18]
cmp edx, edi
jl 0x535848
mov esi, dword [ebp - 0x1c]
jg 0x53581b
cmp eax, esi
jb 0x535848
mov edi, esi
or edi, dword [ebp - 0x18]
je 0x535845
mov edi, dword [ebp - 0x18]
cmp eax, esi
jne 0x5359b0
cmp edx, edi
jne 0x5359b0
mov al, byte [ebx + 0xc5]
test al, al
je 0x5359ba
jmp 0x535848
mov edi, dword [ebp - 0x18]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx]
xor edx, edx
cmp eax, edx
je 0x53587d
mov ecx, dword [ebp - 0x14]
cmp ecx, edx
jne 0x535997
sub eax, 0x2733
neg eax
sbb eax, eax
and al, 0xfd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov al, byte [ebx + 0x3d0]
test al, al
je 0x53589a
mov ecx, dword [ebp - 0x14]
mov byte [ebx + 0x3d0], 0
mov byte [ebp - 0x21], 1
jmp 0x535aa5
mov al, byte [ebx + 0xc3]
test al, al
jne 0x535938
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x68]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], edx
cdq
add ecx, eax
mov eax, dword [ebx + 0x6c]
mov esi, dword [ebx]
adc eax, edx
lea edx, [ebp - 0x2c]
push eax
push ecx
lea ecx, [ebp - 0x30]
push ecx
push edx
mov ecx, ebx
call dword [esi + 0x10]
mov cl, byte [ebx + 0xc5]
mov dword [ebp - 0x28], eax
test cl, cl
jne 0x5358e4
mov cl, byte [ebx + 0xc7]
test cl, cl
je 0x5358fe
test eax, eax
jne 0x5358fe
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x20]
add ecx, edx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x14], ecx
add esi, edx
mov dl, byte [ebx + 0xc8]
test dl, dl
mov dword [ebp - 0x20], esi
je 0x53593e
mov edx, dword [ebx + 0x48]
mov esi, dword [ebx + 0x4c]
or edx, esi
jne 0x53593e
mov dl, byte [ebx + 0xc9]
test dl, dl
jne 0x535aa5
jmp 0x53593e
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x535997
cmp ecx, dword [ebp - 0x20]
jne 0x535997
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x53596c
mov al, byte [ebx + 0xc8]
test al, al
je 0x535997
mov eax, dword [ebx + 0x3d4]
test eax, eax
je 0x535997
mov al, byte [ebx + 0x3d1]
test al, al
je 0x535997
mov esi, dword [ebx + 0x68]
mov eax, ecx
cdq
add esi, eax
mov eax, dword [ebx + 0x6c]
adc eax, edx
cmp eax, edi
jl 0x535848
jg 0x53598c
cmp esi, dword [ebp - 0x1c]
jb 0x535848
mov eax, dword [ebp - 0x1c]
or eax, edi
je 0x535848
mov al, byte [ebx + 0xc3]
test al, al
jne 0x535848
jmp 0x535aa5
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov al, byte [ebx + 0xc5]
test al, al
jne 0x5359c4
mov al, byte [ebx + 0xc7]
test al, al
je 0x5359e0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x5359eb
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x535aa5
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x535aa5
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x535aa5
test ecx, ecx
jne 0x535aa5
mov edx, dword [ebx + 0x6c]
cmp edx, edi
jl 0x535a21
jg 0x535a19
mov eax, dword [ebx + 0x68]
cmp eax, esi
jb 0x535a21
or esi, edi
jne 0x536005
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x384]
test eax, eax
jle 0x535a8a
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jl 0x535a49
mov eax, ecx
mov edx, dword [ebx + 0x380]
mov ecx, eax
lea edi, [ebx + 0x42c]
lea esi, [ebx + edx + 0x180]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x380]
mov ecx, dword [ebx + 0x384]
add edx, eax
sub ecx, eax
mov dword [ebx + 0x380], edx
mov dword [ebx + 0x384], ecx
jmp 0x535aa0
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebx + 0x42c]
push eax
push ecx
push edx
call sub.WS2_32.dll_recv
mov ecx, eax
mov dword [ebp - 0x14], ecx
xor esi, esi
cmp ecx, esi
jle 0x535f9b
cmp dword [ebp - 0x38], 2
je 0x535d4a
mov al, byte [ebx + 0xc8]
test al, al
je 0x535b26
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x38]
push eax
lea edx, [ebp - 0x20]
push ecx
lea eax, [ebp - 0x14]
push edx
lea ecx, [ebx + 0x42c]
push eax
push ecx
mov ecx, ebx
mov dword [ebp + 0xc], esi
call fcn.00534930
mov cl, byte [ebx + 0xc5]
mov dword [ebp - 0x28], eax
test cl, cl
jne 0x535aff
mov cl, byte [ebx + 0xc7]
test cl, cl
je 0x535d47
cmp eax, esi
jne 0x535b19
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor ecx, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], ecx
jmp 0x535d4a
lea edx, [ebp + 0xc]
lea esi, [ebx + 0x42c]
push edx
push esi
push ecx
mov ecx, ebx
mov dword [ebp + 0xc], 0
call fcn.00536090
test eax, eax
je 0x535c27
mov eax, dword [ebp + 0xc]
cmp eax, 0xfffffff6
jne 0x5359cd
mov eax, dword [ebp - 0x14]
add eax, 0x30
push eax
call fcn.005db95d
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
jne 0x535b82
mov eax, 0xfffffff7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebx + 0xb0]
mov eax, dword [ebp + 8]
mov edi, eax
mov edx, dword [ecx + 0xe0]
mov ecx, 0xc
mov esi, dword [edx]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x14]
lea edi, [eax + 0x30]
mov eax, ecx
lea esi, [ebx + 0x42c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x14]
add esi, 0x30
test eax, eax
mov dword [ebp - 0x14], esi
jl 0x535bfa
jg 0x535bcf
mov eax, dword [ebp - 0x1c]
test eax, eax
jbe 0x535bfa
mov edi, dword [ebx + 0x68]
mov eax, esi
cdq
mov ecx, eax
mov eax, dword [ebx + 0x6c]
mov dword [ebp - 0x34], ecx
add ecx, edi
adc edx, eax
mov eax, dword [ebp - 0x18]
cmp edx, eax
jl 0x535bf5
mov eax, dword [ebp - 0x1c]
jg 0x535bf1
cmp ecx, eax
jbe 0x535bf5
sub eax, edi
jmp 0x535bfc
mov eax, dword [ebp - 0x34]
jmp 0x535bfc
mov eax, esi
cmp eax, esi
jge 0x535c05
mov esi, eax
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x20]
push ecx
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebx + 0x10]
push esi
call fcn.0053b170
push esi
mov dword [ebp - 0x28], eax
call fcn.005db986
add esp, 4
jmp 0x535d47
mov al, byte [ebx + 0xc5]
test al, al
je 0x535cab
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebx + 0x3cc]
mov eax, ecx
lea esi, [ebx + 0x42c]
lea edi, [ebx + edx + 0x388]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebx + 0x3cc]
mov ecx, dword [ebp + 0x10]
add edx, eax
cmp eax, ecx
mov dword [ebx + 0x3cc], edx
jne 0x535c9e
lea ecx, [ebp - 0x14]
push ecx
mov ecx, ebx
call fcn.00535210
test eax, eax
jne 0x535c92
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push str.CWSONC_1537_OK_n
mov ecx, ebx
call fcn.00532d70
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], ecx
jmp 0x535d5e
mov al, byte [ebx + 0xc7]
test al, al
je 0x535d33
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebx + 0x178]
mov eax, ecx
lea esi, [ebx + 0x42c]
lea edi, [edx + ebx + 0xf4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebx + 0x178]
mov ecx, dword [ebp + 0x10]
add edx, eax
cmp eax, ecx
mov dword [ebx + 0x178], edx
jne 0x535d29
lea ecx, [ebp - 0x14]
push ecx
mov ecx, ebx
call fcn.005351c0
test eax, eax
jne 0x535d16
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push str.CWEOCOR_1559_OK_n
mov ecx, ebx
call fcn.00532d70
mov byte [ebx + 0xc6], 0
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], ecx
jmp 0x535d5e
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
push edx
push eax
push esi
lea ecx, [ebx + 0x10]
call fcn.0053b170
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x535edb
cmp ecx, dword [ebp - 0x20]
jne 0x535edb
mov edi, dword [ebx + 0x68]
mov eax, ecx
mov ecx, dword [ebx + 0x70]
cdq
add edi, eax
mov dword [ebx + 0x68], edi
mov esi, dword [ebx + 0x6c]
adc esi, edx
add ecx, eax
mov dword [ebx + 0x70], ecx
mov edi, dword [ebx + 0x74]
mov ecx, dword [ebx + 0x94]
mov dword [ebx + 0x6c], esi
adc edi, edx
mov dword [ebx + 0x74], edi
mov esi, dword [ecx]
add esi, eax
mov dword [ecx], esi
mov eax, dword [ecx + 4]
adc eax, edx
mov dword [ecx + 4], eax
mov ecx, dword [ebx + 0x98]
mov eax, dword [ebp - 0x14]
mov edi, dword [ecx]
cdq
add edi, eax
mov dword [ecx], edi
mov esi, dword [ecx + 4]
adc esi, edx
mov dword [ecx + 4], esi
mov ecx, dword [ebx + 0xb0]
mov eax, dword [ecx + 0x2e8]
test eax, eax
je 0x535e04
mov ecx, dword [ebx + 0x64]
mov edx, dword [ebx + 0x60]
test ecx, ecx
jl 0x535e04
jg 0x535dcd
test edx, edx
jbe 0x535e04
fld qword [ebx + 0xd8]
fcomp qword [0x6177c8]
fnstsw ax
test ah, 0x41
jne 0x535e04
fild dword [ebp - 0x14]
add edx, 1
mov eax, dword [ebx + 0xe0]
adc ecx, 0
mov dword [ebp - 0x1c], edx
fmul qword [ebx + 0xd8]
mov dword [ebp - 0x18], ecx
fild qword [ebp - 0x1c]
fdivp st(1)
fadd qword [eax]
fstp qword [eax]
lea esi, [ebx + 0x41c]
push esi
call fcn.005c48fc
mov eax, dword [esi]
mov ecx, dword [ebx + 0x410]
mov esi, dword [ebx + 0xb0]
add esp, 4
sub eax, ecx
mov dword [ebx + 0x428], eax
mov dword [ebp + 0xc], eax
je 0x535ec2
mov edi, dword [esi + 0x444]
test edi, edi
mov dword [ebp + 8], edi
je 0x535e9b
fild dword [ebp + 8]
lea edx, [edi + 1]
fstp qword [ebp - 0x44]
fild dword [ebp + 0xc]
mov dword [ebp + 0xc], edx
fstp qword [ebp - 0x1c]
fild dword [ebp + 0xc]
fst qword [ebp - 0x3c]
fld qword [ebp - 0x44]
fmul qword [esi + 0x418]
fadd qword [ebp - 0x1c]
fdivrp st(1)
fst qword [ebp - 0x34]
fstp qword [esi + 0x418]
fld qword [ebp - 0x1c]
fsub qword [ebp - 0x34]
fld qword [0x6387d8]
call fcn.005c53b0
fdiv qword [ebp - 0x3c]
fld qword [ebp - 0x44]
fmul qword [esi + 0x428]
fdiv qword [ebp - 0x3c]
faddp st(1)
fstp qword [esi + 0x428]
fld qword [ebp - 0x1c]
jmp 0x535ea4
fild dword [ebp + 0xc]
fst qword [esi + 0x418]
fcom qword [esi + 0x438]
fnstsw ax
test ah, 0x41
jne 0x535eb9
fstp qword [esi + 0x438]
jmp 0x535ebb
fstp st(0)
inc edi
mov dword [esi + 0x444], edi
mov ecx, ebx
call fcn.00534910
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0xa4], 0
jmp 0x5359cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x14]
mov esi, eax
mov eax, dword [ebp - 0x20]
push esi
push eax
push ecx
lea edx, [ebp - 0x104]
push str.File_write_error__Received__d_bytes__wrote__d_bytes__errCode___ld_n
push edx
call fcn.005c3928
add esp, 0x14
lea eax, [ebp - 0x104]
mov ecx, ebx
push eax
call fcn.00532d70
cmp esi, 5
jne 0x535f25
mov ecx, dword [0x6cdd1c]
push ecx
mov ecx, dword [ebx + 0x9c]
call fcn.0053aa00
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebx + 0x68]
xor edx, edx
add eax, ecx
mov dword [ebx + 0x68], eax
mov edi, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x94]
adc edi, edx
mov dword [ebx + 0x6c], edi
mov esi, dword [eax]
add esi, ecx
mov dword [eax], esi
mov ecx, dword [eax + 4]
adc ecx, edx
mov dword [eax + 4], ecx
mov ecx, ebx
call fcn.00536b60
test eax, eax
je 0x535f71
mov eax, 0xfffffffb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebx + 0x90]
lea ecx, [ebx + 0x10]
mov eax, dword [edx + 0x10]
push eax
call fcn.0053ad60
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp ecx, 0xffffffff
jne 0x536005
call sub.WS2_32.dll_WSAGetLastError
mov ecx, dword [ebp + 8]
mov esi, eax
push ecx
push esi
lea edx, [ebp - 0x84]
push str.Error_code___d__socket___d_n
push edx
call fcn.005c3928
add esp, 0x10
cmp esi, 0x2733
je 0x535fe5
mov eax, dword [0x6cdfac]
push 1
push eax
mov ecx, ebx
call fcn.00532ca0
lea ecx, [ebp - 0x84]
push ecx
mov ecx, ebx
call fcn.00532d70
mov eax, esi
sub eax, 0x2733
neg eax
sbb eax, eax
and al, 0xfd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x5359cb
test ecx, ecx
jne 0x5359cb
cmp dword [ebp - 0x38], 2
jne 0x536029
mov al, byte [ebp - 0x21]
test al, al
je 0x5359cb
mov edx, dword [0x6cdfa8]
push 1
push edx
mov ecx, ebx
call fcn.00532ca0
mov eax, 0xfffffffc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc