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

Disassembly:
mov eax, 0x1070
call fcn.005d9990
mov eax, dword [0x68d418]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1080]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x5483fe
cmp eax, esi
je 0x548422
mov eax, dword [eax + 0xd1c]
cmp eax, ebx
jne 0x5483f0
cmp dword [esi + 0xcb4], 3
jne 0x548776
push ebx
push esi
call fcn.00546370
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1070
ret
cmp dword [esi + 0xd10], ebx
mov eax, dword [esi + 0xcb4]
je 0x54844d
cmp eax, ebx
jne 0x548451
push esi
call fcn.00547ff0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1070
ret
cmp eax, ebx
je 0x5483fe
mov edi, dword [esi + 0xd18]
push edi
call fcn.00508aa0
add esp, 4
test eax, eax
je 0x5483fe
mov eax, dword [esi + 0xcb4]
cmp eax, 1
mov dword [esi + 0xc04], 1
mov dword [esi + 0xce0], ebx
jne 0x548517
lea eax, [esi + 0x7cc]
push eax
push esi
mov dword [esi + 0xcb4], 2
call fcn.00545960
push ecx
mov ecx, dword [edi + 0x31fc]
fstp qword [esp]
imul ecx, ecx, 0x132
lea edx, [ecx + edi + 0x2e66]
push edx
lea eax, [esp + 0x28]
push str.120__s__0.0Lf__s_n
push eax
call fcn.005d9929
lea eax, [esp + 0x30]
add esp, 0x18
lea edx, [eax + 1]
jmp 0x5484d0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5484d0
push ebx
sub eax, edx
mov edx, dword [esi + 0xd14]
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_send]
mov eax, dword [0x6a0f40]
mov ecx, dword [esi + 0xd14]
push 0x21
push 0x8014
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1070
ret
cmp eax, 2
je 0x548525
cmp eax, 3
jne 0x5483fe
mov edx, dword [0x6a0f40]
mov eax, dword [esi + 0xd14]
push ebx
push ebx
push edx
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
push ebx
lea ecx, [esp + 0x1c]
push 0x1068
push ecx
call fcn.00423310
add esp, 8
push eax
mov eax, dword [esi + 0xd14]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
je 0x5483fe
cmp eax, ebx
jle 0x5483fe
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + eax + 0x1c], bl
call fcn.005076e0
add esp, 4
test eax, eax
je 0x5483fe
cmp byte [esp + 0x18], 0x20
lea ebp, [esp + 0x18]
jne 0x54859e
mov al, byte [ebp + 1]
inc ebp
cmp al, 0x20
je 0x548596
cmp byte [ebp], bl
je 0x5483fe
push 0x20
push ebp
call fcn.005d9b20
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x5483fe
mov byte [edi], bl
mov al, byte [edi + 1]
inc edi
cmp al, 0x20
jne 0x5485ce
mov al, byte [edi + 1]
inc edi
cmp al, 0x20
je 0x5485c6
cmp byte [edi], bl
je 0x5483fe
push 0x20
push edi
call fcn.005d9b20
add esp, 8
cmp eax, ebx
je 0x548649
mov byte [eax], bl
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x20
jne 0x5485f9
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x20
je 0x5485f0
cmp byte [eax], bl
je 0x548649
push eax
call fcn.005da144
push ecx
fstp qword [esp]
call fcn.0051c330
fstp qword [esp + 0x18]
add esp, 8
fld qword [esp + 0x10]
mov eax, dword [esp + 0x14]
fcomp qword [0x5f56a0]
mov edx, dword [esp + 0x10]
mov dword [esi + 0xc4c], eax
mov dword [esi + 0xc48], edx
fnstsw ax
test ah, 5
jp 0x548649
mov dword [esi + 0xc48], ebx
mov dword [esi + 0xc4c], ebx
jmp 0x5483fe
push edi
call fcn.00507720
add esp, 4
test eax, eax
je 0x5483fe
push ebp
call fcn.005d9a55
mov ecx, dword [esi + 0xcb4]
add esp, 4
cmp ecx, 3
mov dword [esi + 0xcb8], eax
jne 0x5486e3
cmp eax, 0x84
jne 0x5483fe
lea ecx, [esi + 0x7cc]
push ecx
lea edx, [esi + 4]
push edx
lea eax, [esp + 0x20]
push str.Send__s__s
push eax
call fcn.005d9929
mov ecx, dword [0x68e9f8]
push esi
mov dword [0x6a0f90], ecx
mov edx, dword [esi + 0xd18]
push edx
push 1
push 1
lea eax, [esp + 0x38]
push 3
push eax
call fcn.00596330
add esp, 0x28
cmp eax, ebx
mov dword [esi], eax
je 0x5483fe
push esi
call fcn.00547ff0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1070
ret
cmp eax, 0x79
jne 0x5483fe
lea ebp, [esi + 4]
mov edx, ebp
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x5486f5
mov ecx, dword [esi]
push ecx
call fcn.0058ea30
add esp, 4
cmp eax, ebx
je 0x548746
lea edi, [esi + 0x7cc]
push edi
push ebp
add eax, 8
push str.Send__s__s
push eax
call fcn.005d9929
push edi
push ebp
lea edx, [esp + 0x30]
push str.Send__s__s
push edx
call fcn.005d9929
mov ecx, dword [esi]
add esp, 0x20
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [0x6a0f38]
push edx
call fcn.00554f60
push ebx
mov dword [0x6a0f38], eax
call fcn.0055f1c0
push esi
call fcn.00547ff0
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1070
ret
push 0x5f4c90
push ebx
push esi
call fcn.00546ec0
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1070
ret