Function at 0x1007ac7
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov ax, word [esi + 0x2c]
jmp 0x1007b8e
mov eax, dword [ebp + 0x20]
jmp 0x1007cd1
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x20]
mov ax, word [esi + 0x28]
mov word [0x1038418], ax
mov ax, word [esi + 0x2a]
mov word [0x103841a], ax
mov eax, dword [esi + 0x30]
mov dword [0x103841c], eax
mov eax, dword [esi + 0x48]
push edi
mov dword [0x1038420], eax
lea eax, [esi + 0x50]
push eax
push 0x20
push 0x1038424
call fcn.010058fe
mov eax, dword [esi + 0x44]
mov dword [0x1038464], eax
mov eax, dword [esi + 0x4c]
mov dword [0x1038468], eax
mov eax, dword [esi + 0xf0]
mov dword [0x103846c], eax
mov eax, dword [esi + 0x34]
mov dword [0x1038470], eax
mov eax, dword [esi + 0x24]
mov dword [0x1038474], eax
mov eax, dword [esi + 0x38]
mov dword [0x1038478], eax
mov eax, dword [esi + 0xa0]
neg eax
sbb eax, eax
and eax, 0x10000
or dword [0x10382cc], eax
mov eax, dword [esi + 0x90]
mov dword [0x103847c], eax
mov eax, dword [esi + 0x18]
mov dword [0x10382bc], eax
mov eax, dword [esi + 0x1c]
mov dword [0x10382c0], eax
mov eax, dword [esi + 0x14]
mov dword [0x10382c4], eax
mov eax, dword [esi + 0x20]
xor ebx, ebx
mov dword [0x10382b8], eax
mov byte [0x10382ca], bl
test byte [esi + 0x24], 1
jne 0x10053bd
xor eax, eax
inc eax
mov word [0x10382ee], ax
cmp dword [esi + 0x94], ebx
jne 0x100c5b0
cmp dword [esi + 0x98], ebx
jne 0x100c5be
cmp dword [esi + 0x9c], ebx
setne al
mov byte [0x10382ed], al
mov ax, word [esi + 0xa4]
mov word [0x10382a8], ax
mov ax, word [esi + 0xa8]
mov word [0x10382a6], ax
cmp dword [esi + 0xac], ebx
jne 0x100c5cd
and dword [0x10382cc], 0xffefffff
push 0x40
lea eax, [esi + 0xb0]
push eax
push 0x1038348
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
push 1
call fcn.01007cdd
push ebx
call fcn.01007cdd
push 0x10381e0
push dword [esi + 0x40]
call fcn.01007226
cmp eax, ebx
mov dword [ebp + 0x20], eax
jl 0x10053c6
mov esi, dword [ebp + 0xc]
mov ecx, dword [0x1038030]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
add esi, 2
push esi
add ecx, 0x100000
push ecx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [0x10382b0], eax
cmp eax, ebx
je 0x100c5dc
push dword [ebp + 8]
push esi
push eax
call fcn.010034fc
push ebx
push 1
push dword [0x10382b0]
call fcn.01005a3d
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [0x10382ac], eax
cmp eax, ebx
je 0x100c5e5
call fcn.01007f04
cmp eax, ebx
mov dword [ebp + 0x20], eax
jl 0x100c62e
mov eax, dword [0x103825c]
mov dword [0x1038258], eax
call fcn.01006ece
call fcn.01007d24
cmp eax, ebx
mov dword [ebp + 0x20], eax
jl 0x100c623
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
call fcn.01007195
cmp eax, ebx
mov dword [ebp + 0x20], eax
jl 0x100c5ee
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c
xor eax, eax
inc eax
mov word [0x10382f8], ax
jmp 0x1007ba0
or dword [0x10382cc], 0x800
jmp 0x1007bac
or dword [0x10382cc], 0x100000
jmp 0x1007bea
mov dword [ebp + 0x20], 0xc0000017
jmp 0x100c658
mov dword [ebp + 0x20], 0xc0000017
jmp 0x100c643
mov esi, dword [sym.imp.ntdll.dll_DbgPrintEx]
push eax
push 0x100c668
push 1
push 0x70
call esi
push 0x100ac30
push 1
push 0x70
call esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
add esp, 0x1c
push dword [0x10383d0]
push ebx
push dword [eax + 0x18]
call edi
push dword [0x103825c]
call fcn.0101e616
push dword [0x10382b0]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call edi
push dword [0x10382ac]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call edi
push 0x10381e0
call fcn.0101ac3e
jmp 0x10053c6