Function at 0x100197f0
Capabilities:
Check for peb beingdebugged flag
Get process heap flags
Get process heap force flags

Disassembly:
sub esp, 0x408
mov eax, dword [0x10073980]
xor eax, esp
mov dword [esp + 0x404], eax
push ebx
push ebp
push 0x1007e024
mov ebx, ecx
call dword [0x10062064]
xor ebp, ebp
cmp dword [0x10080008], ebp
jne 0x10019a39
push esi
push edi
mov dword [0x10080008], 1
mov dword [esp + 0x14], ebp
mov eax, dword fs:[0x18]
mov dword [esp + 0x14], eax
mov eax, dword [0x10080004]
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x20], ecx
mov edx, dword [0x10080004]
mov dword [edx + 0x34c], ebx
mov edi, dword [0x10080004]
mov esi, dword [ebx]
add edi, 0x30
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
mov edi, dword [0x10080004]
mov esi, dword [ebx + 4]
sub edi, 0xffffff80
mov ecx, 0xb3
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x10080004]
mov dword [eax + 0x5f4], ebp
call dword [0x1006207c]
mov ecx, dword [0x10080004]
mov dword [ecx + 0x18], eax
push 0x206
lea eax, [esp + 0x212]
xor edx, edx
push ebp
push eax
mov word [esp + 0x218], dx
call fcn.10030da0
push 0x18e
lea edx, [esp + 0x8e]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x94], cx
call fcn.10030da0
add esp, 0x18
push ebp
push ebp
mov ebx, 1
push ebx
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x38], 0xc
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebx
call dword [0x100620d0]
push 0x40
lea ecx, [esp + 0x40]
push ebp
push ecx
mov esi, eax
mov dword [esp + 0x44], 0x44
call fcn.10030da0
xor eax, eax
add esp, 0xc
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call dword [0x10062100]
mov edx, ebx
mov dword [esp + 0x10], eax
mov eax, 0x10080010
mov word [esp + 0x68], dx
mov dword [esp + 0x64], ebx
xor edx, edx
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10019940
sub eax, edi
sar eax, 1
je 0x10019956
mov edx, 0x10080010
push ebp
lea eax, [esp + 0x210]
push eax
push 0x104
push ebp
push 0x10066228
push edx
call dword [0x100620f0]
mov eax, dword [esp + 0x10]
push 2
push ebx
push ebp
lea ecx, [esp + 0x1c]
push ecx
push eax
push eax
push eax
call dword [0x10062114]
mov edi, eax
mov eax, dword [0x1008000c]
cmp eax, ebp
je 0x10019994
call eax
cmp edi, ebp
mov edi, dword [0x1006209c]
je 0x10019a17
cmp esi, ebp
je 0x10019a17
cmp word [esp + 0x20c], bp
je 0x10019a17
call dword [0x10062088]
mov edx, dword [0x10080004]
push eax
mov eax, dword [esp + 0x14]
push edx
push eax
push esi
lea ecx, [esp + 0x8c]
push 0x10066248
push ecx
call dword [0x100622e0]
add esp, 0x18
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x3c]
push eax
push ebp
push ebp
push ebp
push ebx
push ebp
push ebp
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x230]
push edx
call dword [0x100620ac]
test eax, eax
je 0x10019a17
mov eax, dword [esp + 0x18]
push eax
call edi
mov ecx, dword [esp + 0x1c]
push ecx
call edi
push 0xffffffffffffffff
push esi
call dword [0x100620b0]
push esi
call edi
mov eax, dword [0x10080218]
pop edi
pop esi
cmp eax, ebp
je 0x10019a27
call eax
push 0x1234
call dword [0x10062100]
push eax
call dword [0x10062094]
mov ecx, dword [esp + 0x40c]
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1002d0ef
add esp, 0x408
ret