Function at 0x401520
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x406b66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14c]
xor ebx, ebx
push edi
cmp esi, ebx
mov dword [esp + 0x38], ecx
je 0x401734
mov edi, str.qqgameprotocol:__
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
mov al, byte [esp + 0x17]
not ecx
dec ecx
mov byte [esp + 0x18], al
mov ebp, ecx
lea ecx, [esp + 0x18]
call fcn.00402050
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x1c]
call fcn.00402160
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x148], ebx
cmp eax, ebx
je 0x40171e
mov cl, byte [esp + 0x13]
mov byte [esp + 0x25], 0x22
mov byte [esp + 0x24], cl
lea ecx, [esp + 0x14]
call fcn.00401fd0
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x4015c3
xor esi, esi
jmp 0x4015ca
mov edx, dword [esp + 0x1c]
lea esi, [edx + eax]
lea ecx, [esp + 0x14]
call fcn.00401fd0
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
inc esi
push edi
push esi
push eax
call fcn.00402660
add esp, 0xc
cmp eax, esi
je 0x4015fa
mov ecx, eax
push edi
inc eax
push ecx
push esi
push eax
call fcn.00402680
add esp, 0x10
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00401fd0
cmp esi, ebx
jne 0x40160d
xor esi, esi
jmp 0x401611
sub esi, dword [esp + 0x18]
push 1
push esi
lea ecx, [esp + 0x1c]
call fcn.00401eb0
cmp dword [esp + 0x1c], ebp
jb 0x40171e
push ebp
lea ecx, [esp + 0x2c]
push ebx
push ecx
lea ecx, [esp + 0x20]
call fcn.00401b20
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x3d]
mov byte [esp + 0x3c], bl
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x148], 1
stosw word es:[edi], ax
cmp ecx, 0x104
stosb byte es:[edi], al
jae 0x4016c7
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jne 0x40166c
mov eax, 0x4070e0
push ecx
lea edx, [esp + 0x40]
push eax
push edx
call fcn.00403038
lea eax, [esp + 0x48]
push eax
call fcn.00402fc6
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x2c]
push ebp
call fcn.00402220
test al, al
je 0x4016c7
mov edi, dword [esp + 0x2c]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x3c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
call fcn.00402200
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esp + 0x3c]
push eax
call esi
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jne 0x4016e1
mov eax, 0x4070e0
push eax
call esi
mov edi, str.qqgameprotocol:__
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x34]
push str.qqgameprotocol:__
push ecx
push ebx
lea ecx, [esp + 0x38]
call fcn.004026f0
cmp eax, ebx
je 0x40173b
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x14c], bl
call fcn.00402050
push 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x14c], 0xffffffff
call fcn.00402050
xor eax, eax
jmp 0x4017c6
mov dl, byte [esp + 0x14]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x34], esp
mov byte [ecx], dl
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov eax, dword [0x4070dc]
lea edx, [esp + 0x24]
push eax
push ebx
push edx
call fcn.00401cb0
mov ecx, dword [esp + 0x48]
call fcn.004017f0
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
je 0x401791
mov al, byte [ecx - 1]
cmp al, bl
je 0x401787
cmp al, 0xff
je 0x401787
dec al
mov byte [ecx - 1], al
jmp 0x401791
dec ecx
push ecx
call fcn.00402830
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], ebx
cmp ecx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
je 0x4017c1
mov al, byte [ecx - 1]
cmp al, bl
je 0x4017b7
cmp al, 0xff
je 0x4017b7
dec al
mov byte [ecx - 1], al
jmp 0x4017c1
dec ecx
push ecx
call fcn.00402830
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x13c
ret 4