Function at 0x41bbcb
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
push edi
test esi, esi
je 0x41bfe9
mov eax, dword fs:[0x30]
mov ebx, esi
push 0x18
push 0
mov dword [ebp - 0x18], ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
test eax, eax
je 0x41bc0f
mov ecx, eax
call dword [sym.imp.ulib.dll_public:_void___thiscall_ARRAY::constructor_void_]
mov edi, eax
mov dword [ebp - 0xc], eax
jmp 0x41bc14
xor edi, edi
mov dword [ebp - 0xc], edi
test edi, edi
je 0x41bfe9
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 0x41bfd7
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
mov eax, dword [esi]
mov dword [ebp - 0x24], 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 - 0x20], 0
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [ebx + 0xc], eax
jbe 0x41bf86
mov edx, dword [ebp + 0xc]
add ecx, 0x12
add edx, 0xfffffff0
add edx, esi
add ebx, ecx
mov dword [ebp - 0x10], edx
mov ecx, eax
mov dword [ebp - 4], ebx
lea eax, [ebx - 2]
cmp eax, edx
ja 0x41bff2
lea eax, [ebx - 2]
mov dword [ebp - 0x28], eax
movzx eax, byte [eax]
sub eax, 1
je 0x41bed4
sub eax, 1
je 0x41be65
sub eax, 1
je 0x41bcbd
sub eax, 1
je 0x41bd85
sub eax, 1
je 0x41bd06
dec eax
sub eax, 1
jne 0x41bf63
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 - 0x14], esi
test esi, esi
je 0x41be1b
mov ecx, esi
call fcn.0041c0a8
mov ecx, dword [0x45ef54]
xor eax, eax
mov dword [esi], 0x40114c
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 0x41be22
mov eax, dword [ebx + 2]
mov dword [ebp - 0x20], eax
mov eax, dword fs:[0x30]
push 0x1c
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov dword [ebp - 0x14], eax
test esi, esi
je 0x41bd4d
mov ecx, esi
call fcn.0041c0a8
mov eax, dword [0x45ef58]
mov dword [esi + 4], eax
xor eax, eax
mov dword [esi], 0x401184
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
jmp 0x41bd52
xor esi, esi
mov dword [ebp - 0x14], esi
test esi, esi
je 0x41bfc6
movzx eax, word [ebx]
mov ecx, esi
push eax
movzx eax, byte [ebx - 1]
push eax
lea eax, [ebx + 0xe]
push eax
push dword [ebx + 2]
push dword [ebx + 0xa]
push dword [ebx + 6]
call fcn.0041bab7
test al, al
je 0x41bfb3
push esi
jmp 0x41bf4c
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 - 0x14], eax
test esi, esi
je 0x41bdc4
mov ecx, esi
call fcn.0041c0a8
mov ecx, dword [0x45ef68]
xor eax, eax
mov dword [esi], 0x40114c
mov dword [esi + 4], ecx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
jmp 0x41bdc9
xor esi, esi
mov dword [ebp - 0x14], esi
test esi, esi
je 0x41bfc6
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0x14]
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
push dword [ebp - 0x14]
mov dword [eax + 0x14], edx
mov dword [eax + 0x10], ecx
mov byte [eax + 9], bl
mov word [eax + 0xa], si
mov edi, dword [ebp - 0xc]
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4615ec]
mov ecx, edi
call esi
mov ebx, dword [ebp - 4]
jmp 0x41bf5d
xor eax, eax
mov esi, eax
mov dword [ebp - 0x14], eax
test esi, esi
je 0x41bfc6
movzx esi, word [ebx]
mov bl, byte [ebx - 1]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ntdll.dll_RtlCmDecodeMemIoResource]
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 2]
mov dword [edi + 0x10], ecx
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 6]
mov dword [edi + 0x14], ecx
mov ecx, edi
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 0x41bdff
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 - 0x14], eax
test esi, esi
je 0x41bea4
mov ecx, esi
call fcn.0041c0a8
mov ecx, dword [0x45ef60]
xor eax, eax
mov dword [esi], 0x40114c
mov dword [esi + 4], ecx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
jmp 0x41bea9
xor esi, esi
mov dword [ebp - 0x14], esi
test esi, esi
je 0x41bfc6
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0x14]
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 0x41bdef
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 - 0x14], eax
test esi, esi
je 0x41bf13
mov ecx, esi
call fcn.0041c0a8
mov ecx, dword [0x45ef64]
xor eax, eax
mov dword [esi], 0x40114c
mov dword [esi + 4], ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
jmp 0x41bf18
xor esi, esi
mov dword [ebp - 0x14], esi
test esi, esi
je 0x41bfc6
mov edi, dword [ebp - 0x14]
mov eax, dword [ebx + 2]
movzx esi, word [ebx]
mov dl, byte [ebx - 1]
mov ecx, dword [ebx + 0xa]
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 6]
mov dword [edi + 0x14], eax
mov eax, edi
mov edi, dword [ebp - 0xc]
push eax
mov dword [eax + 0x18], ecx
mov byte [eax + 8], 1
mov byte [eax + 9], dl
mov word [eax + 0xa], si
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4615ec]
mov ecx, edi
call esi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
inc ecx
add ebx, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
cmp ecx, dword [eax + 0xc]
jb 0x41bc7a
mov esi, dword [ebp + 8]
mov ebx, eax
mov edx, dword [ebp - 0x1c]
mov eax, ecx
mov ecx, dword [ebp - 0x24]
shl eax, 4
add ebx, 0x10
add eax, dword [ebp - 0x20]
add ecx, 0x20
add ebx, eax
mov dword [edx + 0x14], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ecx
cmp ecx, 0x20
jb 0x41bc53
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41c004
sub ebx, esi
mov dword [eax], ebx
jmp 0x41c004
mov eax, dword [esi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x4615ec]
mov ecx, dword [ebp - 0x14]
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x4615ec]
mov ecx, edi
call esi
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x4615ec]
mov ecx, edi
call esi
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41bffe
mov edx, dword [ebp + 0xc]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x14], edi
mov al, 1
jmp 0x41bfeb