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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba8
push ebx
push esi
push edi
mov dword [ebp - 0x3c], edx
mov edi, eax
mov eax, 0x4c26f4
call fcn.00479eb8
xor ebx, ebx
mov byte [ebp - 0x3d], 0
push edi
mov esi, 0x4c1744
lea edi, [ebp - 0x58]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
pop edi
lea esi, [ebp + ebx - 0x58]
cmp ebx, 0xf
jge 0x416549
push 0
lea eax, [ebp - 0x3d]
push 1
push eax
mov edx, dword [edi]
push edx
call sub.WSOCK32.DLL_recv
inc eax
jne 0x41653d
call sub.WSOCK32.DLL_WSAGetLastError
push eax
push 0x4c20a4
mov ecx, dword [0x4ea064]
push ecx
call fcn.0040f424
add esp, 0xc
xor eax, eax
mov edx, dword [ebp - 0x38]
mov dword fs:[0], edx
jmp 0x4167b8
mov cl, byte [ebp - 0x3d]
inc ebx
mov byte [esi], cl
inc esi
cmp ebx, 0xf
jl 0x4164ff
mov eax, dword [0x4c1758]
mov dword [ebp - 0x44], eax
mov dl, byte [ebp - 0x4f]
mov byte [ebp - 0x44], dl
mov cl, byte [ebp - 0x4e]
mov byte [ebp - 0x43], cl
mov al, byte [ebp - 0x4d]
mov byte [ebp - 0x42], al
lea edx, [ebp - 0x44]
push edx
call fcn.00480dbc
pop ecx
cmp eax, 0xc8
je 0x41659c
lea ecx, [ebp - 0x44]
mov eax, dword [0x4ea064]
push ecx
push str.server_state_error__s
push eax
call fcn.0040f424
add esp, 0xc
xor eax, eax
mov edx, dword [ebp - 0x38]
mov dword fs:[0], edx
jmp 0x4167b8
lea ecx, [ebp - 0x44]
mov eax, dword [0x4ea064]
push ecx
push str.server_state__s
push eax
call fcn.0040f424
add esp, 0xc
mov esi, 0x4c175c
mov ecx, 0x100
lea eax, [ebp - 0x458]
push edi
lea edi, [ebp - 0x458]
rep movsd dword es:[edi], dword [esi]
pop edi
push 0
push 0x400
push eax
mov edx, dword [edi]
push edx
call sub.WSOCK32.DLL_recv
inc eax
jne 0x41660b
call sub.WSOCK32.DLL_WSAGetLastError
push eax
push str.socket_error__d
mov ecx, dword [0x4ea064]
push ecx
call fcn.0040f424
add esp, 0xc
xor eax, eax
mov edx, dword [ebp - 0x38]
mov dword fs:[0], edx
jmp 0x4167b8
cmp dword [ebp - 0x3c], 0
jne 0x41679e
lea edx, [ebp - 0x458]
mov eax, edi
call fcn.00415bec
mov word [ebp - 0x28], 0x14
lea edx, [ebp - 0x458]
lea eax, [ebp - 4]
call fcn.00488be4
inc dword [ebp - 0x1c]
xor ecx, ecx
mov word [ebp - 0x28], 8
mov word [ebp - 0x28], 0x20
mov dword [ebp - 8], ecx
lea edx, [ebp - 8]
inc dword [ebp - 0x1c]
lea eax, [ebp - 4]
call fcn.0048901c
mov word [ebp - 0x28], 8
mov word [ebp - 0x28], 0x2c
mov edx, 0x4c20ea
lea eax, [ebp - 0xc]
call fcn.00488be4
inc dword [ebp - 0x1c]
lea edx, [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.00488f70
mov ebx, eax
dec dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00488dd0
mov word [ebp - 0x28], 8
mov word [ebp - 0x28], 0x38
mov edx, 0x4c20f0
lea eax, [ebp - 0x10]
call fcn.00488be4
inc dword [ebp - 0x1c]
lea edx, [ebp - 0x10]
lea eax, [ebp - 8]
call fcn.00488f70
mov esi, eax
dec dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00488dd0
mov word [ebp - 0x28], 8
test ebx, ebx
je 0x416776
test esi, esi
je 0x416776
sub esi, ebx
cmp esi, 0xa
jge 0x416776
push str.get_info_ok___r_n
mov ecx, dword [0x4ea064]
push ecx
call fcn.0040f424
mov word [ebp - 0x28], 0x44
add esp, 8
xor eax, eax
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x14]
push edx
inc dword [ebp - 0x1c]
cmp dword [ebp - 4], 0
je 0x41671f
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx - 4]
jmp 0x416721
xor ecx, ecx
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0048912c
lea edx, [ebp - 0x14]
lea eax, [edi + 0x1c]
call fcn.00488e00
dec dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00488dd0
mov al, 1
mov edx, 2
push eax
lea eax, [ebp - 8]
dec dword [ebp - 0x1c]
call fcn.00488dd0
dec dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x38]
mov dword fs:[0], edx
jmp 0x4167b8
dec dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00488dd0
mov word [ebp - 0x28], 0
jmp 0x4167ac
mov al, 1
mov edx, dword [ebp - 0x38]
mov dword fs:[0], edx
jmp 0x4167b8
xor eax, eax
mov edx, dword [ebp - 0x38]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret