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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x606d30
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 0x53535e
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 0x535364
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov ecx, esi
or ecx, edi
jne 0x5353b6
mov eax, dword [ebx + 0xb0]
cmp dword [eax + 0x2e8], edx
je 0x5353b6
mov cl, byte [eax + 0x2ec]
test cl, cl
je 0x5353b6
mov eax, dword [ebx + 0x64]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x60]
cmp eax, edx
jl 0x5353b6
jg 0x535396
cmp ecx, dword [ebx + 0x50]
jb 0x5353b6
mov dl, byte [ebx + 0xc8]
test dl, dl
jne 0x5353b6
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 0x5353ec
mov eax, dword [ebx + 0x174]
mov edx, dword [ebx + 0x178]
sub eax, edx
test eax, eax
jle 0x5353e5
mov cl, byte [ebx + 0xc6]
test cl, cl
je 0x5353e5
cdq
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
jmp 0x5353ec
mov byte [ebx + 0xc7], 0
mov eax, dword [ebx + 0xb0]
mov ecx, dword [eax + 0x31c]
test ecx, ecx
je 0x53543e
mov edx, dword [ebx + 0x60]
mov eax, dword [ebx + 0x64]
mov ecx, edx
or ecx, eax
je 0x53543e
mov eax, esi
mov ecx, edi
sub eax, 1
sbb ecx, 0
cmp edx, eax
jne 0x53543e
cmp dword [ebx + 0x64], ecx
jne 0x53543e
mov edx, esi
or edx, edi
je 0x53543e
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 0x535471
mov eax, esi
or eax, edi
je 0x535471
push str.Completed0._n
mov ecx, ebx
call fcn.00532b50
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 0x535484
cmp eax, 0x2da0
jg 0x5354b5
mov dword [ebp + 0x10], eax
jmp 0x5354bc
test ecx, ecx
jl 0x5354b5
jg 0x53548e
test edx, edx
jbe 0x5354b5
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 0x5354b5
jg 0x5354ab
cmp ecx, dword [ebp - 0x1c]
jbe 0x5354b5
mov eax, dword [ebp - 0x1c]
sub eax, edx
mov dword [ebp + 0x10], eax
jmp 0x5354bc
mov dword [ebp + 0x10], 0x2da0
mov eax, dword [ebp + 0x10]
mov byte [ebx + 0xc5], 0
test eax, eax
jne 0x53557b
mov al, byte [ebx + 0xc4]
test al, al
je 0x53557b
mov ecx, esi
or ecx, edi
je 0x53557b
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 0x53552d
jg 0x53551d
cmp eax, esi
jbe 0x53552d
mov eax, dword [ebx + 0x48]
mov edx, dword [ebx + 0x60]
sub eax, edx
sub eax, 2
mov dword [ebp + 0x10], eax
jmp 0x535530
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x535555
push str.Completed02._n
mov ecx, ebx
call fcn.00532b50
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 0x53557b
push str.Completed02b._n
mov ecx, ebx
call fcn.00532b50
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 0x53558a
mov eax, dword [eax + 0x10]
jmp 0x535593
mov eax, dword [ebx + 0xb0]
mov eax, dword [eax + 0x24]
cmp eax, 2
mov dword [ebp - 0x38], eax
jne 0x535816
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 0x53578a
cmp ecx, dword [ebp - 0x20]
jne 0x53578a
cmp dword [ebp + 0xc], esi
je 0x53578a
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 0x535628
mov esi, dword [ebp - 0x1c]
jg 0x5355fb
cmp eax, esi
jb 0x535628
mov edi, esi
or edi, dword [ebp - 0x18]
je 0x535625
mov edi, dword [ebp - 0x18]
cmp eax, esi
jne 0x535790
cmp edx, edi
jne 0x535790
mov al, byte [ebx + 0xc5]
test al, al
je 0x53579a
jmp 0x535628
mov edi, dword [ebp - 0x18]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx]
xor edx, edx
cmp eax, edx
je 0x53565d
mov ecx, dword [ebp - 0x14]
cmp ecx, edx
jne 0x535777
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 0x53567a
mov ecx, dword [ebp - 0x14]
mov byte [ebx + 0x3d0], 0
mov byte [ebp - 0x21], 1
jmp 0x535885
mov al, byte [ebx + 0xc3]
test al, al
jne 0x535718
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 0x5356c4
mov cl, byte [ebx + 0xc7]
test cl, cl
je 0x5356de
test eax, eax
jne 0x5356de
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 0x53571e
mov edx, dword [ebx + 0x48]
mov esi, dword [ebx + 0x4c]
or edx, esi
jne 0x53571e
mov dl, byte [ebx + 0xc9]
test dl, dl
jne 0x535885
jmp 0x53571e
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x535777
cmp ecx, dword [ebp - 0x20]
jne 0x535777
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x53574c
mov al, byte [ebx + 0xc8]
test al, al
je 0x535777
mov eax, dword [ebx + 0x3d4]
test eax, eax
je 0x535777
mov al, byte [ebx + 0x3d1]
test al, al
je 0x535777
mov esi, dword [ebx + 0x68]
mov eax, ecx
cdq
add esi, eax
mov eax, dword [ebx + 0x6c]
adc eax, edx
cmp eax, edi
jl 0x535628
jg 0x53576c
cmp esi, dword [ebp - 0x1c]
jb 0x535628
mov eax, dword [ebp - 0x1c]
or eax, edi
je 0x535628
mov al, byte [ebx + 0xc3]
test al, al
jne 0x535628
jmp 0x535885
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov al, byte [ebx + 0xc5]
test al, al
jne 0x5357a4
mov al, byte [ebx + 0xc7]
test al, al
je 0x5357c0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x5357cb
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 0x535885
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x535885
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x535885
test ecx, ecx
jne 0x535885
mov edx, dword [ebx + 0x6c]
cmp edx, edi
jl 0x535801
jg 0x5357f9
mov eax, dword [ebx + 0x68]
cmp eax, esi
jb 0x535801
or esi, edi
jne 0x535de5
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 0x53586a
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jl 0x535829
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 0x535880
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 0x535d7b
cmp dword [ebp - 0x38], 2
je 0x535b2a
mov al, byte [ebx + 0xc8]
test al, al
je 0x535906
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.00534710
mov cl, byte [ebx + 0xc5]
mov dword [ebp - 0x28], eax
test cl, cl
jne 0x5358df
mov cl, byte [ebx + 0xc7]
test cl, cl
je 0x535b27
cmp eax, esi
jne 0x5358f9
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 0x535b2a
lea edx, [ebp + 0xc]
lea esi, [ebx + 0x42c]
push edx
push esi
push ecx
mov ecx, ebx
mov dword [ebp + 0xc], 0
call fcn.00535e70
test eax, eax
je 0x535a07
mov eax, dword [ebp + 0xc]
cmp eax, 0xfffffff6
jne 0x5357ad
mov eax, dword [ebp - 0x14]
add eax, 0x30
push eax
call fcn.005db66d
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
jne 0x535962
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 0x5359da
jg 0x5359af
mov eax, dword [ebp - 0x1c]
test eax, eax
jbe 0x5359da
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 0x5359d5
mov eax, dword [ebp - 0x1c]
jg 0x5359d1
cmp ecx, eax
jbe 0x5359d5
sub eax, edi
jmp 0x5359dc
mov eax, dword [ebp - 0x34]
jmp 0x5359dc
mov eax, esi
cmp eax, esi
jge 0x5359e5
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.0053af50
push esi
mov dword [ebp - 0x28], eax
call fcn.005db696
add esp, 4
jmp 0x535b27
mov al, byte [ebx + 0xc5]
test al, al
je 0x535a8b
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 0x535a7e
lea ecx, [ebp - 0x14]
push ecx
mov ecx, ebx
call fcn.00534ff0
test eax, eax
jne 0x535a72
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.00532b50
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], ecx
jmp 0x535b3e
mov al, byte [ebx + 0xc7]
test al, al
je 0x535b13
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 0x535b09
lea ecx, [ebp - 0x14]
push ecx
mov ecx, ebx
call fcn.00534fa0
test eax, eax
jne 0x535af6
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.00532b50
mov byte [ebx + 0xc6], 0
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], ecx
jmp 0x535b3e
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
push edx
push eax
push esi
lea ecx, [ebx + 0x10]
call fcn.0053af50
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x535cbb
cmp ecx, dword [ebp - 0x20]
jne 0x535cbb
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 0x535be4
mov ecx, dword [ebx + 0x64]
mov edx, dword [ebx + 0x60]
test ecx, ecx
jl 0x535be4
jg 0x535bad
test edx, edx
jbe 0x535be4
fld qword [ebx + 0xd8]
fcomp qword [0x6177c8]
fnstsw ax
test ah, 0x41
jne 0x535be4
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.005c461c
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 0x535ca2
mov edi, dword [esi + 0x444]
test edi, edi
mov dword [ebp + 8], edi
je 0x535c7b
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.005c50d0
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 0x535c84
fild dword [ebp + 0xc]
fst qword [esi + 0x418]
fcom qword [esi + 0x438]
fnstsw ax
test ah, 0x41
jne 0x535c99
fstp qword [esi + 0x438]
jmp 0x535c9b
fstp st(0)
inc edi
mov dword [esi + 0x444], edi
mov ecx, ebx
call fcn.005346f0
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0xa4], 0
jmp 0x5357ab
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.005c3648
add esp, 0x14
lea eax, [ebp - 0x104]
mov ecx, ebx
push eax
call fcn.00532b50
cmp esi, 5
jne 0x535d05
mov ecx, dword [0x6cdd1c]
push ecx
mov ecx, dword [ebx + 0x9c]
call fcn.0053a7e0
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.00536940
test eax, eax
je 0x535d51
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.0053ab40
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 0x535de5
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.005c3648
add esp, 0x10
cmp esi, 0x2733
je 0x535dc5
mov eax, dword [0x6cdfac]
push 1
push eax
mov ecx, ebx
call fcn.00532a80
lea ecx, [ebp - 0x84]
push ecx
mov ecx, ebx
call fcn.00532b50
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 0x5357ab
test ecx, ecx
jne 0x5357ab
cmp dword [ebp - 0x38], 2
jne 0x535e09
mov al, byte [ebp - 0x21]
test al, al
je 0x5357ab
mov edx, dword [0x6cdfa8]
push 1
push edx
mov ecx, ebx
call fcn.00532a80
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