Function at 0x43f510
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x43f820
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebx + 0xf8]
mov eax, ebx
call sym.que2.exe__Fr_class_TfrReport_SetPrinterTo_qqr17System_AnsiString
mov byte [sym.que2.exe__Fr_class_DocMode], 1
call sub.rtl60.bpl__Sysutils_Date_qqrv
fstp qword [0x46c958]
wait
call sub.rtl60.bpl__Sysutils_Time_qqrv
fstp qword [0x46c960]
wait
mov eax, dword [ebx + 0x30]
call sym.que2.exe__Fr_class_TfrPages_RefreshObjects_qqrv
xor eax, eax
mov dword [sym.que2.exe__Fr_class_CurPage], eax
xor eax, eax
mov dword [sym.que2.exe__Fr_class_CurBand], eax
mov dword [sym.que2.exe__Fr_class_MasterReport], ebx
mov dword [sym.que2.exe__Fr_class_CurReport], ebx
cmp word [ebx + 0x11e], 1
sbb eax, eax
inc eax
mov byte [ebx + 0xec], al
mov eax, dword [sym.que2.exe__Fr_class_frParser]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], sym.que2.exe__Fr_class_TfrReport_GetVariableValue_qqrx17System_AnsiStringr14System_Variant
mov eax, dword [sym.que2.exe__Fr_class_frParser]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], sym.que2.exe__Fr_class_TfrReport_OnGetParsFunction_qqrx17System_AnsiStringrx14System_Variantt2t2r14System_Variant
mov byte [ebp - 1], 0
mov eax, ebx
mov edx, dword [sym.que2.exe__Fr_class_TfrCompositeReport_]
call sub.rtl60.bpl__System__IsClass_qqrp14System_TObjectp17System_TMetaClass
test al, al
je 0x43f702
mov dl, 1
mov eax, dword [sym.imp.rtl60.bpl__Classes_TList_]
call sub.rtl60.bpl__System_TObject__bctr_qqrv
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x168]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x43f635
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dl, 1
mov eax, dword [sym.imp.rtl60.bpl__Classes_TMemoryStream_]
call sub.rtl60.bpl__System_TObject__bctr_qqrv
mov esi, eax
mov edx, esi
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__Classes_TList_Add_qqrpv
mov eax, dword [ebx + 0x168]
mov edx, dword [ebp - 0x14]
call sub.rtl60.bpl__Classes_TList_Get_qqri
mov edi, eax
mov edx, esi
mov eax, edi
call sym.que2.exe__Fr_class_TfrReport_SaveToStream_qqrp15Classes_TStream
cmp word [edi + 0x5a], 0
je 0x43f62d
mov eax, dword [edi + 0x5c]
call dword [edi + 0x58]
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x43f5ef
cmp word [ebx + 0x5a], 0
je 0x43f642
mov eax, dword [ebx + 0x5c]
call dword [ebx + 0x58]
mov al, 1
cmp dword [sym.que2.exe__Fr_class_frDataManager], 0
je 0x43f65e
mov eax, ebx
call sym.que2.exe__Fr_class_TfrReport_FillQueryParams_qqrv
mov eax, dword [sym.que2.exe__Fr_class_frDataManager]
mov edx, dword [eax]
call dword [edx + 0x18]
test al, al
je 0x43f66c
mov eax, ebx
call sym.que2.exe__Fr_class_TfrReport_DoPrepareReport_qqrv
mov byte [ebp - 1], al
cmp word [ebx + 0x62], 0
je 0x43f679
mov eax, dword [ebx + 0x64]
call dword [ebx + 0x60]
mov al, byte [sym.que2.exe__Fr_class_ErrorFlag]
mov byte [ebp - 9], al
lea eax, [ebp - 0x10]
mov edx, dword [sym.que2.exe__Fr_class_ErrorStr]
call sub.rtl60.bpl__System__LStrLAsg_qqrpvpxv
mov eax, dword [ebx + 0x168]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x43f6f5
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__Classes_TList_Get_qqri
mov esi, eax
push 0
push 0
mov eax, esi
call sub.rtl60.bpl__Classes_TStream_SetPosition_qqrxj
mov eax, dword [ebx + 0x168]
mov edx, dword [ebp - 0x14]
call sub.rtl60.bpl__Classes_TList_Get_qqri
mov edi, eax
cmp word [edi + 0x62], 0
je 0x43f6dd
mov eax, dword [edi + 0x64]
call dword [edi + 0x60]
mov edx, esi
mov eax, edi
call sym.que2.exe__Fr_class_TfrReport_LoadFromStream_qqrp15Classes_TStream
mov eax, esi
call sub.rtl60.bpl__System_TObject_Free_qqrv
inc dword [ebp - 0x14]
dec dword [ebp - 0x18]
jne 0x43f6a8
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__System_TObject_Free_qqrv
jmp 0x43f78e
mov dl, 1
mov eax, dword [sym.imp.rtl60.bpl__Classes_TMemoryStream_]
call sub.rtl60.bpl__System_TObject__bctr_qqrv
mov esi, eax
mov edx, esi
mov eax, ebx
call sym.que2.exe__Fr_class_TfrReport_SaveToStream_qqrp15Classes_TStream
cmp word [ebx + 0x5a], 0
je 0x43f726
mov eax, dword [ebx + 0x5c]
call dword [ebx + 0x58]
mov al, 1
cmp dword [sym.que2.exe__Fr_class_frDataManager], 0
je 0x43f742
mov eax, ebx
call sym.que2.exe__Fr_class_TfrReport_FillQueryParams_qqrv
mov eax, dword [sym.que2.exe__Fr_class_frDataManager]
mov edx, dword [eax]
call dword [edx + 0x18]
test al, al
je 0x43f750
mov eax, ebx
call sym.que2.exe__Fr_class_TfrReport_DoPrepareReport_qqrv
mov byte [ebp - 1], al
cmp word [ebx + 0x62], 0
je 0x43f75d
mov eax, dword [ebx + 0x64]
call dword [ebx + 0x60]
mov al, byte [sym.que2.exe__Fr_class_ErrorFlag]
mov byte [ebp - 9], al
lea eax, [ebp - 0x10]
mov edx, dword [sym.que2.exe__Fr_class_ErrorStr]
call sub.rtl60.bpl__System__LStrLAsg_qqrpvpxv
push 0
push 0
mov eax, esi
call sub.rtl60.bpl__Classes_TStream_SetPosition_qqrxj
mov edx, esi
mov eax, ebx
call sym.que2.exe__Fr_class_TfrReport_LoadFromStream_qqrp15Classes_TStream
mov eax, esi
call sub.rtl60.bpl__System_TObject_Free_qqrv
mov byte [ebx + 0x120], 0
mov al, byte [ebp - 1]
and al, byte [0x46c9b3]
je 0x43f7a4
mov byte [ebp - 1], 0
cmp byte [ebp - 9], 0
je 0x43f7e3
push 0x10
lea edx, [ebp - 0x1c]
mov eax, 0xd7a6
call sym.que2.exe__Fr_utils_frLoadStr_qqri
mov eax, dword [ebp - 0x1c]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
mov eax, dword [ebp - 0x10]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
mov edx, eax
mov eax, dword [sym.imp.vcl60.bpl__Forms_Application]
mov eax, dword [eax]
pop ecx
call sub.vcl60.bpl__Forms_TApplication_MessageBox_qqrpxct1i
mov eax, dword [ebx + 0x34]
call sym.que2.exe__Fr_class_TfrEMFPages_Clear_qqrv
jmp 0x43f7f4
cmp byte [0x46c9b3], 0
je 0x43f7f4
mov eax, dword [ebx + 0x34]
call sym.que2.exe__Fr_class_TfrEMFPages_Clear_qqrv
mov byte [sym.que2.exe__Fr_class_DisableDrawing], 0
xor eax, eax
mov dword [sym.que2.exe__Fr_class_CurBand], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f827
lea eax, [ebp - 0x1c]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x10]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret