Function at 0x57e660
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x609050
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
push edi
mov al, byte [ebx + 0x31e6]
mov dword [ebp - 0x10], esp
test al, al
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0
jne 0x57e762
mov eax, dword [ebx + 0xb0]
mov edi, 5
lea esi, [ebx + 0x180]
cmp dword [eax + 0x24], edi
jne 0x57e6bd
push 1
push esi
mov ecx, ebx
call fcn.0057dfd0
jmp 0x57e6ce
mov ecx, dword [ebx + 0x31d0]
push 0
push 1
push esi
push ecx
call sub.WS2_32.dll_recv
push str.recv_first_byte
push eax
mov ecx, ebx
call fcn.00532c00
mov ecx, eax
test ecx, ecx
je 0x57e6fd
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x31e6], 1
mov edx, dword [0x6c826c]
mov dword [ebp - 0x14], edx
movsx eax, byte [esi]
push eax
lea ecx, [ebp - 0x14]
push str.recv_handshake__type___02X_n
push ecx
mov byte [ebp - 4], 1
call fcn.005d809b
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.00532b50
mov ecx, ebx
call fcn.0057d730
test eax, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
je 0x57e75b
call fcn.005df266
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
call fcn.005df266
jmp 0x57e767
mov edi, 5
mov eax, dword [ebx + 0x31f4]
test eax, eax
jne 0x57e784
push 0x600
call fcn.005db66d
add esp, 4
mov dword [ebx + 0x31f4], eax
mov eax, dword [ebx + 0x31f8]
test eax, eax
jne 0x57e7a1
push 0x600
call fcn.005db66d
add esp, 4
mov dword [ebx + 0x31f8], eax
mov ecx, dword [ebx + 0x31f4]
test ecx, ecx
je 0x57eab8
mov eax, dword [ebx + 0x31f8]
test eax, eax
je 0x57eab8
mov al, byte [ebx + 0x31e7]
test al, al
jne 0x57e8ee
mov eax, dword [ebx + 0xb0]
mov edx, dword [eax + 0x24]
mov eax, dword [ebx + 0x3200]
cmp edx, edi
jne 0x57e7f2
mov edx, 0x600
sub edx, eax
add eax, ecx
push edx
push eax
mov ecx, ebx
call fcn.0057dfd0
jmp 0x57e80b
mov edx, 0x600
push 0
sub edx, eax
add eax, ecx
push edx
push eax
mov eax, dword [ebx + 0x31d0]
push eax
call sub.WS2_32.dll_recv
mov esi, eax
push str.recv_handshake_p1
push esi
mov ecx, ebx
call fcn.00532c00
mov ecx, eax
test ecx, ecx
je 0x57e83c
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, ecx
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 + 0x3200]
add ecx, esi
mov eax, ecx
mov dword [ebx + 0x3200], ecx
cmp eax, 0x600
jge 0x57e866
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 byte [ebx + 0x31e7], 1
mov ecx, dword [0x6c826c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebx + 0x31f4]
mov byte [ebp - 4], 2
mov eax, dword [edx]
push eax
call sub.WS2_32.dll_ntohl
mov ecx, dword [ebx + 0x31f4]
movsx edx, byte [ecx + 7]
push edx
movsx edx, byte [ecx + 6]
push edx
movsx edx, byte [ecx + 5]
movsx ecx, byte [ecx + 4]
push edx
push ecx
push eax
lea edx, [ebp - 0x18]
push str.Server_time:__ld_nVersion:__d._d._d._d_n
push edx
call fcn.005d809b
mov eax, dword [ebp - 0x18]
add esp, 0x1c
mov ecx, ebx
push eax
call fcn.00532b50
mov ecx, ebx
call fcn.0057d730
test eax, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
je 0x57e8e9
call fcn.005df266
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
call fcn.005df266
mov ecx, dword [ebx + 0xb0]
mov eax, dword [ecx + 0x24]
cmp eax, edi
mov eax, dword [ebx + 0x3204]
jne 0x57e91b
mov edx, 0x600
mov ecx, ebx
sub edx, eax
push edx
mov edx, dword [ebx + 0x31f8]
add eax, edx
push eax
call fcn.0057dfd0
jmp 0x57e93a
mov edx, dword [ebx + 0x31f8]
mov ecx, 0x600
sub ecx, eax
push 0
add eax, edx
mov edx, dword [ebx + 0x31d0]
push ecx
push eax
push edx
call sub.WS2_32.dll_recv
mov esi, eax
push str.recv_handshake_p2
push esi
mov ecx, ebx
call fcn.00532c00
mov ecx, eax
test ecx, ecx
je 0x57e96b
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, ecx
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 + 0x3204]
add ecx, esi
mov eax, ecx
mov dword [ebx + 0x3204], ecx
cmp eax, 0x600
jge 0x57e995
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 esi, dword [ebx + 0x31fc]
mov edi, dword [ebx + 0x31f8]
inc esi
mov ecx, 0x180
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
sete al
test al, al
jne 0x57e9be
push str.Part2_of_server_handshake_does_not_match__n
mov ecx, ebx
call fcn.00532b50
mov ecx, dword [ebx + 0xb0]
cmp dword [ecx + 0x24], 5
jne 0x57e9d5
mov ecx, ebx
call fcn.0057f2a0
xor esi, esi
jmp 0x57e9fd
mov edx, dword [ebx + 0x31f4]
mov eax, dword [ebx + 0x31d0]
xor esi, esi
push str.send_handshake_2_
push esi
push 0x600
push edx
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, ebx
call fcn.00532c00
cmp eax, esi
jne 0x57eabd
mov eax, dword [ebx + 0x31fc]
mov byte [ebp - 4], 3
push eax
call fcn.005db696
mov eax, dword [ebx + 0x31f4]
add esp, 4
push eax
call fcn.005db696
mov eax, dword [ebx + 0x31f8]
add esp, 4
push eax
call fcn.005db696
add esp, 4
jmp 0x57ea43
mov ecx, dword [ebx + 0xb0]
mov dword [ebx + 0x31fc], esi
mov dword [ebx + 0x31f4], esi
mov dword [ebx + 0x31f8], esi
mov eax, dword [ecx + 0x24]
mov dword [ebp - 4], esi
cmp eax, 5
jne 0x57ea79
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, ebx
call fcn.0057f2a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret