Function at 0x100ca84
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x1025050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor esi, esi
stosd dword es:[edi], eax
mov eax, ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x100cad0
mov edi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
sub eax, ecx
mov ecx, dword fs:[0x18]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
mov eax, dword [ecx + 0x30]
push esi
push dword [eax + 0x18]
call edi
mov dword [ebp - 0x28], eax
cmp eax, esi
jne 0x100cb0c
mov dword [ebp - 0x18], 0xc000009a
jmp 0x100cbe8
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x100cb11
sub eax, edx
sar eax, 1
push ebx
inc eax
push eax
push dword [ebp - 0x28]
call fcn.01012a9c
push 0x2c
push dword [ebp - 0x28]
call dword [sym.imp.msvcrt.dll_wcschr]
mov ebx, eax
add esp, 0x14
cmp ebx, esi
mov esi, dword [sym.imp.msvcrt.dll__wcsnicmp]
je 0x100cb8e
xor eax, eax
mov word [ebx], ax
push 0xe
inc ebx
inc ebx
push 0x10017d4
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x100cb7a
lea eax, [ebp - 0x40]
push eax
push 0
add ebx, 0xe
push ebx
call fcn.0100c848
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x100cbce
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], eax
jmp 0x100cb8e
lea eax, [ebp - 0x14]
push eax
push ebx
mov dword [ebp - 0x34], ebx
call fcn.01010323
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x100cbce
mov ebx, dword [ebp - 0x28]
push 0x10017c8
push ebx
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x100cc4b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0x14
pop ecx
push ecx
push 0
push dword [eax + 0x18]
mov dword [ebp - 0x20], ecx
call edi
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
jne 0x100cc37
mov dword [ebp - 0x18], 0xc000009a
mov ebx, dword [ebp - 0x28]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor esi, esi
cmp dword [ebp - 0x24], esi
je 0x100cc03
push dword [ebp - 0x24]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x18], esi
jge 0x100cc23
cmp dword [ebp - 0x1c], esi
je 0x100cc23
push dword [ebp - 0x1c]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010125ff
leave
ret 0x14
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebx], 1
jmp 0x100ce2e
cmp dword [ebp - 0x2c], 0
je 0x100cce2
push 0xd
push 0x10017ac
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x100cce2
mov eax, dword [ebp - 0x2c]
or dword [eax], 0x40
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x1a]
push eax
call fcn.010104c7
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x100cbd1
mov eax, dword [ebp - 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100cc8a
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 0x16]
mov dword [ebp - 0x20], eax
mov eax, dword fs:[0x18]
push dword [ebp - 0x20]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call edi
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x100cbc7
push dword [ebp - 0x20]
push 0
push ebx
call fcn.01012644
mov eax, dword [ebp - 0x24]
add esp, 0xc
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x100ccd3
jmp 0x100cd68
push 0xa
push 0x1001794
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x100cd88
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x14]
push eax
call fcn.010104c7
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x100cbd1
mov eax, dword [ebp - 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100cd15
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 0x16]
mov dword [ebp - 0x20], eax
mov eax, dword fs:[0x18]
push dword [ebp - 0x20]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call edi
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x100cbc7
push dword [ebp - 0x20]
push 0
push ebx
call fcn.01012644
mov eax, dword [ebp - 0x24]
add esp, 0xc
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x100cd5e
push dword [ebp - 0x24]
sub eax, ecx
sar eax, 1
inc eax
push eax
lea eax, [ebx + 0x14]
push eax
call fcn.01012a9c
add esp, 0xc
mov dword [ebx], 2
jmp 0x100ce2e
push 5
push 0x1001788
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x100cdc0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebx + 0xa]
push eax
call fcn.0100ba33
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x100cbd1
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 3
jmp 0x100ce2e
push 8
push 0x1001774
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x100cdf8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.0100ba33
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x100cbd1
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 4
jmp 0x100ce2e
push 4
push 0x1001768
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x100ce50
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x30]
lea eax, [ebx + 8]
push eax
push dword [ebp + 8]
call fcn.0100bc35
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x100cbd1
mov ebx, dword [ebp - 0x1c]
cmp dword [ebp - 0x34], 0
je 0x100ce3e
lea edi, [ebx + 4]
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ebx
mov eax, dword [ebp - 0x3c]
mov dword [eax], ecx
jmp 0x100cbce
mov dword [ebp - 0x18], 0xc000000d
jmp 0x100cbd1