Function at 0x41815e
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x4c011c
call sub.MSVCRT.dll__EH_prolog
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.00418a5c
cmp dword [ebp - 0x3c], ebx
je 0x418367
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x4181a6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x3c]
call fcn.00418a5c
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 0x4d761c
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 0x4ea158
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 2
call dword [ecx + 0x1c]
cmp eax, ebx
jne 0x418346
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 0x41827c
cmp dword [ebp - 0x28], ebx
je 0x41821d
cmp dword [ebp + 0x14], ebx
jne 0x418335
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi]
lea ecx, [ebp + 0x16]
push ecx
push 0x4d739c
push esi
mov byte [ebp - 4], 4
call dword [eax + 0x30]
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push 0x5112d8
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.004186b1
test eax, eax
je 0x41826e
mov ecx, edi
call fcn.00418936
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
jmp 0x4182ac
mov eax, dword [ebp - 0x20]
lea edx, [ebp + 0xc]
push edx
push 0x4d7528
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
cmp dword [ebp + 0xc], 3
je 0x418335
cmp dword [ebp - 0x28], ebx
je 0x4182ac
cmp dword [ebp + 0xc], 2
jne 0x4182ac
cmp dword [ebp + 0x14], ebx
jne 0x418335
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 0x418313
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x2c]
push edx
push 0x4d753c
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
cmp dword [ebp - 0x2c], ebx
jne 0x418313
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4182f8
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 0x4d9cf0
mov ecx, dword [eax]
push 0x4d7548
push eax
call dword [ecx + 0x54]
cmp eax, ebx
je 0x41837f
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x418324
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x418335
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x418346
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x418357
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x418367
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x418378
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x418615
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x34]
push edx
push 0x4d757c
mov ecx, dword [eax]
push eax
call dword [ecx + 0x38]
mov eax, dword [esi]
lea ecx, [ebp - 0xd]
push ecx
push 0x4d732c
push esi
call dword [eax + 0x2c]
mov eax, dword [esi]
lea ecx, [ebp - 0xe]
push ecx
push 0x4d733c
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 0x4d75c4
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.00418a75
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 0x41841e
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.00417ef6
cmp dword [ebp + 0x14], 0x1e
jle 0x41842d
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, 0x4d7364
push ecx
push edi
push esi
call dword [eax + 0x70]
cmp byte [ebp - 0xf], 7
jne 0x4184be
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_3
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 0x418474
cmp byte [edx + eax], bl
jne 0x418479
inc edx
cmp edx, ecx
jl 0x41846a
cmp dword [ebp + 0x10], ebx
je 0x4184b2
push 7
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push 0x4d75f0
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.00418a27
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 0x41859c
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp - 0x14]
push esi
push 0x4d57f0
mov ecx, dword [eax]
push 0x4d75d0
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x14]
push 2
push 0x4d75dc
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_3
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 0xc
push eax
push 0x4d72b4
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 0x4d72c4
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 0x4d75ac
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x14]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push 0x4d75b8
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 0x41859c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 6
cmp eax, ebx
je 0x4185ad
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 5
cmp eax, ebx
je 0x4185be
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x4185cf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x4185e0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x4185f1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x418601
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x418612
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