Function at 0x4992b0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4d7128
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov ecx, dword [esp + 0x28]
push ebx
push ebp
mov ebp, dword [0x515e10]
mov al, 1
cmp al, byte [ecx + 2]
push esi
push edi
sbb edi, edi
and edi, dword [0x515e14]
xor ebx, ebx
mov byte [esp + 0x11], bl
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x13], al
mov byte [esp + 0x12], bl
mov esi, edx
jmp 0x499310
movzx eax, word [esi]
cmp eax, 0x20
je 0x49931d
cmp eax, 9
jne 0x499322
add esi, 2
jmp 0x499310
cmp word [esi], 0x2a
jne 0x4993e2
lea esp, [esp]
push 0xa
push 0x507bcc
add esi, 2
call fcn.0049fc00
add esp, 4
push eax
push esi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x499359
add esi, 0x14
mov byte [esp + 0x13], bl
jmp 0x49937e
push 7
push 0x50840c
call fcn.0049fc00
add esp, 4
push eax
push esi
call fcn.004c56eb
add esp, 0xc
test eax, eax
jne 0x49937e
add esi, 0xe
mov byte [esp + 0x12], 1
cmp esi, ebx
je 0x4993dc
movzx eax, word [esi]
cmp ax, bx
je 0x4993dc
lea ebx, [ebx]
movzx edx, ax
mov ecx, 0x4e6dc4
mov eax, 0x20
lea ecx, [ecx]
cmp dx, ax
je 0x4993c0
movzx eax, word [ecx + 2]
add ecx, 2
cmp ax, bx
jne 0x4993a0
movzx eax, word [esi + 2]
add esi, 2
cmp ax, bx
jne 0x499390
jmp 0x4993dc
movzx eax, word [esi]
cmp eax, 0x20
je 0x4993cd
cmp eax, 9
jne 0x4993d2
add esi, 2
jmp 0x4993c0
cmp word [esi], 0x2a
je 0x499330
cmp byte [esp + 0x12], bl
jne 0x4993f7
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x18]
push edx
call fcn.00493620
add esp, 4
test al, al
je 0x499451
mov al, byte [ebp + 0x17]
cmp al, bl
jne 0x499404
mov eax, dword [ebp + 0xc]
mov al, byte [eax + 0x17]
cmp al, 2
je 0x499451
mov al, byte [edi + 0x17]
cmp al, bl
jne 0x499415
mov ecx, dword [edi + 0xc]
mov al, byte [ecx + 0x17]
cmp al, 2
je 0x499451
cmp byte [esp + 0x12], bl
je 0x499438
mov ebx, dword [esp + 0x3c]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
call fcn.00499900
add esp, 4
xor ebx, ebx
jmp 0x49944d
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
call fcn.00499830
add esp, 4
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x499466
cmp byte [esp + 0x13], bl
je 0x499466
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp byte [esp + 0x11], bl
je 0x4994e6
cmp edi, ebx
je 0x49947f
mov ecx, dword [esp + 0x14]
push 0x18
push ebx
push ecx
mov eax, edi
call fcn.00401590
cmp ebp, ebx
je 0x4994fc
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
push edx
mov eax, ebp
call fcn.0046df40
xor edi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
cmp byte [ebp + 0x17], bl
jne 0x4994ab
mov eax, dword [ebp + 0xc]
jmp 0x4994ad
mov eax, ebp
cmp byte [eax + 0x17], 2
jne 0x4994e0
cmp dword [0x5179f4], ebx
je 0x4994e0
mov ecx, 0x5179e8
call fcn.00404c10
cmp eax, ebx
jne 0x499500
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8
and byte [eax + 0x15], 0x86
jmp 0x499500
cmp ebp, ebx
je 0x4994f1
mov ecx, ebp
call fcn.0041bc60
cmp edi, ebx
je 0x4994fc
mov ecx, edi
call fcn.0041bc60
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
xor eax, eax
cmp byte [esp + 0x11], bl
sete al
push eax
push ecx
call fcn.0042f0a0
mov esi, eax
cmp edi, ebx
je 0x499532
mov edx, dword [esp + 0x1c]
push edx
push ebx
push edi
call fcn.004ce290
add esp, 0xc
push edi
call fcn.004c57e5
add esp, 4
mov ecx, dword [esp + 0x28]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 8