Function at 0x418b8b
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
push edi
test esi, esi
je 0x418fba
mov eax, dword fs:[0x30]
mov ebx, esi
push 0x18
push 0
mov dword [ebp - 0x1c], ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
test eax, eax
je 0x418bd9
mov ecx, eax
call dword [sym.imp.ulib.dll_public:_void___thiscall_ARRAY::constructor_void_]
mov edi, eax
mov dword [ebp - 0x14], eax
jmp 0x418bde
xor edi, edi
mov dword [ebp - 0x14], edi
test edi, edi
je 0x418fba
push 0x19
push 0x32
mov ecx, edi
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_ARRAY::Initialize_unsigned_long_int__unsigned_long_int_]
test al, al
je 0x418fa8
mov edx, dword [ebp - 0x20]
xor ecx, ecx
mov eax, dword [esi]
mov dword [ebp - 0x28], ecx
mov dword [edx + 8], eax
mov eax, dword [esi + 4]
mov dword [edx + 0xc], eax
mov ax, word [esi + 8]
mov word [edx + 0x10], ax
mov ax, word [esi + 0xa]
mov word [edx + 0x12], ax
and dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebx + 0xc], eax
jbe 0x418f54
mov edx, dword [ebp + 0xc]
add ecx, 0x12
add edx, 0xfffffff0
add edx, esi
add ebx, ecx
mov dword [ebp - 0x18], edx
mov ecx, eax
mov dword [ebp - 0xc], ebx
lea eax, [ebx - 2]
cmp eax, edx
ja 0x418fcf
lea eax, [ebx - 2]
mov dword [ebp - 0x2c], eax
movzx eax, byte [eax]
sub eax, 1
je 0x418ea0
sub eax, 1
je 0x418e31
sub eax, 1
je 0x418c87
sub eax, 1
je 0x418d5f
sub eax, 1
je 0x418cd0
dec eax
sub eax, 1
jne 0x418f31
mov eax, dword fs:[0x30]
push 0x20
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x418de1
mov ecx, esi
call fcn.00419088
mov ecx, dword [0x45cfd4]
xor eax, eax
mov dword [esi], 0x4010ec
mov dword [esi + 4], ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
jmp 0x418de8
mov eax, dword [ebx + 2]
xor esi, esi
mov dword [ebp - 0x24], eax
mov eax, dword fs:[0x30]
push 0x1c
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
je 0x418d13
mov ecx, ebx
call fcn.00419088
mov eax, dword [0x45cfd8]
mov dword [ebx], 0x40115c
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x18], esi
jmp 0x418d15
mov ebx, esi
test ebx, ebx
je 0x418f97
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx]
push eax
movzx eax, byte [ecx - 1]
push eax
lea eax, [ecx + 0xe]
push eax
push dword [ecx + 2]
push dword [ecx + 0xa]
push dword [ecx + 6]
mov ecx, ebx
call fcn.00418a51
test al, al
je 0x418f81
push ebx
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x45f5a4]
mov ecx, edi
call esi
mov ebx, dword [ebp - 0xc]
jmp 0x418f2b
mov eax, dword fs:[0x30]
push 0x18
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov dword [ebp - 8], eax
test esi, esi
je 0x418d9e
mov ecx, esi
call fcn.00419088
mov ecx, dword [0x45cfe8]
xor eax, eax
mov dword [esi], 0x4010ec
mov dword [esi + 4], ecx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
jmp 0x418da3
xor esi, esi
mov dword [ebp - 8], esi
test esi, esi
je 0x418f97
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
movzx esi, word [ebx]
mov bl, byte [ebx - 1]
mov edx, dword [eax + 0xa]
mov ecx, dword [eax + 6]
mov eax, dword [eax + 2]
mov dword [edi + 0xc], eax
mov eax, edi
mov byte [eax + 8], 4
mov edi, dword [ebp - 0x14]
push dword [ebp - 8]
mov dword [eax + 0x14], edx
mov dword [eax + 0x10], ecx
mov byte [eax + 9], bl
mov word [eax + 0xa], si
jmp 0x418d46
xor eax, eax
mov esi, eax
mov dword [ebp - 8], eax
test esi, esi
je 0x418f97
movzx esi, word [ebx]
mov bl, byte [ebx - 1]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ntdll.dll_RtlCmDecodeMemIoResource]
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 2]
mov dword [edi + 0x10], ecx
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 6]
mov dword [edi + 0x14], ecx
mov ecx, edi
mov edi, dword [ebp - 0x14]
push ecx
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
mov byte [ecx + 8], 3
mov byte [ecx + 9], bl
mov word [ecx + 0xa], si
jmp 0x418d46
mov eax, dword fs:[0x30]
push 0x18
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov dword [ebp - 8], eax
test esi, esi
je 0x418e70
mov ecx, esi
call fcn.00419088
mov ecx, dword [0x45cfe0]
xor eax, eax
mov dword [esi], 0x4010ec
mov dword [esi + 4], ecx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
jmp 0x418e75
xor esi, esi
mov dword [ebp - 8], esi
test esi, esi
je 0x418f97
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
movzx esi, word [ebx]
mov bl, byte [ebx - 1]
mov edx, dword [eax + 6]
mov ecx, dword [eax + 2]
mov eax, dword [eax + 0xa]
mov dword [edi + 0xc], eax
mov eax, edi
mov byte [eax + 8], 2
jmp 0x418dc9
mov eax, dword fs:[0x30]
push 0x20
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov dword [ebp - 8], eax
test esi, esi
je 0x418edf
mov ecx, esi
call fcn.00419088
mov ecx, dword [0x45cfe4]
xor eax, eax
mov dword [esi], 0x4010ec
mov dword [esi + 4], ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
jmp 0x418ee4
xor esi, esi
mov dword [ebp - 8], esi
test esi, esi
je 0x418f97
movzx esi, word [ebx]
mov ecx, dword [ebx + 0xa]
mov eax, dword [ebx + 2]
mov edi, dword [ebp - 8]
mov dl, byte [ebx - 1]
push dword [ebp - 8]
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 6]
mov dword [edi + 0x14], eax
mov eax, edi
mov edi, dword [ebp - 0x14]
mov dword [eax + 0x18], ecx
mov word [eax + 0xa], si
mov byte [eax + 8], 1
mov byte [eax + 9], dl
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x45f5a4]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
inc ecx
add ebx, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
cmp ecx, dword [eax + 0xc]
jb 0x418c44
mov esi, dword [ebp + 8]
mov ebx, eax
mov edx, dword [ebp - 0x20]
mov eax, ecx
mov ecx, dword [ebp - 0x28]
shl eax, 4
add ebx, 0x10
add eax, dword [ebp - 0x24]
add ecx, 0x20
add ebx, eax
mov dword [edx + 0x14], edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ecx
cmp ecx, 0x20
jb 0x418c1d
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x418fe1
sub ebx, esi
mov dword [eax], ebx
jmp 0x418fe1
test ebx, ebx
je 0x418f97
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x45f5a4]
mov ecx, ebx
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x45f5a4]
mov ecx, edi
call esi
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x45f5a4]
mov ecx, edi
call esi
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419cc0
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x418fdb
mov edx, dword [ebp + 0xc]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x14], edi
mov al, 1
jmp 0x418fbc