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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x608cd0
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 0x53714e
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 0x537154
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov ecx, esi
or ecx, edi
jne 0x5371a6
mov eax, dword [ebx + 0xb0]
cmp dword [eax + 0x2e8], edx
je 0x5371a6
mov cl, byte [eax + 0x2ec]
test cl, cl
je 0x5371a6
mov eax, dword [ebx + 0x64]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x60]
cmp eax, edx
jl 0x5371a6
jg 0x537186
cmp ecx, dword [ebx + 0x50]
jb 0x5371a6
mov dl, byte [ebx + 0xc8]
test dl, dl
jne 0x5371a6
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 0x5371dc
mov eax, dword [ebx + 0x174]
mov edx, dword [ebx + 0x178]
sub eax, edx
test eax, eax
jle 0x5371d5
mov cl, byte [ebx + 0xc6]
test cl, cl
je 0x5371d5
cdq
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
jmp 0x5371dc
mov byte [ebx + 0xc7], 0
mov eax, dword [ebx + 0xb0]
mov ecx, dword [eax + 0x31c]
test ecx, ecx
je 0x53722e
mov edx, dword [ebx + 0x60]
mov eax, dword [ebx + 0x64]
mov ecx, edx
or ecx, eax
je 0x53722e
mov eax, esi
mov ecx, edi
sub eax, 1
sbb ecx, 0
cmp edx, eax
jne 0x53722e
cmp dword [ebx + 0x64], ecx
jne 0x53722e
mov edx, esi
or edx, edi
je 0x53722e
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 0x537261
mov eax, esi
or eax, edi
je 0x537261
push str.Completed0._n
mov ecx, ebx
call fcn.00534940
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 0x537274
cmp eax, 0x2da0
jg 0x5372a5
mov dword [ebp + 0x10], eax
jmp 0x5372ac
test ecx, ecx
jl 0x5372a5
jg 0x53727e
test edx, edx
jbe 0x5372a5
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 0x5372a5
jg 0x53729b
cmp ecx, dword [ebp - 0x1c]
jbe 0x5372a5
mov eax, dword [ebp - 0x1c]
sub eax, edx
mov dword [ebp + 0x10], eax
jmp 0x5372ac
mov dword [ebp + 0x10], 0x2da0
mov eax, dword [ebp + 0x10]
mov byte [ebx + 0xc5], 0
test eax, eax
jne 0x53736b
mov al, byte [ebx + 0xc4]
test al, al
je 0x53736b
mov ecx, esi
or ecx, edi
je 0x53736b
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 0x53731d
jg 0x53730d
cmp eax, esi
jbe 0x53731d
mov eax, dword [ebx + 0x48]
mov edx, dword [ebx + 0x60]
sub eax, edx
sub eax, 2
mov dword [ebp + 0x10], eax
jmp 0x537320
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x537345
push str.Completed02._n
mov ecx, ebx
call fcn.00534940
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 0x53736b
push str.Completed02b._n
mov ecx, ebx
call fcn.00534940
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 0x53737a
mov eax, dword [eax + 0x10]
jmp 0x537383
mov eax, dword [ebx + 0xb0]
mov eax, dword [eax + 0x24]
cmp eax, 2
mov dword [ebp - 0x38], eax
jne 0x537606
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 0x53757a
cmp ecx, dword [ebp - 0x20]
jne 0x53757a
cmp dword [ebp + 0xc], esi
je 0x53757a
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 0x537418
mov esi, dword [ebp - 0x1c]
jg 0x5373eb
cmp eax, esi
jb 0x537418
mov edi, esi
or edi, dword [ebp - 0x18]
je 0x537415
mov edi, dword [ebp - 0x18]
cmp eax, esi
jne 0x537580
cmp edx, edi
jne 0x537580
mov al, byte [ebx + 0xc5]
test al, al
je 0x53758a
jmp 0x537418
mov edi, dword [ebp - 0x18]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx]
xor edx, edx
cmp eax, edx
je 0x53744d
mov ecx, dword [ebp - 0x14]
cmp ecx, edx
jne 0x537567
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 0x53746a
mov ecx, dword [ebp - 0x14]
mov byte [ebx + 0x3d0], 0
mov byte [ebp - 0x21], 1
jmp 0x537675
mov al, byte [ebx + 0xc3]
test al, al
jne 0x537508
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 0x5374b4
mov cl, byte [ebx + 0xc7]
test cl, cl
je 0x5374ce
test eax, eax
jne 0x5374ce
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 0x53750e
mov edx, dword [ebx + 0x48]
mov esi, dword [ebx + 0x4c]
or edx, esi
jne 0x53750e
mov dl, byte [ebx + 0xc9]
test dl, dl
jne 0x537675
jmp 0x53750e
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x537567
cmp ecx, dword [ebp - 0x20]
jne 0x537567
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x53753c
mov al, byte [ebx + 0xc8]
test al, al
je 0x537567
mov eax, dword [ebx + 0x3d4]
test eax, eax
je 0x537567
mov al, byte [ebx + 0x3d1]
test al, al
je 0x537567
mov esi, dword [ebx + 0x68]
mov eax, ecx
cdq
add esi, eax
mov eax, dword [ebx + 0x6c]
adc eax, edx
cmp eax, edi
jl 0x537418
jg 0x53755c
cmp esi, dword [ebp - 0x1c]
jb 0x537418
mov eax, dword [ebp - 0x1c]
or eax, edi
je 0x537418
mov al, byte [ebx + 0xc3]
test al, al
jne 0x537418
jmp 0x537675
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov al, byte [ebx + 0xc5]
test al, al
jne 0x537594
mov al, byte [ebx + 0xc7]
test al, al
je 0x5375b0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x5375bb
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 0x537675
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x537675
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x537675
test ecx, ecx
jne 0x537675
mov edx, dword [ebx + 0x6c]
cmp edx, edi
jl 0x5375f1
jg 0x5375e9
mov eax, dword [ebx + 0x68]
cmp eax, esi
jb 0x5375f1
or esi, edi
jne 0x537bd5
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 0x53765a
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jl 0x537619
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 0x537670
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 0x537b6b
cmp dword [ebp - 0x38], 2
je 0x53791a
mov al, byte [ebx + 0xc8]
test al, al
je 0x5376f6
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.00536500
mov cl, byte [ebx + 0xc5]
mov dword [ebp - 0x28], eax
test cl, cl
jne 0x5376cf
mov cl, byte [ebx + 0xc7]
test cl, cl
je 0x537917
cmp eax, esi
jne 0x5376e9
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 0x53791a
lea edx, [ebp + 0xc]
lea esi, [ebx + 0x42c]
push edx
push esi
push ecx
mov ecx, ebx
mov dword [ebp + 0xc], 0
call fcn.00537c60
test eax, eax
je 0x5377f7
mov eax, dword [ebp + 0xc]
cmp eax, 0xfffffff6
jne 0x53759d
mov eax, dword [ebp - 0x14]
add eax, 0x30
push eax
call fcn.005dd58d
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
jne 0x537752
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 0x5377ca
jg 0x53779f
mov eax, dword [ebp - 0x1c]
test eax, eax
jbe 0x5377ca
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 0x5377c5
mov eax, dword [ebp - 0x1c]
jg 0x5377c1
cmp ecx, eax
jbe 0x5377c5
sub eax, edi
jmp 0x5377cc
mov eax, dword [ebp - 0x34]
jmp 0x5377cc
mov eax, esi
cmp eax, esi
jge 0x5377d5
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.0053cd20
push esi
mov dword [ebp - 0x28], eax
call fcn.005dd5b6
add esp, 4
jmp 0x537917
mov al, byte [ebx + 0xc5]
test al, al
je 0x53787b
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 0x53786e
lea ecx, [ebp - 0x14]
push ecx
mov ecx, ebx
call fcn.00536de0
test eax, eax
jne 0x537862
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.00534940
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], ecx
jmp 0x53792e
mov al, byte [ebx + 0xc7]
test al, al
je 0x537903
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 0x5378f9
lea ecx, [ebp - 0x14]
push ecx
mov ecx, ebx
call fcn.00536d90
test eax, eax
jne 0x5378e6
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.00534940
mov byte [ebx + 0xc6], 0
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], ecx
jmp 0x53792e
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
push edx
push eax
push esi
lea ecx, [ebx + 0x10]
call fcn.0053cd20
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x537aab
cmp ecx, dword [ebp - 0x20]
jne 0x537aab
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 0x5379d4
mov ecx, dword [ebx + 0x64]
mov edx, dword [ebx + 0x60]
test ecx, ecx
jl 0x5379d4
jg 0x53799d
test edx, edx
jbe 0x5379d4
fld qword [ebx + 0xd8]
fcomp qword [0x6197c8]
fnstsw ax
test ah, 0x41
jne 0x5379d4
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.005c652c
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 0x537a92
mov edi, dword [esi + 0x444]
test edi, edi
mov dword [ebp + 8], edi
je 0x537a6b
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 [0x63a7d8]
call fcn.005c6fe0
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 0x537a74
fild dword [ebp + 0xc]
fst qword [esi + 0x418]
fcom qword [esi + 0x438]
fnstsw ax
test ah, 0x41
jne 0x537a89
fstp qword [esi + 0x438]
jmp 0x537a8b
fstp st(0)
inc edi
mov dword [esi + 0x444], edi
mov ecx, ebx
call fcn.005364e0
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0xa4], 0
jmp 0x53759b
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.005c5558
add esp, 0x14
lea eax, [ebp - 0x104]
mov ecx, ebx
push eax
call fcn.00534940
cmp esi, 5
jne 0x537af5
mov ecx, dword [0x6cfd2c]
push ecx
mov ecx, dword [ebx + 0x9c]
call fcn.0053c5b0
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.00538730
test eax, eax
je 0x537b41
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.0053c910
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 0x537bd5
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.005c5558
add esp, 0x10
cmp esi, 0x2733
je 0x537bb5
mov eax, dword [0x6cffbc]
push 1
push eax
mov ecx, ebx
call fcn.00534870
lea ecx, [ebp - 0x84]
push ecx
mov ecx, ebx
call fcn.00534940
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 0x53759b
test ecx, ecx
jne 0x53759b
cmp dword [ebp - 0x38], 2
jne 0x537bf9
mov al, byte [ebp - 0x21]
test al, al
je 0x53759b
mov edx, dword [0x6cffb8]
push 1
push edx
mov ecx, ebx
call fcn.00534870
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