Function at 0x41c9270
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], esi
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41ca0fa
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x41ca0dd
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.041a62d8
mov edx, edi
mov eax, ebx
call fcn.041c9020
mov edx, esi
mov eax, ebx
call fcn.041c9028
mov edx, dword [ebp + 0xc]
mov eax, ebx
call fcn.041c9214
mov edx, dword [ebp + 8]
mov eax, ebx
call fcn.041cb28c
mov eax, dword [ebx + 0x3d0]
call sub.dbrtl60.bpl__Db_TDataSet_Close_qqrv
push 0
mov esi, dword [ebx + 0x548]
mov dword [ebp - 0x28], esi
mov byte [ebp - 0x24], 0
mov eax, dword [ebx + 0x550]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x14], 0
mov ecx, dword [ebx + 0x54c]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x28]
push edx
push 3
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebx + 0x554]
mov edx, 0x41ca118
mov eax, dword [0x419960c]
call fcn.0419a3e0
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x3d0]
mov eax, dword [eax + 0x2a8]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebx + 0x3d0]
mov eax, dword [eax + 0x2a8]
mov edx, 0x41caf8c
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, dword [ebx + 0x3d0]
call sub.dbrtl60.bpl__Db_TDataSet_Open_qqrv
mov eax, dword [ebx + 0x3d0]
call sub.dbrtl60.bpl__Db_TDataSet_First_qqrv
mov eax, dword [ebx + 0x4e4]
call sub.dbrtl60.bpl__Db_TDataSet_Close_qqrv
mov eax, dword [ebx + 0x4e4]
call sub.dbrtl60.bpl__Db_TDataSet_Open_qqrv
jmp 0x41ca09a
mov eax, dword [ebx + 0x4e4]
call sub.dbrtl60.bpl__Db_TDataSet_Append_qqrv
xor ecx, ecx
push 0
mov eax, dword [ebx + 0x3d0]
mov edx, dword [ebx + 0x4e4]
call fcn.041a6138
mov eax, dword [ebx + 0x53c]
mov edx, dword [eax]
call dword [edx + 0x50]
sub esp, 8
fstp qword [esp]
wait
call sub.rtl60.bpl__Dateutils_YearOf_qqrx16System_TDateTime
movzx eax, ax
cmp eax, dword [ebx + 0x548]
jne case.0x41c93e9.0
mov eax, dword [ebx + 0x53c]
mov edx, dword [eax]
call dword [edx + 0x50]
add esp, 0xfffffff8
fstp qword [esp]
wait
call sub.rtl60.bpl__Dateutils_MonthOf_qqrx16System_TDateTime
movzx eax, ax
cmp eax, 0xc
ja case.0x41c93e9.0
jmp dword [eax*4 + 0x41c93f0]
mov eax, dword [ebx + 0x430]
mov edx, dword [eax]
call dword [edx + 0x4c]
sub esp, 8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x4f4]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp case.0x41c93e9.0
mov eax, dword [ebx + 0x434]
mov edx, dword [eax]
call dword [edx + 0x4c]
sub esp, 8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x4f8]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp case.0x41c93e9.0
mov eax, dword [ebx + 0x438]
mov edx, dword [eax]
call dword [edx + 0x4c]
sub esp, 8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x4fc]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp case.0x41c93e9.0
mov eax, dword [ebx + 0x43c]
mov edx, dword [eax]
call dword [edx + 0x4c]
add esp, 0xfffffff8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x500]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp case.0x41c93e9.0
mov eax, dword [ebx + 0x440]
mov edx, dword [eax]
call dword [edx + 0x4c]
sub esp, 8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x504]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp case.0x41c93e9.0
mov eax, dword [ebx + 0x444]
mov edx, dword [eax]
call dword [edx + 0x4c]
add esp, 0xfffffff8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x508]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp case.0x41c93e9.0
mov eax, dword [ebx + 0x448]
mov edx, dword [eax]
call dword [edx + 0x4c]
add esp, 0xfffffff8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x50c]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp case.0x41c93e9.0
mov eax, dword [ebx + 0x44c]
mov edx, dword [eax]
call dword [edx + 0x4c]
sub esp, 8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x510]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp case.0x41c93e9.0
mov eax, dword [ebx + 0x450]
mov edx, dword [eax]
call dword [edx + 0x4c]
add esp, 0xfffffff8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x514]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp case.0x41c93e9.0
mov eax, dword [ebx + 0x454]
mov edx, dword [eax]
call dword [edx + 0x4c]
sub esp, 8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x518]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp case.0x41c93e9.0
mov eax, dword [ebx + 0x4d4]
mov edx, dword [eax]
call dword [edx + 0x4c]
sub esp, 8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x51c]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp case.0x41c93e9.0
mov eax, dword [ebx + 0x458]
mov edx, dword [eax]
call dword [edx + 0x4c]
sub esp, 8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x520]
mov edx, dword [eax]
call dword [edx + 0x9c]
mov eax, dword [ebx + 0x4f4]
mov edx, dword [eax]
call dword [edx + 0x4c]
fcomp dword [0x41caf98]
fnstsw ax
sahf
jne 0x41c95fa
push 0
push 0
mov eax, dword [ebx + 0x4f4]
mov edx, dword [eax]
call dword [edx + 0x9c]
mov eax, dword [ebx + 0x4f8]
mov edx, dword [eax]
call dword [edx + 0x4c]
fcomp dword [0x41caf98]
fnstsw ax
sahf
jne 0x41c96ef
mov eax, dword [ebx + 0x530]
mov edx, dword [eax]
call dword [edx + 0x84]
or al, al
jne 0x41c9664
mov eax, dword [ebx + 0x530]
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [ebp - 0x30]
wait
mov ax, word [ebx + 0x548]
mov dx, 2
call sub.rtl60.bpl__Dateutils_StartOfAMonth_qqrxusxus
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jb 0x41c9664
push 0
push 0
mov eax, dword [ebx + 0x4f8]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp 0x41c96ef
mov eax, dword [ebx + 0x53c]
mov edx, dword [eax]
call dword [edx + 0x50]
add esp, 0xfffffff8
fstp qword [esp]
wait
call sub.rtl60.bpl__Dateutils_YearOf_qqrx16System_TDateTime
movzx eax, ax
cmp eax, dword [ebx + 0x548]
jne 0x41c96cf
mov eax, dword [ebx + 0x53c]
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [ebp - 0x30]
wait
mov dx, 2
mov ax, word [ebx + 0x548]
call sub.rtl60.bpl__Dateutils_StartOfAMonth_qqrxusxus
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jb 0x41c96cf
mov eax, dword [ebx + 0x52c]
mov edx, dword [eax]
call dword [edx + 0x4c]
sub esp, 8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x4f8]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp 0x41c96ef
mov eax, dword [ebx + 0x4f4]
mov edx, dword [eax]
call dword [edx + 0x4c]
sub esp, 8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x4f8]
mov edx, dword [eax]
call dword [edx + 0x9c]
mov eax, dword [ebx + 0x4fc]
mov edx, dword [eax]
call dword [edx + 0x4c]
fcomp dword [0x41caf98]
fnstsw ax
sahf
jne 0x41c97e4
mov eax, dword [ebx + 0x530]
mov edx, dword [eax]
call dword [edx + 0x84]
test al, al
jne 0x41c9759
mov eax, dword [ebx + 0x530]
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [ebp - 0x30]
wait
mov ax, word [ebx + 0x548]
mov dx, 3
call sub.rtl60.bpl__Dateutils_StartOfAMonth_qqrxusxus
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jb 0x41c9759
push 0
push 0
mov eax, dword [ebx + 0x4fc]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp 0x41c97e4
mov eax, dword [ebx + 0x53c]
mov edx, dword [eax]
call dword [edx + 0x50]
add esp, 0xfffffff8
fstp qword [esp]
wait
call sub.rtl60.bpl__Dateutils_YearOf_qqrx16System_TDateTime
movzx eax, ax
cmp eax, dword [ebx + 0x548]
jne 0x41c97c4
mov eax, dword [ebx + 0x53c]
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [ebp - 0x30]
wait
mov dx, 3
mov ax, word [ebx + 0x548]
call sub.rtl60.bpl__Dateutils_StartOfAMonth_qqrxusxus
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jb 0x41c97c4
mov eax, dword [ebx + 0x52c]
mov edx, dword [eax]
call dword [edx + 0x4c]
add esp, 0xfffffff8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x4fc]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp 0x41c97e4
mov eax, dword [ebx + 0x4f8]
mov edx, dword [eax]
call dword [edx + 0x4c]
sub esp, 8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x4fc]
mov edx, dword [eax]
call dword [edx + 0x9c]
mov eax, dword [ebx + 0x500]
mov edx, dword [eax]
call dword [edx + 0x4c]
fcomp dword [0x41caf98]
fnstsw ax
sahf
jne 0x41c98d9
mov eax, dword [ebx + 0x530]
mov edx, dword [eax]
call dword [edx + 0x84]
test al, al
jne 0x41c984e
mov eax, dword [ebx + 0x530]
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [ebp - 0x30]
wait
mov ax, word [ebx + 0x548]
mov dx, 4
call sub.rtl60.bpl__Dateutils_StartOfAMonth_qqrxusxus
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jb 0x41c984e
push 0
push 0
mov eax, dword [ebx + 0x500]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp 0x41c98d9
mov eax, dword [ebx + 0x53c]
mov edx, dword [eax]
call dword [edx + 0x50]
sub esp, 8
fstp qword [esp]
wait
call sub.rtl60.bpl__Dateutils_YearOf_qqrx16System_TDateTime
movzx eax, ax
cmp eax, dword [ebx + 0x548]
jne 0x41c98b9
mov eax, dword [ebx + 0x53c]
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [ebp - 0x30]
wait
mov ax, word [ebx + 0x548]
mov dx, 4
call sub.rtl60.bpl__Dateutils_StartOfAMonth_qqrxusxus
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jb 0x41c98b9
mov eax, dword [ebx + 0x52c]
mov edx, dword [eax]
call dword [edx + 0x4c]
sub esp, 8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x500]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp 0x41c98d9
mov eax, dword [ebx + 0x4fc]
mov edx, dword [eax]
call dword [edx + 0x4c]
sub esp, 8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x500]
mov edx, dword [eax]
call dword [edx + 0x9c]
mov eax, dword [ebx + 0x504]
mov edx, dword [eax]
call dword [edx + 0x4c]
fcomp dword [0x41caf98]
fnstsw ax
sahf
jne 0x41c99ce
mov eax, dword [ebx + 0x530]
mov edx, dword [eax]
call dword [edx + 0x84]
test al, al
jne 0x41c9943
mov eax, dword [ebx + 0x530]
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [ebp - 0x30]
wait
mov ax, word [ebx + 0x548]
mov dx, 5
call sub.rtl60.bpl__Dateutils_StartOfAMonth_qqrxusxus
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jb 0x41c9943
push 0
push 0
mov eax, dword [ebx + 0x504]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp 0x41c99ce
mov eax, dword [ebx + 0x53c]
mov edx, dword [eax]
call dword [edx + 0x50]
sub esp, 8
fstp qword [esp]
wait
call sub.rtl60.bpl__Dateutils_YearOf_qqrx16System_TDateTime
movzx eax, ax
cmp eax, dword [ebx + 0x548]
jne 0x41c99ae
mov eax, dword [ebx + 0x53c]
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [ebp - 0x30]
wait
mov dx, 5
mov ax, word [ebx + 0x548]
call sub.rtl60.bpl__Dateutils_StartOfAMonth_qqrxusxus
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jb 0x41c99ae
mov eax, dword [ebx + 0x52c]
mov edx, dword [eax]
call dword [edx + 0x4c]
sub esp, 8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x504]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp 0x41c99ce
mov eax, dword [ebx + 0x500]
mov edx, dword [eax]
call dword [edx + 0x4c]
sub esp, 8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x504]
mov edx, dword [eax]
call dword [edx + 0x9c]
mov eax, dword [ebx + 0x508]
mov edx, dword [eax]
call dword [edx + 0x4c]
fcomp dword [0x41caf98]
fnstsw ax
sahf
jne 0x41c9ac3
mov eax, dword [ebx + 0x530]
mov edx, dword [eax]
call dword [edx + 0x84]
or al, al
jne 0x41c9a38
mov eax, dword [ebx + 0x530]
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [ebp - 0x30]
wait
mov dx, 6
mov ax, word [ebx + 0x548]
call sub.rtl60.bpl__Dateutils_StartOfAMonth_qqrxusxus
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jb 0x41c9a38
push 0
push 0
mov eax, dword [ebx + 0x508]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp 0x41c9ac3
mov eax, dword [ebx + 0x53c]
mov edx, dword [eax]
call dword [edx + 0x50]
add esp, 0xfffffff8
fstp qword [esp]
wait
call sub.rtl60.bpl__Dateutils_YearOf_qqrx16System_TDateTime
movzx eax, ax
cmp eax, dword [ebx + 0x548]
jne 0x41c9aa3
mov eax, dword [ebx + 0x53c]
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [ebp - 0x30]
wait
mov ax, word [ebx + 0x548]
mov dx, 6
call sub.rtl60.bpl__Dateutils_StartOfAMonth_qqrxusxus
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jb 0x41c9aa3
mov eax, dword [ebx + 0x52c]
mov edx, dword [eax]
call dword [edx + 0x4c]
sub esp, 8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x508]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp 0x41c9ac3
mov eax, dword [ebx + 0x504]
mov edx, dword [eax]
call dword [edx + 0x4c]
add esp, 0xfffffff8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x508]
mov edx, dword [eax]
call dword [edx + 0x9c]
mov eax, dword [ebx + 0x50c]
mov edx, dword [eax]
call dword [edx + 0x4c]
fcomp dword [0x41caf98]
fnstsw ax
sahf
jne 0x41c9bb8
mov eax, dword [ebx + 0x530]
mov edx, dword [eax]
call dword [edx + 0x84]
or al, al
jne 0x41c9b2d
mov eax, dword [ebx + 0x530]
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [ebp - 0x30]
wait
mov dx, 7
mov ax, word [ebx + 0x548]
call sub.rtl60.bpl__Dateutils_StartOfAMonth_qqrxusxus
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jb 0x41c9b2d
push 0
push 0
mov eax, dword [ebx + 0x50c]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp 0x41c9bb8
mov eax, dword [ebx + 0x53c]
mov edx, dword [eax]
call dword [edx + 0x50]
sub esp, 8
fstp qword [esp]
wait
call sub.rtl60.bpl__Dateutils_YearOf_qqrx16System_TDateTime
movzx eax, ax
cmp eax, dword [ebx + 0x548]
jne 0x41c9b98
mov eax, dword [ebx + 0x53c]
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [ebp - 0x30]
wait
mov ax, word [ebx + 0x548]
mov dx, 7
call sub.rtl60.bpl__Dateutils_StartOfAMonth_qqrxusxus
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jb 0x41c9b98
mov eax, dword [ebx + 0x52c]
mov edx, dword [eax]
call dword [edx + 0x4c]
sub esp, 8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x50c]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp 0x41c9bb8
mov eax, dword [ebx + 0x508]
mov edx, dword [eax]
call dword [edx + 0x4c]
sub esp, 8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x50c]
mov edx, dword [eax]
call dword [edx + 0x9c]
mov eax, dword [ebx + 0x510]
mov edx, dword [eax]
call dword [edx + 0x4c]
fcomp dword [0x41caf98]
fnstsw ax
sahf
jne 0x41c9cad
mov eax, dword [ebx + 0x530]
mov edx, dword [eax]
call dword [edx + 0x84]
test al, al
jne 0x41c9c22
mov eax, dword [ebx + 0x530]
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [ebp - 0x30]
wait
mov dx, 8
mov ax, word [ebx + 0x548]
call sub.rtl60.bpl__Dateutils_StartOfAMonth_qqrxusxus
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jb 0x41c9c22
push 0
push 0
mov eax, dword [ebx + 0x510]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp 0x41c9cad
mov eax, dword [ebx + 0x53c]
mov edx, dword [eax]
call dword [edx + 0x50]
sub esp, 8
fstp qword [esp]
wait
call sub.rtl60.bpl__Dateutils_YearOf_qqrx16System_TDateTime
movzx eax, ax
cmp eax, dword [ebx + 0x548]
jne 0x41c9c8d
mov eax, dword [ebx + 0x53c]
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [ebp - 0x30]
wait
mov dx, 8
mov ax, word [ebx + 0x548]
call sub.rtl60.bpl__Dateutils_StartOfAMonth_qqrxusxus
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jb 0x41c9c8d
mov eax, dword [ebx + 0x52c]
mov edx, dword [eax]
call dword [edx + 0x4c]
sub esp, 8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x510]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp 0x41c9cad
mov eax, dword [ebx + 0x50c]
mov edx, dword [eax]
call dword [edx + 0x4c]
sub esp, 8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x510]
mov edx, dword [eax]
call dword [edx + 0x9c]
mov eax, dword [ebx + 0x514]
mov edx, dword [eax]
call dword [edx + 0x4c]
fcomp dword [0x41caf98]
fnstsw ax
sahf
jne 0x41c9da2
mov eax, dword [ebx + 0x530]
mov edx, dword [eax]
call dword [edx + 0x84]
or al, al
jne 0x41c9d17
mov eax, dword [ebx + 0x530]
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [ebp - 0x30]
wait
mov dx, 9
mov ax, word [ebx + 0x548]
call sub.rtl60.bpl__Dateutils_StartOfAMonth_qqrxusxus
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jb 0x41c9d17
push 0
push 0
mov eax, dword [ebx + 0x514]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp 0x41c9da2
mov eax, dword [ebx + 0x53c]
mov edx, dword [eax]
call dword [edx + 0x50]
add esp, 0xfffffff8
fstp qword [esp]
wait
call sub.rtl60.bpl__Dateutils_YearOf_qqrx16System_TDateTime
movzx eax, ax
cmp eax, dword [ebx + 0x548]
jne 0x41c9d82
mov eax, dword [ebx + 0x53c]
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [ebp - 0x30]
wait
mov dx, 9
mov ax, word [ebx + 0x548]
call sub.rtl60.bpl__Dateutils_StartOfAMonth_qqrxusxus
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jb 0x41c9d82
mov eax, dword [ebx + 0x52c]
mov edx, dword [eax]
call dword [edx + 0x4c]
sub esp, 8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x514]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp 0x41c9da2
mov eax, dword [ebx + 0x510]
mov edx, dword [eax]
call dword [edx + 0x4c]
sub esp, 8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x514]
mov edx, dword [eax]
call dword [edx + 0x9c]
mov eax, dword [ebx + 0x518]
mov edx, dword [eax]
call dword [edx + 0x4c]
fcomp dword [0x41caf98]
fnstsw ax
sahf
jne 0x41c9e97
mov eax, dword [ebx + 0x530]
mov edx, dword [eax]
call dword [edx + 0x84]
test al, al
jne 0x41c9e0c
mov eax, dword [ebx + 0x530]
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [ebp - 0x30]
wait
mov dx, 0xa
mov ax, word [ebx + 0x548]
call sub.rtl60.bpl__Dateutils_StartOfAMonth_qqrxusxus
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jb 0x41c9e0c
push 0
push 0
mov eax, dword [ebx + 0x518]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp 0x41c9e97
mov eax, dword [ebx + 0x53c]
mov edx, dword [eax]
call dword [edx + 0x50]
sub esp, 8
fstp qword [esp]
wait
call sub.rtl60.bpl__Dateutils_YearOf_qqrx16System_TDateTime
movzx eax, ax
cmp eax, dword [ebx + 0x548]
jne 0x41c9e77
mov eax, dword [ebx + 0x53c]
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [ebp - 0x30]
wait
mov dx, 0xa
mov ax, word [ebx + 0x548]
call sub.rtl60.bpl__Dateutils_StartOfAMonth_qqrxusxus
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jb 0x41c9e77
mov eax, dword [ebx + 0x52c]
mov edx, dword [eax]
call dword [edx + 0x4c]
add esp, 0xfffffff8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x518]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp 0x41c9e97
mov eax, dword [ebx + 0x514]
mov edx, dword [eax]
call dword [edx + 0x4c]
sub esp, 8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x518]
mov edx, dword [eax]
call dword [edx + 0x9c]
mov eax, dword [ebx + 0x51c]
mov edx, dword [eax]
call dword [edx + 0x4c]
fcomp dword [0x41caf98]
fnstsw ax
sahf
jne 0x41c9f8c
mov eax, dword [ebx + 0x530]
mov edx, dword [eax]
call dword [edx + 0x84]
or al, al
jne 0x41c9f01
mov eax, dword [ebx + 0x530]
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [ebp - 0x30]
wait
mov dx, 0xb
mov ax, word [ebx + 0x548]
call sub.rtl60.bpl__Dateutils_StartOfAMonth_qqrxusxus
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jb 0x41c9f01
push 0
push 0
mov eax, dword [ebx + 0x51c]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp 0x41c9f8c
mov eax, dword [ebx + 0x53c]
mov edx, dword [eax]
call dword [edx + 0x50]
add esp, 0xfffffff8
fstp qword [esp]
wait
call sub.rtl60.bpl__Dateutils_YearOf_qqrx16System_TDateTime
movzx eax, ax
cmp eax, dword [ebx + 0x548]
jne 0x41c9f6c
mov eax, dword [ebx + 0x53c]
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [ebp - 0x30]
wait
mov ax, word [ebx + 0x548]
mov dx, 0xb
call sub.rtl60.bpl__Dateutils_StartOfAMonth_qqrxusxus
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jb 0x41c9f6c
mov eax, dword [ebx + 0x52c]
mov edx, dword [eax]
call dword [edx + 0x4c]
add esp, 0xfffffff8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x51c]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp 0x41c9f8c
mov eax, dword [ebx + 0x518]
mov edx, dword [eax]
call dword [edx + 0x4c]
add esp, 0xfffffff8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x51c]
mov edx, dword [eax]
call dword [edx + 0x9c]
mov eax, dword [ebx + 0x520]
mov edx, dword [eax]
call dword [edx + 0x4c]
fcomp dword [0x41caf98]
fnstsw ax
sahf
jne 0x41ca081
mov eax, dword [ebx + 0x530]
mov edx, dword [eax]
call dword [edx + 0x84]
or al, al
jne 0x41c9ff6
mov eax, dword [ebx + 0x530]
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [ebp - 0x30]
wait
mov dx, 0xc
mov ax, word [ebx + 0x548]
call sub.rtl60.bpl__Dateutils_StartOfAMonth_qqrxusxus
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jb 0x41c9ff6
push 0
push 0
mov eax, dword [ebx + 0x520]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp 0x41ca081
mov eax, dword [ebx + 0x53c]
mov edx, dword [eax]
call dword [edx + 0x50]
sub esp, 8
fstp qword [esp]
wait
call sub.rtl60.bpl__Dateutils_YearOf_qqrx16System_TDateTime
movzx eax, ax
cmp eax, dword [ebx + 0x548]
jne 0x41ca061
mov eax, dword [ebx + 0x53c]
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [ebp - 0x30]
wait
mov dx, 0xc
mov ax, word [ebx + 0x548]
call sub.rtl60.bpl__Dateutils_StartOfAMonth_qqrxusxus
fcomp qword [ebp - 0x30]
fnstsw ax
sahf
jb 0x41ca061
mov eax, dword [ebx + 0x52c]
mov edx, dword [eax]
call dword [edx + 0x4c]
add esp, 0xfffffff8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x520]
mov edx, dword [eax]
call dword [edx + 0x9c]
jmp 0x41ca081
mov eax, dword [ebx + 0x51c]
mov edx, dword [eax]
call dword [edx + 0x4c]
add esp, 0xfffffff8
fistp qword [esp]
wait
mov eax, dword [ebx + 0x520]
mov edx, dword [eax]
call dword [edx + 0x9c]
mov eax, dword [ebx + 0x4e4]
mov edx, dword [eax]
call dword [edx + 0x248]
mov eax, dword [ebx + 0x3d0]
call sub.dbrtl60.bpl__Db_TDataSet_Next_qqrv
mov eax, dword [ebx + 0x3d0]
cmp byte [eax + 0xa1], 0
je 0x41c9380
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xe8]
dec eax
jne 0x41ca0c3
mov dword [ebp - 4], 1
jmp 0x41ca0ca
mov dword [ebp - 4], 0xffffffff
pop edx
pop ecx
pop ecx
xor eax, eax
mov dword fs:[eax], edx
push 0x41ca0e4
call fcn.041a62ec
ret