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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x42fa31
push eax
mov eax, 0x18714
mov dword fs:[0], esp
call fcn.0042e160
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], esi
call sub.mfc42.dll_CString::CString_3
xor edi, edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x1872c], edi
call sub.mfc42.dll_CString::CString_3
mov byte [esp + 0x1872c], 1
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.ws2_32.dll_WSACreateEvent]
mov ebp, dword [esp + 0x18734]
mov ebx, eax
push 0x23
push ebx
push ebp
mov dword [esp + 0x48], ebx
call dword [sym.imp.ws2_32.dll_WSAEventSelect]
mov eax, dword [esi + 4]
mov dword [esp + 0x14], 1
cmp eax, edi
mov dword [esp + 0x30], edi
je 0x42c6d9
mov edi, dword [esp + 0x34]
jmp 0x42c3f2
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x42c6d9
push 0x64
push ebx
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
xor ecx, ecx
cmp eax, ecx
je 0x42c441
cmp eax, 0x102
je 0x42c426
cmp eax, 0xffffffff
jne 0x42c6ca
mov dword [esp + 0x14], ecx
jmp 0x42c6ca
mov eax, dword [esp + 0x30]
inc eax
cmp eax, 0x1e
mov dword [esp + 0x30], eax
jle 0x42c6ca
mov dword [esp + 0x14], ecx
jmp 0x42c6ca
lea eax, [esp + 0x58]
push eax
push ebx
push ebp
call dword [sym.imp.ws2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
je 0x42c6ca
mov eax, dword [esp + 0x58]
test eax, eax
je 0x42c6ca
test al, 1
je 0x42c5fb
lea ecx, [esp + 0x84]
push 0
lea edx, [esp + 0x3c]
push 0
lea eax, [esp + 0x4c]
mov dword [esp + 0x58], ecx
push edx
push eax
lea ecx, [esp + 0x5c]
push 1
push ecx
push ebp
mov dword [esp + 0x54], 0
mov dword [esp + 0x68], 0x186a0
call dword [sym.imp.ws2_32.dll_WSARecv]
cmp eax, 0xffffffff
je 0x42c5fb
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x84]
push edx
push eax
lea ecx, [esp + 0x50]
call fcn.0042deba
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x18730], 2
call fcn.0042deb4
lea ecx, [esp + 0x48]
mov byte [esp + 0x1872c], 1
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x40]
push 4
push ecx
lea ecx, [esp + 0x20]
call sub.mfc42.dll_CString::Right
mov eax, dword [eax]
push 0x4041d8
push eax
call dword [sym.imp.msvcrt.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x40]
test eax, eax
setne bl
call sub.mfc42.dll_CString::CString
test bl, bl
jne 0x42c6ca
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x60], esp
push edx
call sub.mfc42.dll_CString::CString_2
mov ecx, esi
call fcn.0042c720
xor ecx, ecx
cmp eax, ecx
jne 0x42c54c
mov dword [esp + 0x14], ecx
jmp 0x42c6ca
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x10]
xor edi, edi
mov eax, dword [ecx - 8]
mov edx, eax
sub edx, edi
cmp edx, 0x30d40
jl 0x42c56f
mov dword [esp + 0x28], 0x30d40
jmp 0x42c575
sub eax, edi
mov dword [esp + 0x28], eax
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
push eax
call sub.mfc42.dll_CString::GetBuffer
add eax, edi
push 0
mov dword [esp + 0x30], eax
push 0
lea eax, [esp + 0x28]
push 0
push eax
lea ecx, [esp + 0x38]
push 1
push ecx
push ebp
call dword [sym.imp.ws2_32.dll_WSASend]
mov esi, eax
cmp esi, 0xffffffff
je 0x42c5ac
add edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
cmp edi, dword [ecx - 8]
jge 0x42c5ba
cmp esi, 0xffffffff
jne 0x42c556
call dword [sym.imp.wsock32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x42c5d4
mov dword [esp + 0x24], 1
jmp 0x42c6ca
cmp esi, 0xffffffff
jne 0x42c5e6
mov dword [esp + 0x1c], 0
jmp 0x42c6c2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42c6c2
lea ecx, [esp + 0x18]
call sub.mfc42.dll_CString::Empty
test byte [esp + 0x58], 2
je 0x42c6bb
mov eax, dword [esp + 0x24]
test eax, eax
je 0x42c6bb
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.ws2_32.dll_WSASend]
mov eax, dword [ecx - 8]
mov edx, eax
sub edx, edi
cmp edx, 0x30d40
jl 0x42c635
mov dword [esp + 0x28], 0x30d40
jmp 0x42c63b
sub eax, edi
mov dword [esp + 0x28], eax
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
push eax
call sub.mfc42.dll_CString::GetBuffer
add eax, edi
push 0
mov dword [esp + 0x30], eax
push 0
lea eax, [esp + 0x28]
push 0
push eax
lea ecx, [esp + 0x38]
push 1
push ecx
push ebp
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x42c66e
add edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
cmp edi, dword [ecx - 8]
jge 0x42c67c
cmp esi, 0xffffffff
jne 0x42c61c
call dword [sym.imp.wsock32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x42c693
mov dword [esp + 0x24], 1
jmp 0x42c6ca
cmp esi, 0xffffffff
jne 0x42c6a2
mov dword [esp + 0x1c], 0
jmp 0x42c6c2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42c6c2
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0
call sub.mfc42.dll_CString::Empty
test byte [esp + 0x58], 0x20
je 0x42c6ca
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x34]
mov eax, dword [esi + 4]
test eax, eax
jne 0x42c3ee
push ebp
call dword [sym.imp.wsock32.dll_closesocket]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1872c], 0
call sub.mfc42.dll_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x1872c], 0xffffffff
call sub.mfc42.dll_CString::CString
mov ecx, dword [esp + 0x18724]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18720
ret 4