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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62b1d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0xb4]
mov dword [ebp - 0x10], esp
test eax, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0
je 0x56507c
mov eax, dword [eax + 0x10]
jmp 0x565085
mov eax, dword [ebx + 0xb0]
mov eax, dword [eax + 0x24]
cmp eax, 2
jne 0x5653e5
cmp dword [ebx + 0x8c], 0x10
je 0x5653e5
mov eax, dword [ebx + 0x3438]
test eax, eax
je 0x5650bf
mov ecx, dword [ebx + 0x343c]
push ecx
push 0xa
push eax
call fcn.005e7390
add esp, 0xc
test eax, eax
jne 0x565191
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx]
xor esi, esi
mov edi, 0x80090318
cmp eax, 0x2733
je 0x5650e1
mov cl, byte [ebx + 0xc3]
test cl, cl
je 0x565189
cmp esi, 5
jge 0x565189
mov eax, dword [ebx + 0x184]
test eax, eax
je 0x56512c
mov cl, byte [eax + 0x137]
test cl, cl
je 0x56512c
mov eax, dword [ebx + 0x3444]
test eax, eax
je 0x56512c
mov ecx, dword [ebx + 0x33cc]
test ecx, ecx
je 0x56511a
cmp dword [ebx + 0x3374], edi
jne 0x56517d
mov ecx, dword [eax + 0x33cc]
test ecx, ecx
je 0x56512c
cmp dword [eax + 0x3374], edi
jne 0x56517d
mov al, byte [ebx + 0xc3]
test al, al
jne 0x56517d
mov eax, dword [ebx + 0x31e0]
push 0x3c
push eax
mov ecx, ebx
call fcn.0054e130
mov ecx, dword [ebx + 0x31e8]
test ecx, ecx
je 0x565175
mov edx, dword [ecx + 0x1c]
test edx, edx
je 0x565175
add ecx, 0x28
call fcn.0054a920
mov eax, 0x7540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x5653d4
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx]
inc esi
jmp 0x5650cc
test eax, eax
jne 0x5653d4
mov eax, dword [ebx + 0x343c]
test eax, eax
jne 0x56529a
mov al, byte [ebx + 0x3d8]
test al, al
je 0x56552b
mov ecx, dword [ebx + 0xb0]
mov byte [ebx + 0x3d8], 0
mov al, byte [ecx + 0x306]
test al, al
jne 0x565284
mov eax, dword [ebx + 0x184]
test eax, eax
je 0x5651f6
mov dl, byte [eax + 0x137]
test dl, dl
je 0x5651f6
mov edx, dword [ebx + 0x3444]
test edx, edx
je 0x5651f6
mov dl, byte [eax + 0x138]
lea eax, [ecx + 0x15c]
test dl, dl
je 0x5651fc
lea eax, [ecx + 0x158]
mov ecx, dword [eax]
test ecx, ecx
jne 0x56522a
push str.Try_SSL3_r_n
mov ecx, ebx
mov dword [eax], 1
call fcn.0054c4f0
mov eax, 0x757e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 1
jne 0x565257
push str.Try_TLS1_r_n
mov ecx, ebx
mov dword [eax], 2
call fcn.0054c4f0
mov eax, 0x757e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 2
jne 0x565284
push str.Try_SSL3_old_r_n
mov ecx, ebx
mov dword [eax], 3
call fcn.0054c4f0
mov eax, 0x757e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
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
push eax
mov eax, dword [ebx + 0x3438]
push 0xa
push eax
call fcn.005e7390
add esp, 0xc
test eax, eax
jne 0x5652c6
mov eax, 0x2733
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x322c]
mov edx, dword [ebx + 0x3228]
push ecx
push 0
push edx
call fcn.005e7390
mov ecx, dword [ebx + 0x3228]
mov edx, dword [ebx + 0x3438]
add esp, 0xc
sub eax, ecx
mov esi, eax
mov al, byte [edx]
mov dword [ebp - 0x1c], edx
mov edi, 1
mov byte [ecx + esi], al
mov eax, dword [ebx + 0x3228]
cmp byte [eax + esi], 0xa
je 0x5653a5
inc esi
mov byte [eax + esi], 0
mov ecx, dword [ebx + 0x322c]
lea eax, [ecx - 1]
cmp esi, eax
jl 0x565360
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [ebx + 0x3228]
mov dword [ebx + 0x322c], eax
inc eax
push eax
push ecx
call fcn.005e7f27
add esp, 8
mov dword [ebx + 0x3228], eax
test eax, eax
jne 0x56535d
mov eax, 0x753b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x1c]
cmp edi, dword [ebx + 0x343c]
jne 0x565393
mov edx, dword [ebx + 0x3228]
mov dword [ebx + 0x343c], 0
mov eax, 0x7533
mov byte [edx + esi + 1], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x3228]
mov cl, byte [edx + edi]
inc edi
mov byte [eax + esi], cl
jmp 0x5652fb
mov edx, dword [ebx + 0x3228]
mov byte [edx + esi + 1], 0
mov eax, dword [ebx + 0x343c]
sub eax, edi
mov dword [ebx + 0x343c], eax
mov ebx, dword [ebx + 0x3438]
push eax
lea eax, [ebx + edi]
push eax
push ebx
call fcn.005e7440
add esp, 0xc
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
mov ecx, dword [ebx + 0x322c]
mov edx, dword [ebx + 0x3228]
push ecx
push 0
push edx
call fcn.005e7390
mov ecx, dword [ebx + 0x3228]
add esp, 0xc
sub eax, ecx
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x1c], eax
mov edx, dword [ebx + 0x38c]
test edx, edx
jle 0x565541
mov ecx, dword [ebx + 0x388]
mov eax, 0x200
sub eax, ecx
mov esi, edx
cmp edx, eax
jl 0x56542f
mov esi, eax
push esi
lea eax, [ecx + ebx + 0x188]
push 0xa
push eax
call fcn.005e7390
add esp, 0xc
test eax, eax
je 0x565457
mov edx, dword [ebx + 0x388]
sub eax, ebx
sub eax, edx
sub eax, 0x187
jmp 0x565459
mov eax, esi
mov ecx, dword [ebx + 0x322c]
mov esi, dword [ebp - 0x1c]
mov edx, ecx
mov dword [ebp - 0x18], eax
sub edx, esi
dec edx
cmp eax, edx
jl 0x5654a9
lea eax, [ecx + eax + 1]
mov dword [ebx + 0x322c], eax
inc eax
push eax
mov eax, dword [ebx + 0x3228]
push eax
call fcn.005e7f27
add esp, 8
mov dword [ebx + 0x3228], eax
test eax, eax
jne 0x5654a9
mov eax, 0x753b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x388]
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebx + 0x3228]
mov eax, dword [ebp - 0x1c]
lea esi, [ebx + edx + 0x188]
mov edx, ecx
add edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx + 0x388]
mov ecx, edx
mov edx, dword [ebx + 0x38c]
add eax, ecx
add esi, ecx
sub edx, ecx
mov ecx, dword [ebx + 0x3228]
mov dword [ebx + 0x388], esi
mov dword [ebx + 0x38c], edx
mov dword [ebp - 0x1c], eax
mov byte [ecx + eax], 0
mov edx, dword [ebx + 0x3228]
cmp byte [edx + eax - 1], 0xa
je 0x5653d2
mov al, byte [ebp - 0x11]
test al, al
je 0x565541
mov eax, dword [ebx + 0x31e0]
push 0
push eax
mov ecx, ebx
call fcn.0054e130
test eax, eax
je 0x565541
mov eax, 0x7533
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x184]
test eax, eax
je 0x5655a4
mov cl, byte [eax + 0x137]
test cl, cl
je 0x5655a4
mov ecx, dword [ebx + 0x3444]
test ecx, ecx
je 0x5655a4
mov eax, dword [ebx + 0x31e0]
push 0
lea edx, [ebx + 0x188]
push 0x200
push edx
push eax
call fcn.00564cd0
mov ecx, dword [ebx + 0x31e8]
mov esi, eax
mov eax, dword [ecx + 0x140]
test eax, eax
jne 0x5653d4
mov dword [ebx + 0x388], eax
mov dword [ebx + 0x38c], esi
mov byte [ebp - 0x11], 1
jmp 0x56540c
mov edx, dword [ebx + 0x31e0]
lea edi, [ebx + 0x188]
push 0
push 0x200
push edi
push edx
call sub.WS2_32.dll_recv
mov esi, eax
push str.recv_next_line
push esi
mov ecx, ebx
call fcn.0054c5b0
cmp eax, 0x2733
jne 0x565587
mov eax, dword [ebx + 0x31e0]
push 0
push 0x200
push edi
push eax
jmp 0x5655b9