Function at 0x49b610
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x214]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
push 0x208
push 0
push eax
call fcn.004e0230
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x214]
mov dword [ebp - 0x228], str.QQPCMgr
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x240], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], 0x10
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x49b6a3
sub esi, ecx
lea ecx, [edi + 2]
sar esi, 1
lea esi, [esi*2 + 2]
mov dword [ebp - 0x238], esi
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x49b6c2
sub edi, ecx
lea ecx, [ebx + 2]
sar edi, 1
lea edi, [edi*2 + 2]
mov dword [ebp - 0x234], edi
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x49b6e1
sub ebx, ecx
lea ecx, [ebp - 0x214]
sar ebx, 1
lea edx, [ecx + 2]
lea ebx, [ebx*2 + 2]
mov dword [ebp - 0x230], ebx
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49b706
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
mov dword [ebp - 0x22c], eax
add eax, 0x608
add eax, ebx
add eax, edi
add esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
push 0
push eax
mov dword [0x554148], eax
call fcn.004e0230
mov eax, dword [0x554148]
add esp, 0xc
mov dword [eax], esi
mov eax, dword [0x554148]
mov dword [eax + 4], 0
mov eax, dword [0x554148]
mov dword [eax + 8], 0
mov eax, dword [0x554148]
mov dword [eax + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [0x554148]
mov dword [ecx + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x554148]
mov dword [ecx + 0x14], eax
mov eax, dword [0x554148]
mov dword [eax + 0x18], 0
mov eax, dword [0x554148]
mov dword [eax + 0x1c], 0
mov ecx, dword [0x554148]
mov eax, dword [ebp - 0x240]
mov dword [ecx + 0x28], eax
mov eax, dword [0x554148]
mov dword [eax + 0x2c], 0x804
mov eax, dword [0x554148]
mov dword [eax + 0x20], 0
mov eax, dword [0x554148]
mov dword [eax + 0x24], 0
mov eax, dword [0x554148]
mov dword [eax + 0x34c], 0
mov ecx, dword [0x554148]
mov ax, word [ebp + 0x10]
mov word [ecx + 0x5e8], ax
mov ecx, dword [0x554148]
mov ax, word [ebp + 0x14]
mov word [ecx + 0x5ea], ax
mov ecx, dword [0x554148]
mov eax, dword [ebp + 0x18]
mov dword [ecx + 0x5ec], eax
mov eax, dword [0x554148]
mov byte [eax + 0x5f0], 1
mov eax, dword [0x554148]
mov byte [eax + 0x5f1], 1
mov eax, dword [0x554148]
mov dword [eax + 0x558], 1
mov ebx, dword [0x554148]
add ebx, 0x5f8
xor esi, esi
nop word [eax + eax]
mov edi, dword [ebp + esi - 0x23c]
push edi
push dword [ebp + esi - 0x228]
push ebx
call fcn.004dfcb0
mov dword [ebp + esi - 0x228], ebx
add esp, 0xc
add esi, 4
add ebx, edi
cmp esi, 0x14
jb 0x49b860
mov edx, dword [0x554148]
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x224]
sub eax, edx
sub ecx, edx
mov dword [edx + 0x5d4], eax
mov eax, dword [0x554148]
push 2
mov dword [eax + 0x5d8], ecx
mov eax, dword [0x554148]
mov ecx, dword [ebp - 0x220]
sub ecx, edx
mov dword [eax + 0x5dc], ecx
mov eax, dword [0x554148]
mov ecx, dword [ebp - 0x21c]
sub ecx, edx
mov dword [eax + 0x5e0], ecx
mov eax, dword [0x554148]
mov ecx, dword [ebp - 0x218]
sub ecx, edx
mov dword [eax + 0x5e4], ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push fcn.0049bbe0
call esi
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0
push eax
push 5
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x4c2c033
push eax
push esi
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push str.AddVectoredExceptionHandler
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop edi
pop esi
pop ebx
test eax, eax
je 0x49b955
push 0x49bbf0
push 0
call eax
push 0x554150
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de46d
mov esp, ebp
pop ebp
ret