Function at 0x40f720
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444f4d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x455014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [ebp - 0x28]
call fcn.00442540
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc140.dll_Ordinal_316]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x20]
push dword [0x457bb0]
push dword [ebp - 0x28]
push dword [0x457bcc]
push dword [0x457bdc]
push str.login__s__s__s__s_
push eax
call dword [sym.imp.mfc140.dll_Ordinal_4807]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x30]
add esp, 0x18
mov dword [ebp - 0x30], 0x1b58
mov dword [ebp - 0x2c], 0
push 8
push eax
push 0x1006
push 0xffff
push dword [0x4572d8]
call ebx
push 0x3ff
push 0
push 0x4576e0
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x20]
mov edx, 0x3ff
cmp dword [eax - 0xc], edx
cmovl edx, dword [eax - 0xc]
push edx
push eax
push 0x4576e0
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x18
push 0x10
push 0x4572c8
push 0
push 0x400
push 0x4576e0
push dword [0x4572d8]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x40f826
push 0
push 0
push 0x449e5c
mov ecx, esi
call dword [sym.imp.mfc140.dll_Ordinal_8713]
xor bl, bl
jmp 0x40f9fc
push 0x3ff
push 0
push 0x4572e0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [0x4572dc], 0x10
lea eax, [ebp - 0x40]
push 0x4572dc
push eax
push 0
push 0x400
push 0x4572e0
push dword [0x4572d8]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x40f882
push 0
push 0
push 0x449e88
mov ecx, esi
call dword [sym.imp.mfc140.dll_Ordinal_8713]
xor bl, bl
jmp 0x40f9fc
push 8
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push 0x1006
push 0xffff
push dword [0x4572d8]
mov dword [ebp - 0x2c], 0
call ebx
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_316]
push 0x4572e0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push 0x449ebc
push eax
call dword [sym.imp.mfc140.dll_Ordinal_4807]
add esp, 0xc
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140.dll_Ordinal_316]
push 0
push 0x449ec0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc140.dll_Ordinal_4656]
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_8322]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call dword [sym.imp.mfc140.dll_Ordinal_1526]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call dword [sym.imp.mfc140.dll_Ordinal_1044]
push 0
push 0x449ec0
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_4656]
inc eax
lea ecx, [ebp - 0x14]
push eax
push 0
call dword [sym.imp.mfc140.dll_Ordinal_3839]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140.dll_Ordinal_316]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140.dll_Ordinal_300]
push 0
push 0x5f
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call dword [sym.imp.mfc140.dll_Ordinal_4655]
test eax, eax
js 0x40f994
push 0
push 0x5f
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_4655]
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_8322]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call dword [sym.imp.mfc140.dll_Ordinal_1526]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call dword [sym.imp.mfc140.dll_Ordinal_1044]
push str.VerDiff
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_2986]
test eax, eax
jne 0x40fa2b
push 0x449ecc
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140.dll_Ordinal_1529]
push 0
push 0
push dword [ebp - 0x18]
mov ecx, esi
call dword [sym.imp.mfc140.dll_Ordinal_8713]
push 0
push 0
push 0x10
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageA]
xor bl, bl
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00443559
mov esp, ebp
pop ebp
ret
push str.fail
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_2986]
test eax, eax
jne 0x40fa97
push 0x449f0c
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140.dll_Ordinal_1529]
push 0
push 0x5f
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140.dll_Ordinal_4655]
test eax, eax
js 0x40fab7
push 0
push 0x5f
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc140.dll_Ordinal_4655]
inc eax
lea ecx, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.mfc140.dll_Ordinal_3839]
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140.dll_Ordinal_1692]
push 0
push 0
push dword [ebp - 0x18]
mov ecx, esi
call dword [sym.imp.mfc140.dll_Ordinal_8713]
jmp 0x40f9d6
push str.expr
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_2986]
test eax, eax
jne 0x40facb
push 0x449f34
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc140.dll_Ordinal_1529]
push 0
push 0
push dword [ebp - 0x18]
mov ecx, esi
call dword [sym.imp.mfc140.dll_Ordinal_8713]
jmp 0x40f9d6
push str.chrg
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_2986]
test eax, eax
jne 0x40f9d6
mov bl, 1
jmp 0x40f9d8