Function at 0x861491
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
xor ebx, ebx
xor eax, eax
push ebx
mov byte [ebp - 8], bl
lea edi, [ebp - 7]
stosb byte es:[edi], al
push 2
lea eax, [ebp - 8]
push eax
push 0x23
mov dword [ebp - 0x14], ebx
mov byte [ebp - 1], bl
mov byte [ebp - 2], bl
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x1c], 0x103
mov dword [ebp - 0x10], ebx
call dword [0x861150]
cmp byte [ebp - 8], bl
je 0x869537
mov byte [ebp - 1], 1
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push 0x861530
push 0x80000002
call dword [fcn.008611d0]
push 4
mov dword [ebp - 8], eax
pop edi
cmp eax, ebx
je 0x86954e
cmp byte [ebp + 8], bl
jne 0x86589b
cmp dword [0x8756ac], ebx
jne 0x865a73
cmp byte [ebp - 2], bl
jne 0x869584
lea eax, [ebp - 0x14]
push eax
call fcn.00861587
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret 8
cmp dword [0x8756ac], ebx
jne 0x865a73
mov eax, dword [ebp - 0xc]
cmp eax, ebx
jne 0x865a6e
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jne 0x865a6e
cmp byte [ebp - 1], bl
je 0x86151e
mov dword [0x875108], edi
mov byte [ebp + 0xb], bl
push esi
mov ebx, str.umstartup
call fcn.00863b51
xor esi, esi
cmp dword [0x875140], esi
jne 0x8658f7
cmp dword [0x875144], esi
jne 0x8658f7
mov dword [0x875140], eax
mov dword [0x875144], edx
lea eax, [ebp - 0x1c]
push eax
push 0xe
push str.umstartup.etl
call fcn.00865a81
test eax, eax
jl 0x865a68
lea eax, [ebp - 0x10]
push eax
push 0xa
push ebx
call fcn.00865a81
test eax, eax
jl 0x865a68
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x1c]
lea edi, [eax + ebx]
lea edi, [edi + edi + 0x7c]
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.00863bb8
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x865a68
push 0x78
push esi
mov esi, dword [ebp - 0x14]
push esi
call fcn.008617f5
mov dword [esi], edi
lea edi, [ebx + ebx + 0x7a]
add esp, 0xc
mov dword [esi + 0x2c], 0x20000
mov dword [esi + 0x28], 2
mov dword [esi + 0x6c], 0x78
mov dword [esi + 0x70], edi
mov dword [esi + 0x30], 3
mov dword [esi + 0x34], 0xa
mov dword [esi + 0x40], 0x10000002
cmp dword [0x875140], 0
jne 0x8659b7
cmp dword [0x875144], 0
jne 0x8659b7
push str.umstartup.etl
inc ebx
push ebx
lea eax, [esi + 0x78]
push eax
mov dword [esi + 0x3c], 5
mov dword [esi + 0x6c], 0x78
call fcn.00861845
mov eax, dword [ebp - 0x10]
mov ebx, str.umstartup
push ebx
inc eax
mov dword [esi + 0x70], edi
push eax
add edi, esi
push edi
call fcn.00861845
cmp byte [ebp + 0xb], 0
jne 0x869598
mov eax, dword [0x875140]
mov ecx, dword [0x875144]
test eax, eax
jne 0x8695b5
test ecx, ecx
jne 0x8695b5
push 1
push str.umstartup000.etl
push str.umstartup.etl
call dword [0x861330]
push esi
push ebx
push 0x875140
call dword [0x875064]
mov eax, dword [0x875140]
mov ecx, dword [0x875144]
mov edx, eax
or edx, ecx
je 0x8695c6
mov esi, dword [0x87505c]
push ecx
push eax
push 0x875220
push dword [0x875108]
push dword [0x8756e0]
push 1
call esi
push dword [0x875144]
push dword [0x875140]
push 0x875230
push dword [0x875108]
push dword [0x8756e0]
push 1
call esi
and dword [ebp - 8], 0
pop esi
jmp 0x86151e
mov dword [0x875108], eax
mov byte [ebp + 0xb], 1
jmp 0x8658cf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
cmp byte [eax + 2], bl
jne 0x8614d4
jmp 0x8614d8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push 0x8695d4
push dword [ebp - 0x18]
mov dword [ebp - 0x20], edi
call dword [fcn.008611c8]
push dword [ebp - 0x18]
mov dword [ebp - 8], eax
call dword [fcn.008611d4]
cmp dword [ebp - 8], ebx
sete byte [ebp - 2]
jmp 0x861500
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x875108]
jne 0x865a6e
jmp 0x86151e
cmp byte [ebp - 1], 0
je 0x8659d7
or dword [esi + 0x40], 0x80000
mov dword [esi + 0x44], 5
jmp 0x8659d7
push 2
push esi
push ebx
push ecx
push eax
call dword [0x875060]
jmp 0x865a11
mov dword [ebp - 8], 0xd
jmp 0x865a68