Function at 0x47d820
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x20]
push ebx
push esi
push edi
mov ebx, eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
xor eax, eax
push fcn.0047d800
push ebp
push 0x4135b0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x60], 0xffffffff
jne 0x47d878
mov ecx, dword [str.Socket_not_connected]
mov edx, 1
mov eax, 0x5158e0
call fcn.0046c220
mov edx, 0x47d857
mov ecx, ebp
call fcn.00413470
push 4
lea eax, [ebp + 8]
push eax
push esi
push edi
push dword [ebx + 0x60]
call sub.wsock32.dll_setsockopt
test eax, eax
je 0x47d90c
call fcn.0047af30
mov dword [ebx + 0x28], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 0x28]
lea edx, [ebp - 0x20]
call fcn.004335b0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0xb
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebx + 0x28]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
lea edx, [ebp - 0x1c]
mov eax, dword [str.Error_on_setting_socket_options:_r_n_s._r_nSocket_Error_Code:__d___X_]
mov ecx, 2
call fcn.0042a260
mov edx, dword [ebp - 4]
lea eax, [ebx + 0x24]
call fcn.00407f40
push dword [ebx + 0x28]
mov ecx, dword [ebx + 0x24]
mov edx, 1
mov eax, 0x5158e0
call fcn.0046c2e0
mov edx, 0x47d8eb
mov ecx, ebp
call fcn.00413470
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0047d800
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x24]
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 8], 0
xor eax, eax
push fcn.0047d9a0
push ebp
push 0x4135b0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 4]
push dword [eax + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax - 4]
mov eax, dword [eax - 8]
add eax, edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0xc]
push dword [eax + 0x60]
call sub.wsock32.dll_recv
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x47daa4
cmp byte [0x4e9830], 0
jne 0x47daa0
call fcn.0047af30
mov edx, dword [ebp - 4]
mov edx, dword [edx - 0xc]
mov dword [edx + 0x28], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x28]
lea edx, [ebp - 0x24]
call fcn.004335b0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0xb
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x20]
mov eax, dword [str.Error_on_data_reading_from_the_connection:_r_n_s._r_nSocket_Error_Code:__d___X_]
mov ecx, 2
call fcn.0042a260
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0xc]
add eax, 0x24
call fcn.00407f40
nop
xor ebx, ebx
mov esi, esi
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0047d9a0
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret