Function at 0x100c954
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 0x100c9a0
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 0x100c9dc
mov dword [ebp - 0x18], 0xc000009a
jmp 0x100cab8
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x100c9e1
sub eax, edx
sar eax, 1
push ebx
inc eax
push eax
push dword [ebp - 0x28]
call fcn.0101296c
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 0x100ca5e
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 0x100ca4a
lea eax, [ebp - 0x40]
push eax
push 0
add ebx, 0xe
push ebx
call fcn.0100c718
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x100ca9e
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], eax
jmp 0x100ca5e
lea eax, [ebp - 0x14]
push eax
push ebx
mov dword [ebp - 0x34], ebx
call fcn.010101f4
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x100ca9e
mov ebx, dword [ebp - 0x28]
push 0x10017c8
push ebx
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x100cb1b
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 0x100cb07
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 0x100cad3
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 0x100caf3
cmp dword [ebp - 0x1c], esi
je 0x100caf3
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.010124d0
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 0x100ccfe
cmp dword [ebp - 0x2c], 0
je 0x100cbb2
push 0xd
push 0x10017ac
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x100cbb2
mov eax, dword [ebp - 0x2c]
or dword [eax], 0x40
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x1a]
push eax
call fcn.01010398
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x100caa1
mov eax, dword [ebp - 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100cb5a
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 0x100ca97
push dword [ebp - 0x20]
push 0
push ebx
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x24]
add esp, 0xc
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x100cba3
jmp 0x100cc38
push 0xa
push 0x1001794
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x100cc58
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x14]
push eax
call fcn.01010398
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x100caa1
mov eax, dword [ebp - 0x24]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100cbe5
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 0x100ca97
push dword [ebp - 0x20]
push 0
push ebx
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x24]
add esp, 0xc
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x100cc2e
push dword [ebp - 0x24]
sub eax, ecx
sar eax, 1
inc eax
push eax
lea eax, [ebx + 0x14]
push eax
call fcn.0101296c
add esp, 0xc
mov dword [ebx], 2
jmp 0x100ccfe
push 5
push 0x1001788
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x100cc90
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebx + 0xa]
push eax
call fcn.0100b903
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x100caa1
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 3
jmp 0x100ccfe
push 8
push 0x1001774
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x100ccc8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebx + 0x10]
push eax
call fcn.0100b903
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x100caa1
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 4
jmp 0x100ccfe
push 4
push 0x1001768
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x100cd20
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.0100bb05
mov dword [ebp - 0x18], eax
test eax, eax
jl 0x100caa1
mov ebx, dword [ebp - 0x1c]
cmp dword [ebp - 0x34], 0
je 0x100cd0e
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 0x100ca9e
mov dword [ebp - 0x18], 0xc000000d
jmp 0x100caa1