Function at 0x49ef50
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x49ef59
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov edi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x49f1d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp + 8]
mov eax, esi
call fcn.00423b5c
test al, al
jne 0x49f1af
test ebx, ebx
je 0x49f1af
mov edx, 0x49f1f0
mov eax, ebx
call sub.rtl250.bpl__System_Json_TJSONObject_Get_qqrx20System_UnicodeString
test eax, eax
je 0x49f1af
lea edx, [ebp - 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x44]
push 6
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x49dd30]
call fcn.004123d8
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x49f0d9
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
mov edx, 0x49f208
mov eax, ebx
call fcn.0046b760
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
add eax, 0x18
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 0x18]
push eax
xor ecx, ecx
mov edx, 0x49f220
mov eax, ebx
call fcn.0046b760
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
add eax, 0x30
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x49f234
mov eax, ebx
call fcn.0046b760
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
add eax, 0x2c
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 0x20]
push eax
xor ecx, ecx
mov edx, 0x49f1f0
mov eax, ebx
call fcn.0046b760
mov edx, dword [ebp - 0x20]
mov ecx, 0x49f248
mov eax, dword [sym.imp.AxComponentsRTL.bpl__Axrtl_System_Strutils_StrUtils_]
call sub.AxComponentsRTL.bpl__Axrtl_System_Strutils_StrUtils_SameText_qqrx20System_UnicodeStringt1
mov edx, dword [ebp - 8]
mov byte [edx + 0x20], al
lea eax, [ebp - 0x24]
push eax
xor ecx, ecx
mov edx, 0x49f264
mov eax, ebx
call fcn.0046b760
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
add eax, 0x44
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 0x28]
push eax
xor ecx, ecx
mov edx, 0x49f288
mov eax, ebx
call fcn.0046b760
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
add eax, 0x48
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 8]
mov dword [eax + 0x28], edi
mov eax, dword [ebp - 8]
mov byte [eax + 0x4e], 1
mov eax, dword [ebp - 8]
movzx edx, byte [ebp + 0x10]
mov byte [eax + 0x4d], dl
test edi, edi
je 0x49f0c7
mov eax, dword [edi + 0x24]
inc eax
mov edx, dword [ebp - 8]
mov dword [edx + 0x24], eax
jmp 0x49f0cf
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x24], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49f101
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x3c]
mov eax, dword [ebp + 8]
cmp byte [eax], 0
jne 0x49f1af
mov edx, 0x49f2b0
mov eax, ebx
call sub.rtl250.bpl__System_Json_TJSONObject_Get_qqrx20System_UnicodeString
lea edx, [ebp - 0xc]
call fcn.0046e048
test al, al
je 0x49f1af
mov eax, dword [ebp - 0xc]
call sub.rtl250.bpl__System_Json_TJSONArray_GetCount_qqrv
test eax, eax
jle 0x49f1af
mov eax, dword [ebp - 0xc]
call sub.rtl250.bpl__System_Json_TJSONArray_GetCount_qqrv
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x49f1af
inc ebx
mov dword [ebp - 0x10], 0
mov edx, dword [ebp + 8]
mov eax, esi
call fcn.00423b5c
test al, al
jne 0x49f1af
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call sub.rtl250.bpl__System_Json_TJSONArray_GetValue_qqrxi
mov edi, eax
mov eax, edi
mov edx, dword [sym.imp.rtl250.bpl__System_Json_TJSONObject_]
call sub.rtl250.bpl__System__IsClass_qqrxp14System_TObjectp17System_TMetaClass
test al, al
je 0x49f1a9
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, edi
mov edx, dword [sym.imp.rtl250.bpl__System_Json_TJSONObject_]
call sub.rtl250.bpl__System__AsClass_qqrxp14System_TObjectp17System_TMetaClass
mov edx, eax
mov ecx, dword [sym.imp.rtl250.bpl__System_Sysutils_EmptyStr]
mov ecx, dword [ecx]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x6c]
inc dword [ebp - 0x10]
dec ebx
jne 0x49f155
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f1d9
lea eax, [ebp - 0x28]
mov edx, 6
call sub.rtl250.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 4]
call sub.rtl250.bpl__System__UStrClr_qqrpv
ret