Function at 0x46456d
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x4e3c3c
call fcn.00471450
sub esp, 0x38
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x18], ebx
mov eax, dword [edi + 0x54]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00418ac1
cmp dword [ebp - 0x3c], ebx
je 0x464776
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x4645b5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x3c]
call fcn.00418ac1
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x18]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
push edx
push 0x4fbebc
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 0x50adb8
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 2
call dword [ecx + 0x1c]
cmp eax, ebx
jne 0x464755
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 0x46468b
cmp dword [ebp - 0x28], ebx
je 0x46462c
cmp dword [ebp + 0x14], ebx
jne 0x464744
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esi]
lea ecx, [ebp + 0x16]
push ecx
push 0x4fbc3c
push esi
mov byte [ebp - 4], 4
call dword [eax + 0x30]
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push 0x54ce68
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 + 0xc]
push eax
push dword [ebp + 8]
push 2
call fcn.00464ac1
test eax, eax
je 0x46467d
mov ecx, edi
call fcn.00464d46
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
jmp 0x4646bb
mov eax, dword [ebp - 0x20]
lea edx, [ebp + 0xc]
push edx
push 0x4fbdc8
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
cmp dword [ebp + 0xc], 3
je 0x464744
cmp dword [ebp - 0x28], ebx
je 0x4646bb
cmp dword [ebp + 0xc], 2
jne 0x4646bb
cmp dword [ebp + 0x14], ebx
jne 0x464744
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 5
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], 6
push eax
call dword [edx + 0x24]
cmp eax, ebx
jne 0x464722
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x2c]
push edx
push 0x4fbddc
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
cmp dword [ebp - 0x2c], ebx
jne 0x464722
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x464707
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 0x4f96b8
mov ecx, dword [eax]
push 0x4fbde8
push eax
call dword [ecx + 0x54]
cmp eax, ebx
je 0x46478e
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x464733
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x464744
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x464755
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x464766
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x464776
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x464787
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x464a24
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x34]
push edx
push 0x4fbe1c
mov ecx, dword [eax]
push eax
call dword [ecx + 0x38]
mov eax, dword [esi]
lea ecx, [ebp - 0xd]
push ecx
push 0x4fbbcc
push esi
call dword [eax + 0x2c]
mov eax, dword [esi]
lea ecx, [ebp - 0xe]
push ecx
push 0x4fbbdc
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 0x4fbe64
mov edx, dword [ecx]
push ecx
call dword [edx + 0x14]
mov eax, dword [edi + 0x54]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 7
call fcn.00418aa8
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x30]
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 - 0x30]
cmp eax, ebx
je 0x46482d
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.00464305
cmp dword [ebp + 0x14], 0x1e
jle 0x46483c
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, 0x4fbc04
push ecx
push edi
push esi
call dword [eax + 0x70]
cmp byte [ebp - 0xf], 7
jne 0x4648cd
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_4
lea eax, [ebp + 8]
mov byte [ebp - 4], 8
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 0x464883
cmp byte [edx + eax], bl
jne 0x464888
inc edx
cmp edx, ecx
jl 0x464879
cmp dword [ebp + 0x10], ebx
je 0x4648c1
push 7
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push 0x4fbe90
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [ebp - 4], 9
mov ecx, esp
mov dword [ebp + 0xc], esp
push edi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.00418a73
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], 7
call sub.MFC42.DLL_CString::CString
cmp dword [ebp + 0x10], ebx
je 0x4649ab
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp - 0x14]
push esi
push 0x4f48c8
mov ecx, dword [eax]
push 0x4fbe70
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x14]
push 2
push 0x4fbe7c
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], 0xb
call dword [eax + 0x14]
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString_4
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 0xc
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 0x4fbe4c
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x14]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push 0x4fbe58
push eax
call dword [ecx + 0x14]
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x4649ab
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 6
cmp eax, ebx
je 0x4649bc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x4649cd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x4649de
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x4649ef
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x464a00
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x464a10
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x464a21
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