Function at 0x41127c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
shr eax, 0x18
xor edx, edx
and eax, 0xf
push esi
push edi
mov dword [ebp - 8], edx
mov ebx, edx
dec eax
je 0x411515
dec eax
je 0x411487
dec eax
je 0x411456
dec eax
je 0x411360
dec eax
je 0x411332
dec eax
je 0x411301
mov ebx, dword [ebp + 0xc]
dec eax
je 0x4112f2
mov eax, dword fs:[0x30]
push ebx
push edx
push dword [eax + 0x18]
mov edi, ebx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x4112df
mov ebx, 0xc0000017
jmp 0x411572
mov ecx, dword [ebp + 8]
push ebx
push ecx
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x4115dc
test bl, 7
je 0x4112bc
mov ebx, 0xc0000024
jmp 0x411572
mov eax, dword [ebp + 0xc]
xor edi, edi
dec eax
inc edi
cmp eax, edi
ja 0x4112f7
mov eax, dword fs:[0x30]
push edi
push edx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x4112d5
mov ecx, dword [ebp + 8]
cmp byte [ecx], bl
setne al
mov byte [esi], al
jmp 0x4115dc
push 8
pop eax
cmp dword [ebp + 0xc], eax
jne 0x4112f7
push eax
mov eax, dword fs:[0x30]
push edx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
test eax, eax
je 0x4112d5
mov esi, dword [ebp + 8]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 8
pop edi
mov esi, eax
jmp 0x4115dc
mov eax, dword [ebp + 0xc]
test al, 0xf
jne 0x4112f7
shr eax, 4
mov dword [ebp + 0xc], eax
mov edi, edx
mov dword [ebp - 0xc], edx
test eax, eax
je 0x4113c8
mov ebx, dword [ebp + 8]
mov dword [ebp + 0x10], ebx
mov esi, eax
jmp 0x411383
mov ebx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.ntdll.dll_RtlStringFromGUID]
mov ebx, eax
test ebx, ebx
js 0x411572
movzx ecx, word [ebp - 0x18]
lea eax, [ebp - 0x18]
add ecx, 2
push eax
add edi, ecx
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, dword [ebp - 0xc]
add dword [ebp + 0x10], 0x10
inc eax
push 0
mov dword [ebp - 0xc], eax
pop edx
cmp eax, esi
jb 0x411380
mov eax, dword fs:[0x30]
add edi, 2
push edi
push edx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov dword [ebp + 0x10], esi
test esi, esi
je 0x4112d5
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0xc], ecx
jbe 0x41144c
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.ntdll.dll_RtlStringFromGUID]
mov ebx, eax
test ebx, ebx
js 0x4115ec
movzx esi, word [ebp - 0x18]
add esi, 2
push esi
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call sub.msvcrt.dll_memcpy
add dword [ebp - 0xc], esi
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
inc ecx
add eax, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp + 8], eax
cmp ecx, dword [ebp + 0xc]
jb 0x4113f9
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov word [eax], cx
jmp 0x4115d8
cmp dword [ebp + 0xc], 0x10
jne 0x4112f7
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.ntdll.dll_RtlStringFromGUID]
mov ebx, eax
test ebx, ebx
js 0x411572
movzx edi, word [ebp - 0x18]
mov esi, dword [ebp - 0x14]
add edi, 2
jmp 0x4115d8
mov eax, dword [ebp + 0xc]
test al, 1
jne 0x4112f7
mov ecx, eax
xor esi, esi
shr ecx, 1
mov byte [ebp + 0x13], dl
mov edx, dword [ebp + 8]
je 0x4114ab
cmp word [edx], si
je 0x4114be
add edx, 2
dec ecx
jne 0x4114a0
mov cl, bl
mov edi, eax
test cl, cl
jne 0x4114d5
lea edi, [eax + 2]
cmp edi, eax
jb 0x4114c5
mov ebx, esi
jmp 0x4114cd
mov cl, 1
mov byte [ebp + 0x13], cl
jmp 0x4114ad
or edi, 0xffffffff
mov ebx, 0xc0000095
test ebx, ebx
js 0x411572
mov eax, dword fs:[0x30]
push edi
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x4112d5
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp byte [ebp + 0x13], 0
jne 0x4115d8
xor eax, eax
mov word [edi + esi - 2], ax
jmp 0x4115d8
mov esi, dword [ebp + 8]
cmp dword [esi], 6
lea eax, [ebp - 8]
push eax
jne 0x41152c
push dword [ebp + 0xc]
push esi
call fcn.004121c4
jmp 0x411538
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00411c70
mov ebx, eax
test ebx, ebx
js 0x411557
mov eax, dword [ebp - 8]
mov dword [ebp + 0xc], eax
mov eax, dword [eax + 8]
add eax, 0x10
mov dword [ebp + 8], eax
cmp eax, 0x10
jae 0x41157b
mov ebx, 0xc000000d
xor esi, esi
cmp dword [ebp - 8], 0
je 0x411572
push dword [ebp - 8]
mov eax, dword fs:[0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14
push eax
mov eax, dword fs:[0x30]
xor ecx, ecx
push ecx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x41159c
mov ebx, 0xc0000017
jmp 0x411557
add esi, 4
mov edi, eax
mov eax, dword [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [eax + 8]
mov esi, dword [ebp + 0x10]
push dword [ebp - 8]
lea eax, [esi + 0x10]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword fs:[0x30]
add esp, 0xc
push dword [ebp - 8]
xor edi, edi
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [ebp - 8], edi
mov edi, dword [ebp + 8]
test ebx, ebx
js 0x4115ef
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
xor eax, eax
mov ebx, eax
jmp 0x411572
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x411572
mov eax, dword fs:[0x30]
push esi
xor esi, esi
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x411559