Function at 0x403490
Capabilities:
Initialize winsock library
Read .ini file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ff2b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x548
mov eax, dword [0x417008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x538], ecx
lea eax, [ebp - 0x530]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40389b
push 0x415420
lea eax, [ebp - 0x3a0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x3a0]
push eax
push 0x40
lea eax, [ebp - 0x98]
push eax
push str.127.0.0.1
push 0x415450
push str.ServerInfo1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x534], 0x418ae0
lea esi, [ebp - 0x98]
xor edi, edi
nop word [eax + eax]
push esi
call fcn.00407718
mov ecx, dword [ebp - 0x534]
add esp, 4
mov byte [ecx], al
inc ecx
push 0x2e
push esi
mov dword [ebp - 0x534], ecx
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
test esi, esi
je 0x403570
inc edi
add esi, 2
cmp edi, 4
jb 0x403540
movzx ecx, byte [0x418ae0]
movzx eax, byte [0x418ae3]
xor cl, 0x5a
xor al, 0x5a
mov byte [0x418ae3], cl
movzx ecx, byte [0x418ae1]
mov byte [0x418ae0], al
xor cl, 0x5a
movzx eax, byte [0x418ae2]
xor al, 0x5a
mov byte [0x418ae2], cl
lea ecx, [ebp - 0x554]
mov byte [0x418ae1], al
call fcn.004030d0
mov esi, eax
cmp esi, 0x417b50
je 0x40363d
mov ecx, dword [0x417b64]
cmp ecx, 0x10
jb 0x4035fa
mov eax, dword [0x417b50]
inc ecx
cmp ecx, 0x1000
jb 0x4035f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4038bb
mov eax, edx
push ecx
push eax
call fcn.0040441a
add esp, 8
mov dword [0x417b60], 0
mov dword [0x417b64], 0xf
mov byte [0x417b50], 0
movups xmm0, xmmword [esi]
movups xmmword [0x417b50], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x417b60], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [ebp - 0x540]
cmp edx, 0x10
jb 0x403677
mov ecx, dword [ebp - 0x554]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40366d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4038bb
push edx
push ecx
call fcn.0040441a
add esp, 8
lea eax, [ebp - 0x3a0]
push eax
push 0x40
lea eax, [ebp - 0x98]
push eax
push str.37015_37015_37015
push str.Ports
push str.ServerInfo1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x2c
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x4036b4
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x98]
push eax
call fcn.00407718
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 4
mov word [0x418ae4], ax
lea eax, [ebp - 0x118]
push str..QQSpeed.ini
push 0x80
push eax
push str.____WyWyTeam_888
push 0x41539c
push 0x4153a0
call edi
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x554], 0
mov dword [ebp - 0x544], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x540], 0xf
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403718
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x554]
call fcn.00403a70
mov edx, dword [ebp - 0x540]
lea eax, [ebp - 0x554]
mov ecx, dword [ebp - 0x554]
cmp edx, 0x10
cmovae eax, ecx
movups xmm0, xmmword [eax]
movups xmmword [0x418af0], xmm0
jb 0x403781
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403777
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4038c0
push edx
push ecx
call fcn.0040441a
add esp, 8
sub esp, 0x18
lea eax, [ebp - 0x198]
mov esi, esp
mov dword [ebp - 0x534], esp
mov dword [ebp - 0x53c], esi
push str..QQSpeed.ini
push 0x80
push eax
push 0x4153ac
push str.ServerID
push 0x4153a0
call edi
lea ecx, [ebp - 0x198]
mov dword [esi], 0
mov dword [esi + 0x10], 0
lea edx, [ecx + 1]
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4037d4
sub ecx, edx
lea eax, [ebp - 0x198]
push ecx
push eax
mov ecx, esi
call fcn.00403a70
sub esp, 0x18
mov dword [ebp - 4], 0
movzx edx, word [0x418ae4]
mov ecx, esp
mov dword [ebp - 0x53c], esp
call fcn.004020a0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
push 0x417b50
call fcn.004039a0
mov dword [ebp - 4], 0xffffffff
call fcn.00402fa0
add esp, 0x48
push 0x84
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
push 0
mov dword [0x418ae8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [0x418ae8]
mov dword [0x418b00], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
push 0x402770
push dword [ebp - 0x538]
push 0x81
push dword [0x418760]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
push dword [0x418ae8]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [0x418b00]
call dword [sym.imp.GDI32.dll_DeleteDC]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00403f80
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040791d
call fcn.0040791d
int3