Function at 0x41bf70
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42f18f
push eax
mov eax, 0x1284
mov dword fs:[0], esp
call fcn.0042e160
push ebp
push edi
mov ebp, ecx
push 0
lea ecx, [esp + 0x120]
call fcn.004208d0
lea ecx, [esp + 0x11c]
mov dword [esp + 0x1294], 0
call sub.mfc42.dll_CDialog::DoModal
cmp eax, 1
jne 0x41c312
mov eax, dword [ebp + 0x78]
xor edi, edi
test eax, eax
mov dword [esp + 0xc], edi
jle 0x41c312
lea eax, [ebp + 0x7410]
push ebx
push esi
mov dword [esp + 0x10], eax
lea ebx, [ebp + 0x570]
mov ecx, dword [ebx - 8]
test ecx, ecx
mov ecx, dword [eax]
je 0x41c19e
test ecx, ecx
jne 0x41c183
push 0xe34
call sub.mfc42.dll_operatornew
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x129c], 1
je 0x41c021
mov ecx, eax
call fcn.004270e0
mov esi, eax
jmp 0x41c023
xor esi, esi
mov eax, dword [ebx - 4]
push 0
push 0x3f
push 2
push eax
mov ecx, esi
mov byte [esp + 0x12ac], 0
call sub.mfc42.dll_CAsyncSocket::Create
test eax, eax
je 0x41c176
mov ecx, dword [ebx]
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push 4
push edx
push 0x1001
shl ecx, 0xa
push 0xffff
push eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.wsock32.dll_setsockopt]
mov ecx, dword [ebp + 0x6c]
push ecx
push edi
mov ecx, esi
call fcn.0042a9c0
mov edx, dword [esp + 0x10]
lea eax, [edi + 1]
push eax
push 0x403c2c
mov dword [edx], esi
mov dword [ebx + 0xd8], esi
call fcn.0041bb40
mov eax, dword [ebx + 0x7c]
add esp, 8
test eax, eax
je 0x41c183
mov ax, word [ebx - 4]
mov dword [ebx + 0x80], 1
push eax
mov dword [esp + 0x20], 0x15
call dword [sym.imp.wsock32.dll_htons]
lea ecx, [ebp + 0x726c]
push edi
push ecx
lea edx, [esp + 0x28]
push 0x4031a0
push edx
mov word [ebp + 0x73f2], ax
call dword [sym.imp.msvcrt.dll_sprintf]
mov al, byte [0x401ddc]
lea ecx, [ebp + 0x73f0]
mov byte [esp + 0x3f], al
lea esi, [ebp + 0x73a4]
mov edx, dword [ecx]
lea edi, [esp + 0x50]
mov dword [esp + 0x40], edx
add esp, 0x10
mov eax, dword [ecx + 4]
mov dword [esp + 0x34], eax
push 0
mov edx, dword [ecx + 8]
mov dword [esp + 0x3c], edx
lea edx, [ebp + 0x7388]
mov eax, dword [ecx + 0xc]
mov ecx, 8
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x73a0]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x104]
mov ecx, 8
lea edi, [esp + 0x64]
push edx
rep movsd dword es:[edi], dword [esi]
mov cx, word [0x40319c]
mov edx, dword [esp + 0x18]
movsw word es:[edi], word [esi]
mov word [esp + 0x8a], cx
push eax
lea ecx, [esp + 0x28]
push 0x84
push ecx
mov ecx, dword [edx]
call sub.mfc42.dll_CAsyncSocket::SendTo
mov eax, dword [esp + 0x14]
inc eax
push eax
push 0x403c10
call fcn.0041bb40
mov edi, dword [esp + 0x1c]
add esp, 8
jmp 0x41c183
test esi, esi
je 0x41c183
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
mov eax, dword [ebx + 0x8c]
test eax, eax
jne 0x41c2ef
push edi
mov ecx, ebp
call fcn.0041d6b0
jmp 0x41c2ef
test ecx, ecx
je 0x41c2c7
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x41c28c
mov ax, word [ebx - 4]
mov dword [esp + 0xa0], 0x23
push eax
call dword [sym.imp.wsock32.dll_htons]
lea ecx, [ebp + 0x726c]
push edi
push ecx
lea edx, [esp + 0xac]
push 0x4031a0
push edx
mov word [ebp + 0x73f2], ax
call dword [sym.imp.msvcrt.dll_sprintf]
mov al, byte [0x401ddc]
lea ecx, [ebp + 0x73f0]
mov byte [esp + 0xc3], al
lea esi, [ebp + 0x73a4]
mov edx, dword [ecx]
lea edi, [esp + 0xd4]
mov dword [esp + 0xc4], edx
add esp, 0x10
mov eax, dword [ecx + 4]
mov dword [esp + 0xb8], eax
push 0
mov edx, dword [ecx + 8]
mov dword [esp + 0xc0], edx
mov edx, dword [ebp + 0x73a0]
mov eax, dword [ecx + 0xc]
mov ecx, 8
mov dword [esp + 0xc4], eax
lea eax, [esp + 0xa4]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x104]
mov ecx, 9
lea edi, [esp + 0xe8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp + 0x7388]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 0x84
mov ecx, dword [ecx]
push eax
call sub.mfc42.dll_CAsyncSocket::SendTo
mov edx, dword [esp + 0x14]
inc edx
push edx
push 0x403180
call fcn.0041bb40
mov edi, dword [esp + 0x1c]
add esp, 8
mov eax, dword [esp + 0x10]
mov dword [ebx + 0xd4], 0
mov esi, dword [eax]
mov ecx, esi
call fcn.0042a930
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0xd8], 0
mov dword [ecx], 0
mov eax, dword [ebx + 0x8c]
test eax, eax
je 0x41c2ef
mov eax, dword [ebx + 0xa8]
test eax, eax
jne 0x41c2ef
mov eax, dword [ebx - 0x1e4]
test eax, eax
jne 0x41c2ef
push 0
push edi
mov ecx, ebp
call fcn.0041d710
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x78]
inc edi
add eax, 4
add ebx, 0x358
cmp edi, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
jl 0x41bfe4
pop esi
pop ebx
lea ecx, [esp + 0x1288]
mov dword [esp + 0x1294], 4
call sub.mfc42.dll_CString::CString
push sub.mfc42.dll_CButton::CButton
push 0x20
lea edx, [esp + 0xa90]
push 0x40
push edx
mov byte [esp + 0x12a4], 3
call fcn.0042e026
push sub.mfc42.dll_CButton::CButton
push 0x20
lea eax, [esp + 0x290]
push 0x40
push eax
mov byte [esp + 0x12a4], 2
call fcn.0042e026
lea ecx, [esp + 0x11c]
mov dword [esp + 0x1294], 0xffffffff
call sub.mfc42.dll_CDialog::CDialog
mov ecx, dword [esp + 0x128c]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1290
ret