Function at 0x4a7800
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x5a4658
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x30], esi
push 1
lea eax, [esp + 0x34]
push eax
lea edx, [esi + 2]
lea eax, [esi + 1]
mov dword [esp + 0x54], esi
call fcn.004d0980
test eax, eax
je 0x4a785d
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x4a7856
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4a7a8e
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
mov ebp, eax
mov edi, ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], edi
test ebp, ebp
mov esi, dword [eax + 4]
je 0x4a787d
cmp ebp, eax
je 0x4a7882
call fcn.00578ff3
cmp edi, esi
je 0x4a7a7a
test ebp, ebp
jne 0x4a7893
call fcn.00578ff3
cmp edi, dword [ebp + 4]
jne 0x4a789d
call fcn.00578ff3
lea edx, [esp + 0x18]
push 0x5bf118
lea ecx, [edi + 0xc]
push edx
call fcn.0043bdd0
push eax
lea eax, [esp + 0x20]
push eax
mov ebx, 0x5bf11c
mov byte [esp + 0x5c], 1
call fcn.00412480
add esp, 0x10
mov byte [esp + 0x4c], 2
mov edx, dword [eax]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a78d3
sub eax, esi
sar eax, 1
push edx
mov ecx, eax
lea esi, [esp + 0x34]
call fcn.004d0b10
mov byte [esp + 0x4c], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a7913
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a7938
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, dword [ebp + 4]
jne 0x4a7942
call fcn.00578ff3
mov eax, dword [edi + 0x14]
mov ebp, dword [eax]
mov eax, dword [esp + 0x2c]
add edi, 0x10
add eax, 0xc
lea esi, [eax + 4]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], edi
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
cmp ecx, dword [edx + 4]
jne 0x4a7972
call fcn.00578ff3
test edi, edi
mov ebx, dword [esi + 4]
je 0x4a797d
cmp edi, esi
je 0x4a7982
call fcn.00578ff3
cmp ebp, ebx
je 0x4a7a60
test edi, edi
jne 0x4a7993
call fcn.00578ff3
cmp ebp, dword [edi + 4]
jne 0x4a799d
call fcn.00578ff3
lea esi, [ebp + 0xc]
lea eax, [esp + 0x20]
push esi
push eax
mov ebx, 0x5bcffc
call fcn.00412480
add esp, 8
mov ebx, eax
mov byte [esp + 0x4c], 3
cmp ebp, dword [edi + 4]
jne 0x4a79c4
call fcn.00578ff3
add esi, 4
lea ecx, [esp + 0x1c]
push esi
push ecx
call fcn.00423280
add esp, 8
mov byte [esp + 0x4c], 4
mov edx, dword [eax]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a79e1
sub eax, esi
sar eax, 1
push edx
mov ecx, eax
lea esi, [esp + 0x34]
call fcn.004d0b10
mov byte [esp + 0x4c], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a7a21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a7a46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x38]
call fcn.0046ca60
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x24]
jmp 0x4a7960
lea esi, [esp + 0x28]
call fcn.00464b40
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x2c]
jmp 0x4a7872
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4a7a89
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 4