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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x419d08
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, 0x2834
call fcn.004175c0
mov eax, dword [0x4219cc]
xor eax, esp
mov dword [esp + 0x2830], eax
push ebx
push esi
push edi
mov eax, dword [0x4219cc]
xor eax, esp
push eax
lea eax, [esp + 0x2878]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov ecx, edi
mov dword [esp + 0x28], edi
call fcn.004161d0
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
push 0
push eax
push esi
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x416263
push 0x41d490
mov ecx, 0x425954
call dword [sym.imp.MFC80.DLL_Ordinal_784]
jmp 0x4166f2
xor esi, esi
push 0
mov ecx, 3
sub ecx, esi
push ecx
lea edx, [esp + esi + 0x44]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
add esi, eax
cmp esi, 3
jl 0x416265
movzx eax, byte [esp + 0x3c]
cmp eax, 1
je 0x4166b6
cmp eax, 2
je 0x4166b6
test eax, eax
jne 0x4166a4
movzx esi, word [esp + 0x3d]
push esi
mov ecx, edi
mov dword [esp + 0x24], esi
call fcn.00415e10
lea ecx, [edi + 0xc]
push esi
mov dword [esp + 0x20], ecx
call fcn.00415f40
test esi, esi
mov dword [esp + 0x10], 0
jle 0x41635f
xor esi, esi
push 0
mov eax, 2
sub eax, esi
push eax
lea ecx, [esp + esi + 0x44]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
add esi, eax
cmp esi, 2
jl 0x4162d1
movzx dx, byte [esp + 0x3c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
push eax
movzx edi, dx
call fcn.00415df0
movzx ecx, byte [esp + 0x3d]
mov dword [eax], ecx
xor esi, esi
movzx edi, di
push 0
mov edx, edi
sub edx, esi
push edx
lea eax, [esp + esi + 0x44]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
add esi, eax
cmp esi, edi
jl 0x416311
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x20]
shr edi, 1
push esi
mov word [esp + edi*2 + 0x44], 0
call fcn.00415df0
mov ecx, eax
call dword [sym.imp.MFC80.DLL_Ordinal_783]
add esi, 1
cmp esi, dword [esp + 0x20]
mov dword [esp + 0x10], esi
jl 0x4162cf
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
fldz
mov edi, dword [sym.imp.WS2_32.dll_recv]
fstp qword [esp + 0x30]
xor eax, eax
push eax
push 1
lea edx, [esp + 0x44]
push edx
push ebx
mov dword [esp + 0x2890], eax
mov dword [esp + 0x48], eax
call edi
cmp byte [esp + 0x3c], 0
je 0x41668b
jmp 0x4163a0
mov ecx, dword [esp + 0x28]
add ecx, 0x18
call fcn.00416130
mov esi, eax
mov eax, dword [esp + 0x20]
push eax
mov ecx, esi
mov dword [esp + 0x1c], esi
call fcn.00415f40
mov ecx, dword [esp + 0x28]
mov dword [esi + 0xc], ecx
xor esi, esi
cmp dword [esp + 0x20], esi
mov dword [esp + 0x10], esi
jle 0x416674
push 0
push 1
lea edx, [esp + 0x44]
push edx
push ebx
call edi
cmp byte [esp + 0x3c], 0
je case.0x41640d.4
mov ecx, dword [esp + 0x28]
push esi
call fcn.00415df0
mov eax, dword [eax]
add eax, 0xfffffffd
cmp eax, 0xc8
ja case.0x41640d.4
movzx eax, byte [eax + 0x416730]
jmp dword [eax*4 + 0x416718]
xor esi, esi
push 0
mov ecx, 4
sub ecx, esi
push ecx
lea edx, [esp + esi + 0x44]
push edx
push ebx
call edi
add esi, eax
cmp esi, 4
jl 0x416416
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
push eax
push 0x41c6c8
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00415ea0
push eax
call dword [sym.imp.MFC80.DLL_Ordinal_2322]
add esp, 0xc
jmp case.0x41640d.4
xor esi, esi
jmp 0x416460
push 0
mov edx, 2
sub edx, esi
push edx
lea eax, [esp + esi + 0x44]
push eax
push ebx
call edi
add esi, eax
cmp esi, 2
jl 0x416460
movzx esi, word [esp + 0x3c]
xor eax, eax
mov dword [esp + 0x1c], eax
jmp 0x41648a
mov eax, dword [esp + 0x1c]
push 0
mov ecx, esi
sub ecx, eax
push ecx
lea edx, [esp + eax + 0x44]
push edx
push ebx
call edi
mov ecx, dword [esp + 0x1c]
add ecx, eax
cmp ecx, esi
mov dword [esp + 0x1c], ecx
jl 0x416486
xor eax, eax
test esi, esi
jle 0x4164bc
lea ecx, [ecx]
xor byte [esp + eax + 0x3c], 0x31
add eax, 1
cmp eax, esi
jl 0x4164b0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x3c]
push eax
push ecx
mov ecx, dword [esp + 0x20]
shr esi, 1
mov word [esp + esi*2 + 0x44], 0
call fcn.00415ea0
mov ecx, eax
call dword [sym.imp.MFC80.DLL_Ordinal_783]
jmp case.0x41640d.4
xor esi, esi
push 0
mov edx, 8
sub edx, esi
push edx
lea eax, [esp + esi + 0x44]
push eax
push ebx
call edi
add esi, eax
cmp esi, 8
jl 0x4164e7
fld qword [esp + 0x3c]
push str._Y__m__d__H:_M:_S
lea ecx, [esp + 0x30]
fstp qword [esp + 0x34]
push ecx
lea ecx, [esp + 0x38]
call fcn.004063b0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push eax
push edx
mov byte [esp + 0x2888], 1
call fcn.00415ea0
mov ecx, eax
call dword [sym.imp.MFC80.DLL_Ordinal_781]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2880], 0
call dword [sym.imp.MFC80.DLL_Ordinal_578]
jmp case.0x41640d.4
xor esi, esi
push 0
mov eax, 8
sub eax, esi
push eax
lea ecx, [esp + esi + 0x44]
push ecx
push ebx
call edi
add esi, eax
cmp esi, 8
jl 0x416553
fld qword [esp + 0x3c]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
sub esp, 8
fstp qword [esp]
push 0x41d4ac
push edx
call fcn.00415ea0
push eax
call dword [sym.imp.MFC80.DLL_Ordinal_2322]
add esp, 0x10
jmp case.0x41640d.4
push 0x41bd85
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC80.DLL_Ordinal_784]
jmp 0x4165b6
mov edi, dword [sym.imp.WS2_32.dll_recv]
xor esi, esi
jmp 0x4165c0
push 0
mov eax, 2
sub eax, esi
push eax
lea ecx, [esp + esi + 0x44]
push ecx
push ebx
call edi
add esi, eax
cmp esi, 2
jl 0x4165c0
mov ecx, dword [esp + 0x3c]
test ecx, 0x8000
movzx eax, cx
je 0x4165f8
add ecx, 0x8000
mov byte [esp + 0x17], 1
movzx eax, cx
jmp 0x4165fd
mov byte [esp + 0x17], 0
xor esi, esi
movzx edi, ax
push 0
mov edx, edi
sub edx, esi
push edx
lea eax, [esp + esi + 0x44]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
add esi, eax
cmp esi, edi
jl 0x416602
lea ecx, [esp + 0x3c]
push ecx
shr edi, 1
lea ecx, [esp + 0x28]
mov word [esp + edi*2 + 0x40], 0
call dword [sym.imp.MFC80.DLL_Ordinal_910]
cmp byte [esp + 0x17], 0
jne 0x4165b0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push eax
call fcn.00415ea0
mov ecx, eax
call dword [sym.imp.MFC80.DLL_Ordinal_781]
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov esi, dword [esp + 0x10]
add esi, 1
cmp esi, dword [esp + 0x20]
mov dword [esp + 0x10], esi
jl 0x4163d5
push 0
push 1
lea ecx, [esp + 0x44]
push ecx
push ebx
call edi
cmp byte [esp + 0x3c], 0
jne 0x4163a0
mov ecx, 0x425954
call dword [sym.imp.MFC80.DLL_Ordinal_2131]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
mov al, 1
jmp 0x4166f4
push 0x41d4a0
mov ecx, 0x425954
call dword [sym.imp.MFC80.DLL_Ordinal_784]
jmp 0x4166f2
movzx edi, word [esp + 0x3d]
xor esi, esi
lea ecx, [ecx]
push 0
mov edx, edi
sub edx, esi
push edx
lea eax, [esp + esi + 0x44]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
add esi, eax
cmp esi, edi
jl 0x4166c0
lea ecx, [esp + 0x3c]
shr edi, 1
push ecx
mov ecx, 0x425954
mov word [esp + edi*2 + 0x40], 0
call dword [sym.imp.MFC80.DLL_Ordinal_783]
xor al, al
mov ecx, dword [esp + 0x2878]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2830]
xor ecx, esp
call fcn.00417312
mov esp, ebp
pop ebp
ret