Function at 0x476926
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x5094a8
call fcn.00484660
sub esp, 0x5c
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x18], ebx
mov eax, dword [edi + 0x54]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.00419be6
cmp dword [ebp - 0x50], ebx
je 0x476c2e
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x476971
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x50]
call fcn.00419be6
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x18]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x34]
push edx
push 0x5237dc
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov dword [ebp - 0x1c], ebx
mov eax, dword [edi + 0x54]
lea edx, [ebp - 0x1c]
push edx
push 0x534758
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 2
call dword [ecx + 0x1c]
cmp eax, ebx
jne 0x476c0d
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x20]
xor ecx, ecx
push esi
mov edx, dword [eax]
push ecx
push dword [ebp + 8]
mov byte [ebp - 4], 3
push eax
call dword [edx + 0x40]
mov esi, dword [ebp + 0xc]
cmp eax, ebx
je 0x476b43
cmp dword [ebp - 0x34], ebx
je 0x4769ec
cmp dword [ebp + 0x14], ebx
jne 0x476bfc
mov eax, dword [esi]
lea ecx, [ebp + 0xc]
push ecx
push 0x52353c
push esi
mov dword [ebp + 0xc], ebx
call dword [eax + 0x30]
cmp word [ebp + 0xc], 0x81
je 0x476a18
cmp word [ebp + 0xc], 1
je 0x476a18
cmp word [ebp + 0xc], 0x35
jne 0x476ae4
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString_5
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
push 0x523564
push esi
call dword [sym.imp.BasicCtrlDll.dll_long_int___cdecl_GetQQDataBuf_struct_IQQData___char_const___class_CString__]
add esp, 0xc
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x28]
mov eax, dword [eax - 8]
mov byte [ebp - 4], 5
push eax
push ebx
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov ecx, edi
push dword [ebp + 0xc]
call fcn.00476794
test eax, eax
je 0x476ac4
xor eax, eax
lea edi, [ebp - 0x64]
mov dword [ebp - 0x68], ebx
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x2c]
pop edi
lea edx, [ebp - 0x38]
mov dword [ebp - 0x38], edi
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x68]
push edx
push 0x523690
push eax
call dword [ecx + 0x48]
test eax, eax
jne 0x476ac4
push edi
lea eax, [ebp - 0x68]
push 0x523808
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x476ac4
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x476ab3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
jmp 0x476bfc
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x476ad5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
mov edi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString_5
mov eax, dword [esi]
lea ecx, [ebp + 0x16]
push ecx
push 0x52355c
push esi
mov byte [ebp - 4], 6
call dword [eax + 0x30]
push dword [ebp + 8]
lea eax, [ebp - 0x30]
push 0x57089c
push eax
call sub.MFC42.DLL_CString::Format
movzx eax, word [ebp + 0x16]
add esp, 0xc
mov ecx, edi
push eax
xor eax, eax
push dword [ebp - 0x30]
push eax
push dword [ebp + 8]
push 2
call fcn.00476f79
test eax, eax
je 0x476b35
mov ecx, edi
call fcn.004771fe
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
jmp 0x476b73
mov eax, dword [ebp - 0x20]
lea edx, [ebp + 0xc]
push edx
push 0x5236e8
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
cmp dword [ebp + 0xc], 3
je 0x476bfc
cmp dword [ebp - 0x34], ebx
je 0x476b73
cmp dword [ebp + 0xc], 2
jne 0x476b73
cmp dword [ebp + 0x14], ebx
jne 0x476bfc
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 7
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x24]
push ecx
xor ecx, ecx
mov edx, dword [eax]
push ecx
push dword [ebp + 8]
mov byte [ebp - 4], 8
push eax
call dword [edx + 0x24]
cmp eax, ebx
jne 0x476bda
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x40]
push edx
push 0x5236fc
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
cmp dword [ebp - 0x40], ebx
jne 0x476bda
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x476bbf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
push 0x520f80
mov ecx, dword [eax]
push 0x523708
push eax
call dword [ecx + 0x54]
cmp eax, ebx
je 0x476c46
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x476beb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x476bfc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x476c0d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x476c1e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x50]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x476c2e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x476c3f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x476edc
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x48]
push edx
push 0x52373c
mov ecx, dword [eax]
push eax
call dword [ecx + 0x38]
mov eax, dword [esi]
lea ecx, [ebp - 0xd]
push ecx
push 0x5234ec
push esi
call dword [eax + 0x2c]
mov eax, dword [esi]
lea ecx, [ebp - 0xe]
push ecx
push 0x5234fc
push esi
call dword [eax + 0x2c]
movzx ax, byte [ebp - 0xd]
movzx cx, byte [ebp - 0xe]
imul eax, eax, 0x64
add eax, ecx
mov ecx, dword [ebp - 0x14]
push eax
push 0x523784
mov edx, dword [ecx]
push ecx
call dword [edx + 0x14]
mov eax, dword [edi + 0x54]
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 9
call fcn.00419bcd
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x44]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea eax, [ebp + 8]
push eax
call sub.MFC42.DLL_CTime::GetTickCount
mov edi, dword [eax]
mov eax, dword [ebp - 0x44]
cmp eax, ebx
je 0x476ce5
push ecx
mov dword [ebp + 8], edi
mov ecx, esp
mov dword [ebp + 0x14], esp
mov dword [ecx], eax
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.004766be
cmp dword [ebp + 0x14], 0x1e
jle 0x476cf4
mov eax, dword [ebp - 0x14]
push edi
push str.dwLastChatTime
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [esi]
lea ecx, [ebp - 0xf]
mov edi, 0x523524
push ecx
push edi
push esi
call dword [eax + 0x70]
cmp byte [ebp - 0xf], 7
jne 0x476d85
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_5
lea eax, [ebp + 8]
mov byte [ebp - 4], 0xa
push eax
push edi
push esi
call dword [sym.imp.BasicCtrlDll.dll_long_int___cdecl_GetQQDataBuf_struct_IQQData___char_const___class_CString__]
mov eax, dword [ebp + 8]
add esp, 0xc
xor edx, edx
mov ecx, dword [eax - 8]
cmp ecx, ebx
jle 0x476d3b
cmp byte [edx + eax], bl
jne 0x476d40
inc edx
cmp edx, ecx
jl 0x476d31
cmp dword [ebp + 0x10], ebx
je 0x476d79
push 7
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push 0x5237b0
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [ebp - 4], 0xb
mov ecx, esp
mov dword [ebp + 0xc], esp
push edi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.00419b98
push eax
push esi
call dword [sym.imp.BasicCtrlDll.dll_long_int___cdecl_CopyAFieldQQData_struct_IQQData___struct_IQQData___class_CString__class_CString__unsigned_char_]
add esp, 0x14
lea ecx, [ebp + 8]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
cmp dword [ebp + 0x10], ebx
je 0x476e63
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp - 0x14]
push esi
push 0x51ab18
mov ecx, dword [eax]
push 0x523790
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x14]
push 2
push 0x52379c
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov dword [ebp + 8], ebx
mov eax, dword [esi]
lea ecx, [ebp + 8]
push ecx
push esi
mov byte [ebp - 4], 0xd
call dword [eax + 0x18]
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString_5
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 0xe
push eax
push str.IP.DataSender
push dword [ebp + 8]
mov dword [ebp + 0x14], ebx
call dword [sym.imp.BasicCtrlDll.dll_long_int___cdecl_GetQQDataStr_struct_IQQData___char_const___class_CString__]
add esp, 0xc
push dword [ebp + 0x10]
call sub.WSOCK32.dll_inet_addr
mov esi, eax
mov eax, dword [ebp + 8]
lea edx, [ebp + 0x14]
mov ecx, dword [eax]
push edx
push str.Port.DataSender
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x14]
push esi
push str.dwC2CIP
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x14]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push str.wC2CPort
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x14]
push esi
push 0x52376c
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x14]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push 0x523778
push eax
call dword [ecx + 0x14]
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 9
cmp eax, ebx
je 0x476e63
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x58]
mov byte [ebp - 4], 8
cmp eax, ebx
je 0x476e74
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x476e85
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x476e96
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x476ea7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x476eb8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x50]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x476ec8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x476ed9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14