Function at 0x1017c340
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x148
mov esi, esp
mov dword [esi + 0x130], ebp
lea edi, [esi + 0x138]
lea edx, [esi + 0x46]
lea eax, [esi + 0xf0]
lea ebx, [esi + 0x30]
mov dword [edi - 4], esp
mov dword [edi + 8], 0xffffffff
mov dword [edi + 4], 0x10191f10
mov ecx, dword fs:[0]
mov dword [edi], ecx
lea ecx, [esi + 0x44]
mov dword fs:[0], edi
push ecx
push edx
push eax
push dword [ebp + 0x14]
mov dword [esi + 0x14], ebx
push ebx
call fcn.1017ddd0
add esp, 0x14
xor eax, eax
lea ecx, [esi + 0x18]
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [ecx + 8], eax
mov dword [edi + 8], eax
push eax
push 0xa
call fcn.101926a0
cmp byte [esi + 0x23], 0
lea eax, [esi + 0x18]
jns 0x1017c3c3
mov eax, dword [esi + 0x18]
lea ecx, [esi + 0x2c]
mov dword [esi + 0xc], eax
lea edx, [esi + 0x48]
mov dword [ecx], eax
lea eax, [esi + 0x50]
lea ecx, [esi + 0x28]
mov dword [edx], 0
lea edx, [esi + 0x13]
mov dword [ecx], eax
lea ecx, [esi + 3]
mov byte [edx], 0x45
mov byte [ecx], 1
mov ecx, dword [ebp + 0x10]
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1017c408
mov eax, dword [ecx + 0xc]
mov edx, dword [esi + 4]
mov ebx, dword [esi + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1017c414
movzx eax, word [eax]
jmp 0x1017c425
mov edx, dword [esi + 4]
mov ebx, dword [esi + 0xc]
xor ecx, ecx
xor edi, edi
jmp 0x1017c431
mov eax, dword [ecx]
mov dword [esi + 8], ecx
call dword [eax + 0x20]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
mov ebx, dword [esi + 0xc]
xor edi, edi
cmp ax, 0xffff
je 0x1017c42f
mov edi, ecx
mov ecx, edi
test edx, edx
mov dword [esi + 8], ecx
je 0x1017c46a
mov eax, dword [edx + 0xc]
cmp eax, dword [edx + 0x10]
je 0x1017c445
movzx eax, word [eax]
jmp 0x1017c45b
mov eax, dword [edx]
mov ecx, edx
mov dword [esi + 0x3c], edi
call dword [eax + 0x20]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
mov ebx, dword [esi + 0xc]
mov edi, dword [esi + 0x3c]
cmp ax, 0xffff
je 0x1017c46a
test edi, edi
je 0x1017c474
jmp 0x1017c56c
xor edx, edx
test edi, edi
je 0x1017c56c
mov dword [esi + 4], edx
movzx edx, byte [esi + 0x23]
mov eax, dword [esi + 0x2c]
test dl, dl
jns 0x1017c485
mov edx, dword [esi + 0x1c]
mov edi, edx
add edx, ebx
cmp eax, edx
jne 0x1017c4d7
mov dword [esi + 0xc], edi
lea eax, [edi + edi]
lea ecx, [esi + 0x18]
push 0
push eax
call fcn.101926a0
mov eax, dword [esi + 0x20]
mov ecx, 0x7fffffff
and eax, ecx
mov ecx, 0xa
dec eax
cmp byte [esi + 0x23], 0
cmovns eax, ecx
lea ecx, [esi + 0x18]
push 0
push eax
call fcn.101926a0
mov ecx, dword [esi + 8]
cmp byte [esi + 0x23], 0
lea ebx, [esi + 0x18]
jns 0x1017c4cf
mov ebx, dword [esi + 0x18]
mov eax, dword [esi + 0xc]
add eax, ebx
mov dword [esi + 0x2c], eax
mov eax, dword [ecx + 0xc]
movzx edx, word [esi + 0x44]
movzx edi, word [esi + 0x46]
mov dword [esi + 0xc], ebx
cmp eax, dword [ecx + 0x10]
je 0x1017c4ef
movzx eax, word [eax]
jmp 0x1017c507
mov eax, dword [ecx]
mov word [esi + 0x42], di
mov word [esi + 0x3c], dx
call dword [eax + 0x20]
mov ebx, dword [esi + 0xc]
movzx edx, word [esi + 0x3c]
movzx edi, word [esi + 0x42]
movzx ecx, dx
movzx edx, di
movzx eax, ax
lea edi, [esi + 0xf0]
push edi
lea edi, [esi + 0x48]
push edi
lea edi, [esi + 0x28]
push edi
lea edi, [esi + 0x50]
push edi
lea edi, [esi + 0x30]
push edi
push ecx
push edx
lea ecx, [esi + 0x2c]
push ecx
push ebx
lea ecx, [esi + 0x13]
push ecx
lea ecx, [esi + 3]
push ecx
push eax
call fcn.1017df70
add esp, 0x30
mov ecx, dword [esi + 8]
test eax, eax
jne 0x1017c566
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1017c559
add eax, 2
mov dword [ecx + 0xc], eax
jmp 0x1017c3f1
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, dword [esi + 8]
jmp 0x1017c3f1
mov edx, dword [esi + 4]
mov ebx, dword [esi + 0xc]
movzx eax, byte [esi + 0x3b]
test al, al
jns 0x1017c577
mov eax, dword [esi + 0x34]
test eax, eax
mov dword [esi + 4], edx
je 0x1017c5a1
cmp byte [esi + 3], 0
je 0x1017c5a1
mov eax, dword [esi + 0x28]
lea edx, [esi + 0x50]
mov ecx, eax
sub ecx, edx
cmp ecx, 0x9f
jg 0x1017c5a1
mov ecx, dword [esi + 0x48]
lea edx, [eax + 4]
mov dword [esi + 0x28], edx
mov dword [eax], ecx
push dword [ebp + 0x18]
push dword [esi + 0x2c]
push ebx
call fcn.10191430
add esp, 0xc
fstp dword [esi + 0x4c]
movss xmm0, dword [esi + 0x4c]
mov eax, dword [ebp + 0x1c]
movss dword [eax], xmm0
movzx edx, byte [esi + 0x3b]
mov eax, dword [esi + 0x28]
test dl, dl
mov ecx, edx
jns 0x1017c5cf
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x1017c68a
mov ecx, eax
lea edi, [esi + 0x50]
sub ecx, edi
cmp ecx, 5
jl 0x1017c68a
lea ecx, [esi + 0x50]
cmp ecx, eax
je 0x1017c60f
mov edi, ecx
lea ecx, [eax - 4]
cmp ecx, edi
jbe 0x1017c60f
lea ebx, [esi + 0x50]
mov edx, dword [ebx]
mov edi, dword [ecx]
mov dword [ebx], edi
mov dword [ecx], edx
add ebx, 4
add ecx, 0xfffffffc
cmp ebx, ecx
jb 0x1017c5fa
mov dl, byte [esi + 0x3b]
test dl, dl
jns 0x1017c619
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x14], ecx
mov ecx, dword [esi + 0x14]
add eax, 0xfffffffc
lea edi, [esi + 0x50]
mov cl, byte [ecx]
mov ch, cl
dec ch
cmp ch, 0x7e
setb ch
cmp eax, edi
jbe 0x1017c673
test dl, dl
jns 0x1017c63b
mov edx, dword [esi + 0x34]
jmp 0x1017c63e
movzx edx, dl
add edx, dword [esi + 0x14]
test ch, 1
je 0x1017c64d
movzx ecx, cl
cmp dword [edi], ecx
jne 0x1017c681
mov ebx, dword [esi + 0x14]
mov ecx, edx
sub ecx, ebx
cmp ecx, 1
lea ecx, [ebx + 1]
cmovg ebx, ecx
add edi, 4
mov cl, byte [ebx]
mov dword [esi + 0x14], ebx
mov ch, cl
dec ch
cmp ch, 0x7e
setb ch
cmp edi, eax
jb 0x1017c641
test ch, ch
je 0x1017c68a
mov eax, dword [eax]
movzx ecx, cl
dec eax
cmp eax, ecx
jb 0x1017c68a
mov eax, dword [ebp + 0x18]
mov dword [eax], 4
mov edx, dword [esi + 8]
test edx, edx
je 0x1017c6a4
mov eax, dword [edx + 0xc]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 4]
cmp eax, dword [edx + 0x10]
je 0x1017c6ae
movzx eax, word [eax]
jmp 0x1017c6c7
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 4]
xor edx, edx
jmp 0x1017c6d5
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0x20]
mov dword [esi + 0x140], 0
call eax
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 4]
mov ebx, dword [esi + 8]
xor edx, edx
cmp ax, 0xffff
cmove ebx, edx
mov edx, ebx
test ecx, ecx
je 0x1017c74c
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x1017c6e6
movzx eax, word [eax]
jmp 0x1017c700
mov eax, dword [ecx]
mov dword [esi + 8], edx
mov eax, dword [eax + 0x20]
mov dword [esi + 0x140], 0
call eax
mov edx, dword [esi + 8]
mov edi, dword [ebp + 8]
cmp ax, 0xffff
je 0x1017c74c
test edx, edx
je 0x1017c710
mov eax, dword [ebp + 0x18]
or byte [eax], 2
cmp byte [esi + 0x23], 0
mov dword [edi], edx
jns 0x1017c723
push dword [esi + 0x18]
call fcn.101e057e
add esp, 4
cmp byte [esi + 0x3b], 0
jns 0x1017c734
push dword [esi + 0x30]
call fcn.101e057e
add esp, 4
mov eax, dword [esi + 0x138]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
test edx, edx
jne 0x1017c710
jmp 0x1017c70a