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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60b490
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 0x538ece
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 0x538ed4
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov ecx, esi
or ecx, edi
jne 0x538f26
mov eax, dword [ebx + 0xb0]
cmp dword [eax + 0x2e8], edx
je 0x538f26
mov cl, byte [eax + 0x2ec]
test cl, cl
je 0x538f26
mov eax, dword [ebx + 0x64]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x60]
cmp eax, edx
jl 0x538f26
jg 0x538f06
cmp ecx, dword [ebx + 0x50]
jb 0x538f26
mov dl, byte [ebx + 0xc8]
test dl, dl
jne 0x538f26
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 0x538f5c
mov eax, dword [ebx + 0x174]
mov edx, dword [ebx + 0x178]
sub eax, edx
test eax, eax
jle 0x538f55
mov cl, byte [ebx + 0xc6]
test cl, cl
je 0x538f55
cdq
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
jmp 0x538f5c
mov byte [ebx + 0xc7], 0
mov eax, dword [ebx + 0xb0]
mov ecx, dword [eax + 0x31c]
test ecx, ecx
je 0x538fae
mov edx, dword [ebx + 0x60]
mov eax, dword [ebx + 0x64]
mov ecx, edx
or ecx, eax
je 0x538fae
mov eax, esi
mov ecx, edi
sub eax, 1
sbb ecx, 0
cmp edx, eax
jne 0x538fae
cmp dword [ebx + 0x64], ecx
jne 0x538fae
mov edx, esi
or edx, edi
je 0x538fae
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 0x538fe1
mov eax, esi
or eax, edi
je 0x538fe1
push str.Completed0._n
mov ecx, ebx
call fcn.005366c0
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 0x538ff4
cmp eax, 0x2da0
jg 0x539025
mov dword [ebp + 0x10], eax
jmp 0x53902c
test ecx, ecx
jl 0x539025
jg 0x538ffe
test edx, edx
jbe 0x539025
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 0x539025
jg 0x53901b
cmp ecx, dword [ebp - 0x1c]
jbe 0x539025
mov eax, dword [ebp - 0x1c]
sub eax, edx
mov dword [ebp + 0x10], eax
jmp 0x53902c
mov dword [ebp + 0x10], 0x2da0
mov eax, dword [ebp + 0x10]
mov byte [ebx + 0xc5], 0
test eax, eax
jne 0x5390eb
mov al, byte [ebx + 0xc4]
test al, al
je 0x5390eb
mov ecx, esi
or ecx, edi
je 0x5390eb
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 0x53909d
jg 0x53908d
cmp eax, esi
jbe 0x53909d
mov eax, dword [ebx + 0x48]
mov edx, dword [ebx + 0x60]
sub eax, edx
sub eax, 2
mov dword [ebp + 0x10], eax
jmp 0x5390a0
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x5390c5
push str.Completed02._n
mov ecx, ebx
call fcn.005366c0
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 0x5390eb
push str.Completed02b._n
mov ecx, ebx
call fcn.005366c0
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 0x5390fa
mov eax, dword [eax + 0x10]
jmp 0x539103
mov eax, dword [ebx + 0xb0]
mov eax, dword [eax + 0x24]
cmp eax, 2
mov dword [ebp - 0x38], eax
jne 0x539386
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 0x5392fa
cmp ecx, dword [ebp - 0x20]
jne 0x5392fa
cmp dword [ebp + 0xc], esi
je 0x5392fa
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 0x539198
mov esi, dword [ebp - 0x1c]
jg 0x53916b
cmp eax, esi
jb 0x539198
mov edi, esi
or edi, dword [ebp - 0x18]
je 0x539195
mov edi, dword [ebp - 0x18]
cmp eax, esi
jne 0x539300
cmp edx, edi
jne 0x539300
mov al, byte [ebx + 0xc5]
test al, al
je 0x53930a
jmp 0x539198
mov edi, dword [ebp - 0x18]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx]
xor edx, edx
cmp eax, edx
je 0x5391cd
mov ecx, dword [ebp - 0x14]
cmp ecx, edx
jne 0x5392e7
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 0x5391ea
mov ecx, dword [ebp - 0x14]
mov byte [ebx + 0x3d0], 0
mov byte [ebp - 0x21], 1
jmp 0x5393f5
mov al, byte [ebx + 0xc3]
test al, al
jne 0x539288
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 0x539234
mov cl, byte [ebx + 0xc7]
test cl, cl
je 0x53924e
test eax, eax
jne 0x53924e
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 0x53928e
mov edx, dword [ebx + 0x48]
mov esi, dword [ebx + 0x4c]
or edx, esi
jne 0x53928e
mov dl, byte [ebx + 0xc9]
test dl, dl
jne 0x5393f5
jmp 0x53928e
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x5392e7
cmp ecx, dword [ebp - 0x20]
jne 0x5392e7
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x5392bc
mov al, byte [ebx + 0xc8]
test al, al
je 0x5392e7
mov eax, dword [ebx + 0x3d4]
test eax, eax
je 0x5392e7
mov al, byte [ebx + 0x3d1]
test al, al
je 0x5392e7
mov esi, dword [ebx + 0x68]
mov eax, ecx
cdq
add esi, eax
mov eax, dword [ebx + 0x6c]
adc eax, edx
cmp eax, edi
jl 0x539198
jg 0x5392dc
cmp esi, dword [ebp - 0x1c]
jb 0x539198
mov eax, dword [ebp - 0x1c]
or eax, edi
je 0x539198
mov al, byte [ebx + 0xc3]
test al, al
jne 0x539198
jmp 0x5393f5
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
mov al, byte [ebx + 0xc5]
test al, al
jne 0x539314
mov al, byte [ebx + 0xc7]
test al, al
je 0x539330
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x53933b
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 0x5393f5
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x5393f5
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x5393f5
test ecx, ecx
jne 0x5393f5
mov edx, dword [ebx + 0x6c]
cmp edx, edi
jl 0x539371
jg 0x539369
mov eax, dword [ebx + 0x68]
cmp eax, esi
jb 0x539371
or esi, edi
jne 0x539955
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 0x5393da
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jl 0x539399
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 0x5393f0
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 0x5398eb
cmp dword [ebp - 0x38], 2
je 0x53969a
mov al, byte [ebx + 0xc8]
test al, al
je 0x539476
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.00538280
mov cl, byte [ebx + 0xc5]
mov dword [ebp - 0x28], eax
test cl, cl
jne 0x53944f
mov cl, byte [ebx + 0xc7]
test cl, cl
je 0x539697
cmp eax, esi
jne 0x539469
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 0x53969a
lea edx, [ebp + 0xc]
lea esi, [ebx + 0x42c]
push edx
push esi
push ecx
mov ecx, ebx
mov dword [ebp + 0xc], 0
call fcn.005399e0
test eax, eax
je 0x539577
mov eax, dword [ebp + 0xc]
cmp eax, 0xfffffff6
jne 0x53931d
mov eax, dword [ebp - 0x14]
add eax, 0x30
push eax
call fcn.005dfcbc
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
jne 0x5394d2
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 0x53954a
jg 0x53951f
mov eax, dword [ebp - 0x1c]
test eax, eax
jbe 0x53954a
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 0x539545
mov eax, dword [ebp - 0x1c]
jg 0x539541
cmp ecx, eax
jbe 0x539545
sub eax, edi
jmp 0x53954c
mov eax, dword [ebp - 0x34]
jmp 0x53954c
mov eax, esi
cmp eax, esi
jge 0x539555
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.0053eaa0
push esi
mov dword [ebp - 0x28], eax
call fcn.005dfce5
add esp, 4
jmp 0x539697
mov al, byte [ebx + 0xc5]
test al, al
je 0x5395fb
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 0x5395ee
lea ecx, [ebp - 0x14]
push ecx
mov ecx, ebx
call fcn.00538b60
test eax, eax
jne 0x5395e2
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.005366c0
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], ecx
jmp 0x5396ae
mov al, byte [ebx + 0xc7]
test al, al
je 0x539683
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 0x539679
lea ecx, [ebp - 0x14]
push ecx
mov ecx, ebx
call fcn.00538b10
test eax, eax
jne 0x539666
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.005366c0
mov byte [ebx + 0xc6], 0
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], ecx
jmp 0x5396ae
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
push edx
push eax
push esi
lea ecx, [ebx + 0x10]
call fcn.0053eaa0
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x53982b
cmp ecx, dword [ebp - 0x20]
jne 0x53982b
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 0x539754
mov ecx, dword [ebx + 0x64]
mov edx, dword [ebx + 0x60]
test ecx, ecx
jl 0x539754
jg 0x53971d
test edx, edx
jbe 0x539754
fld qword [ebx + 0xd8]
fcomp qword [0x61b7c8]
fnstsw ax
test ah, 0x41
jne 0x539754
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.005c8c6c
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 0x539812
mov edi, dword [esi + 0x444]
test edi, edi
mov dword [ebp + 8], edi
je 0x5397eb
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 [0x63c7d8]
call fcn.005c9720
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 0x5397f4
fild dword [ebp + 0xc]
fst qword [esi + 0x418]
fcom qword [esi + 0x438]
fnstsw ax
test ah, 0x41
jne 0x539809
fstp qword [esi + 0x438]
jmp 0x53980b
fstp st(0)
inc edi
mov dword [esi + 0x444], edi
mov ecx, ebx
call fcn.00538260
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0xa4], 0
jmp 0x53931b
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.005c7c98
add esp, 0x14
lea eax, [ebp - 0x104]
mov ecx, ebx
push eax
call fcn.005366c0
cmp esi, 5
jne 0x539875
mov ecx, dword [0x6d2024]
push ecx
mov ecx, dword [ebx + 0x9c]
call fcn.0053e330
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.0053a4b0
test eax, eax
je 0x5398c1
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.0053e690
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 0x539955
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.005c7c98
add esp, 0x10
cmp esi, 0x2733
je 0x539935
mov eax, dword [0x6d22b4]
push 1
push eax
mov ecx, ebx
call fcn.005365f0
lea ecx, [ebp - 0x84]
push ecx
mov ecx, ebx
call fcn.005366c0
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 0x53931b
test ecx, ecx
jne 0x53931b
cmp dword [ebp - 0x38], 2
jne 0x539979
mov al, byte [ebp - 0x21]
test al, al
je 0x53931b
mov edx, dword [0x6d22b0]
push 1
push edx
mov ecx, ebx
call fcn.005365f0
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