Function at 0x10065df
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov ax, word [esi + 0x2c]
jmp 0x10066a6
mov eax, dword [ebp + 0x20]
jmp 0x10067e9
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.01005512
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 0x1005431
xor eax, eax
inc eax
mov word [0x10382ee], ax
cmp dword [esi + 0x94], ebx
jne 0x100c275
cmp dword [esi + 0x98], ebx
jne 0x100c283
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 0x100c292
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.010067f5
push ebx
call fcn.010067f5
push 0x10381e0
push dword [esi + 0x40]
call fcn.01005ab4
cmp eax, ebx
mov dword [ebp + 0x20], eax
jl 0x100543a
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 0x100c2a1
push dword [ebp + 8]
push esi
push eax
call fcn.01003418
push ebx
push 1
push dword [0x10382b0]
call fcn.01006b9b
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [0x10382ac], eax
cmp eax, ebx
je 0x100c2aa
call fcn.01006f09
cmp eax, ebx
mov dword [ebp + 0x20], eax
jl 0x100c2f3
mov eax, dword [0x103825c]
mov dword [0x1038258], eax
call fcn.010056bd
call fcn.01006c87
cmp eax, ebx
mov dword [ebp + 0x20], eax
jl 0x100c2e8
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
call fcn.01005a23
cmp eax, ebx
mov dword [ebp + 0x20], eax
jl 0x100c2b3
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c
xor eax, eax
inc eax
mov word [0x10382f8], ax
jmp 0x10066b8
or dword [0x10382cc], 0x800
jmp 0x10066c4
or dword [0x10382cc], 0x100000
jmp 0x1006702
mov dword [ebp + 0x20], 0xc0000017
jmp 0x100c31d
mov dword [ebp + 0x20], 0xc0000017
jmp 0x100c308
mov esi, dword [sym.imp.ntdll.dll_DbgPrintEx]
push eax
push 0x100c32c
push 1
push 0x70
call esi
push 0x1009c78
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.0101e5da
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.0101aaf5
jmp 0x100543a