Function at 0x41b9cb
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 0x41bdf0
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 0x41ba0f
mov ecx, eax
call dword [sym.imp.ulib.dll_public:_void___thiscall_ARRAY::constructor_void_]
mov edi, eax
mov dword [ebp - 0xc], eax
jmp 0x41ba14
xor edi, edi
mov dword [ebp - 0xc], edi
test edi, edi
je 0x41bdf0
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 0x41bdde
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 0x41bd8a
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 0x41bdf9
lea eax, [ebx - 2]
mov dword [ebp - 0x28], eax
movzx eax, byte [eax]
sub eax, 1
je 0x41bcd6
sub eax, 1
je 0x41bc67
sub eax, 1
je 0x41babd
sub eax, 1
je 0x41bb95
sub eax, 1
je 0x41bb06
dec eax
sub eax, 1
jne 0x41bd67
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 0x41bc17
mov ecx, esi
call fcn.0041bea8
mov ecx, dword [0x45ef4c]
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 0x41bc1e
mov eax, dword [ebx + 2]
xor esi, esi
mov dword [ebp - 0x20], 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 0x41bb49
mov ecx, ebx
call fcn.0041bea8
mov eax, dword [0x45ef50]
mov dword [ebx], 0x4011bc
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 0x41bb4b
mov ebx, esi
test ebx, ebx
je 0x41bdcd
mov ecx, dword [ebp - 4]
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.0041b8bb
test al, al
je 0x41bdb7
push ebx
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 0x41bd61
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 0x41bbd4
mov ecx, esi
call fcn.0041bea8
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 0x41bbd9
xor esi, esi
mov dword [ebp - 0x14], esi
test esi, esi
je 0x41bdcd
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
mov edi, dword [ebp - 0xc]
push dword [ebp - 0x14]
mov dword [eax + 0x14], edx
mov dword [eax + 0x10], ecx
mov byte [eax + 9], bl
mov word [eax + 0xa], si
jmp 0x41bb7c
xor eax, eax
mov esi, eax
mov dword [ebp - 0x14], eax
test esi, esi
je 0x41bdcd
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
mov edi, dword [ebp - 0xc]
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 0x41bb7c
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 0x41bca6
mov ecx, esi
call fcn.0041bea8
mov ecx, dword [0x45ef58]
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 0x41bcab
xor esi, esi
mov dword [ebp - 0x14], esi
test esi, esi
je 0x41bdcd
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 0x41bbff
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 0x41bd15
mov ecx, esi
call fcn.0041bea8
mov ecx, dword [0x45ef5c]
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 0x41bd1a
xor esi, esi
mov dword [ebp - 0x14], esi
test esi, esi
je 0x41bdcd
movzx esi, word [ebx]
mov ecx, dword [ebx + 0xa]
mov eax, dword [ebx + 2]
mov edi, dword [ebp - 0x14]
mov dl, byte [ebx - 1]
push dword [ebp - 0x14]
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 6]
mov dword [edi + 0x14], eax
mov eax, edi
mov edi, dword [ebp - 0xc]
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 [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 0x41ba7a
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 0x41ba53
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41be0b
sub ebx, esi
mov dword [eax], ebx
jmp 0x41be0b
test ebx, ebx
je 0x41bdcd
mov eax, dword [ebx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x4615ec]
mov ecx, ebx
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 0x41be05
mov edx, dword [ebp + 0xc]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x14], edi
mov al, 1
jmp 0x41bdf2