Function at 0x424395
Capabilities:
Reference sql statements

Disassembly:
mov ebx, dword [0x9ac91c]
and ebx, ebx
jle 0x424463
push dword [0x9b3e20]
mov edx, str.UPDATE_Items_SET_STATUS
push edx
call fcn.005597c0
push dword [0x9b3e20]
push dword [0x9b3e20]
mov eax, dword [0x9ac91c]
cdq
push edx
push eax
call fcn.005565d0
pop eax
lea eax, [0x9ac12c]
push eax
call fcn.00559740
mov edx, dword [0x9ac12c]
push dword [0x9b3e20]
push edx
call fcn.005597c0
mov edx, str._LOSTDATE
push edx
call fcn.005597c0
push dword [0x9b3e20]
push 0x6fb198
push 0x6fb198
call fcn.0051b5b2
pop eax
mov edx, str._BORROWERCLASSDELETED_BORROWERYEARLEVEL_WHERE_BORROWERNUMBER
push edx
call fcn.005597c0
push dword [0x9b3e20]
push dword [0x9b3e20]
mov eax, dword [0x9ac7f8]
cdq
push edx
push eax
call fcn.005565d0
pop eax
mov edx, str._AND_STATUS2
push edx
call fcn.005597c0
lea eax, [0x9ac12c]
push eax
call fcn.00559740
push 1
push dword [0x9ac12c]
call fcn.004bc2f7
mov dword [0x9ae130], 0
push dword [0x9b3e20]
mov edx, str.DELETE_FROM_Circlog_WHERE_LLBN
push edx
call fcn.005597c0
push dword [0x9b3e20]
push dword [0x9b3e20]
mov eax, dword [0x9ac7f8]
cdq
push edx
push eax
call fcn.005565d0
pop eax
lea eax, [0x9ac12c]
push eax
call fcn.00559740
push 1
push dword [0x9ac12c]
call fcn.004bc2f7
push dword [0x9b3e20]
mov edx, str.DELETE_FROM_History_WHERE_HBN
push edx
call fcn.005597c0
push dword [0x9b3e20]
push dword [0x9b3e20]
mov eax, dword [0x9ac7f8]
cdq
push edx
push eax
call fcn.005565d0
pop eax
lea eax, [0x9ac12c]
push eax
call fcn.00559740
push 1
push dword [0x9ac12c]
call fcn.004bc2f7
push dword [0x9b3e20]
mov edx, str.DELETE_FROM_Overdueslog_WHERE_OVBN
push edx
call fcn.005597c0
push dword [0x9b3e20]
push dword [0x9b3e20]
mov eax, dword [0x9ac7f8]
cdq
push edx
push eax
call fcn.005565d0
pop eax
lea eax, [0x9ac12c]
push eax
call fcn.00559740
push 1
push dword [0x9ac12c]
call fcn.004bc2f7
push dword [0x9b3e20]
mov edx, str.DELETE_FROM_Bookings_WHERE_BOOKINGBORROWER
push edx
call fcn.005597c0
push dword [0x9b3e20]
push dword [0x9b3e20]
mov eax, dword [0x9ac7f8]
cdq
push edx
push eax
call fcn.005565d0
pop eax
lea eax, [0x9ac12c]
push eax
call fcn.00559740
push 1
push dword [0x9ac12c]
call fcn.004bc2f7
push dword [0x9b3e20]
push dword [0x9ac380]
call fcn.004e2e6f
lea eax, [0x9ac12c]
push eax
call fcn.00559740
push dword [0x9b3e20]
push dword [0x9b3e20]
push dword [0x9ac12c]
call fcn.00545fa7
lea eax, [0x9acfac]
push eax
call fcn.00559740
mov edx, dword [0x9ac12c]
xor ecx, ecx
call fcn.0051f5d0
jne 0x42461e
push dword [0x9b3e20]
push dword [0x9b3e20]
mov edx, str.PHOTOSTEMP_
push edx
call fcn.005597c0
mov edx, dword [0x9acfac]
push edx
call fcn.005597c0
add dword [0x9b3e20], 2
push dword [0x9ac12c]
mov edx, dword [0x9a36fc]
add dword [esp + 4], edx
call fcn.00545fb9
pop dword [0x9b3e20]
push dword [0x9ac12c]
call fcn.00545edc
push dword [0x9b3e20]
mov edx, str.DELETE_FROM_Borrowers_WHERE_BORROWERKEY
push edx
call fcn.005597c0
push dword [0x9b3e20]
push dword [0x9b3e20]
mov eax, dword [0x9ac7f8]
cdq
push edx
push eax
call fcn.005565d0
pop eax
lea eax, [0x9ac12c]
push eax
call fcn.00559740
push 1
push dword [0x9ac12c]
call fcn.004bc2f7
push dword [0x9b3e20]
mov edx, str.DELETE_FROM_Reservations_WHERE_RESVBN
push edx
call fcn.005597c0
push dword [0x9b3e20]
push dword [0x9b3e20]
mov eax, dword [0x9ac7f8]
cdq
push edx
push eax
call fcn.005565d0
pop eax
mov edx, str._AND_RESVTYPEn_a
push edx
call fcn.005597c0
lea eax, [0x9ac12c]
push eax
call fcn.00559740
push 1
push dword [0x9ac12c]
call fcn.004bc2f7
push dword [0x9b3e20]
push 1
push dword [0x9b3e20]
mov edx, str.SELECT__FROM_Reservations_WHERE_RESVBN
push edx
call fcn.005597c0
push dword [0x9b3e20]
push dword [0x9b3e20]
mov eax, dword [0x9ac7f8]
cdq
push edx
push eax
call fcn.005565d0
pop eax
mov edx, str._ORDER_BY_RESVDATE_RESVTIME
push edx
call fcn.005597c0
mov edx, dword [0x9a36fc]
add dword [esp], edx
call fcn.004f685a
pop dword [0x9b3e20]
and eax, eax
je 0x42482e
push 1
call fcn.004f4ac4
and eax, eax
je 0x424824
call fcn.004ec46d
push dword [0x9b3e20]
push dword [0x9b3e20]
push 1
push dword [0x9ad808]
call fcn.00556870
push dword [0x9b3e20]
push 0x6fb198
push dword [0x9ad880]
call fcn.0051b5b2
pop eax
mov edx, dword [0x9abb20]
push edx
call fcn.005597c0
mov edx, 0x6fbaa2
push edx
call fcn.005597c0
push dword [0x9b3e20]
push dword [0x9b3e20]
mov eax, dword [0x9ade58]
cdq
push edx
push eax
call fcn.005565d0
pop eax
mov edx, dword [0x9acbbc]
push edx
call fcn.005597c0
push dword [0x9b3e20]
push dword [0x9b3e20]
mov eax, dword [0x9adc60]
cdq
push edx
push eax
call fcn.005565d0
pop eax
mov edx, dword [0x9acbbc]
push edx
call fcn.005597c0
push dword [0x9b3e20]
push dword [0x9b3e20]
mov eax, dword [0x9ac324]
cdq
push edx
push eax
call fcn.005565d0
pop eax
lea eax, [0x9ac12c]
push eax
call fcn.00559740
mov ebx, dword [0x9abbec]
inc ebx
mov dword [0x9abbec], ebx
mov edx, dword [0x9ac12c]
push dword [0x9b3e20]
push edx
call fcn.005597c0
mov ebx, dword [0x9abbec]
mov ebp, dword [0x9aeef8]
shl ebx, 2
lea eax, [ebp + ebx]
push eax
call fcn.00559740
jmp 0x424714
push 1
call fcn.004be154
mov ebx, dword [0x9abbec]
and ebx, ebx
jne 0x424839
ret
mov dword [0x9ac534], 1
jmp 0x424845
mov eax, dword [0x9abbec]
cmp eax, dword [0x9ac534]
jl 0x424b07
push dword [0x9b3e20]
push dword [0x9b3e20]
push 1
mov ebx, dword [0x9ac534]
mov ebp, dword [0x9aeef8]
shl ebx, 2
push dword [ebp + ebx]
call fcn.00556870
lea eax, [0x9ac12c]
push eax
call fcn.00559740
push dword [0x9ac12c]
mov edx, 0x703886
pop ecx
call fcn.0051f5d0
je 0x4248a3
jmp 0x424afb
push dword [0x9b3e20]
push 2
mov ebx, dword [0x9ac534]
mov ebp, dword [0x9aeef8]
shl ebx, 2
push dword [ebp + ebx]
call fcn.004da677
lea eax, [0x9ad928]
push eax
call fcn.00559740
push 1
push dword [0x9ad928]
call fcn.004e8d15
mov dword [0x9ac278], eax
push 2
push dword [0x9ad928]
call fcn.004e8d15
mov dword [0x9adc60], eax
push 3
push dword [0x9ad928]
call fcn.004e8d15
mov dword [0x9ac324], eax
mov dword [0x9ac574], 0
mov dword [0x9ac520], 0
mov dword [0x9abb48], 0
push dword [0x9b3e20]
push 1
push dword [0x9b3e20]
mov edx, str.SELECT__FROM_Reservations_WHERE_RESVLINK
push edx
call fcn.005597c0
push dword [0x9b3e20]
push dword [0x9b3e20]
mov eax, dword [0x9ac324]
cdq
push edx
push eax
call fcn.005565d0
pop eax
mov edx, str._ORDER_BY_RESVDATE_RESVTIME
push edx
call fcn.005597c0
mov edx, dword [0x9a36fc]
add dword [esp], edx
call fcn.004f685a
pop dword [0x9b3e20]
and eax, eax
je 0x4249ed
push 1
call fcn.004f4ac4
and eax, eax
je 0x4249e3
call fcn.004ec46d
cmp dword [0x9ac520], 0
je 0x4249c7
push dword [0x9ad808]
mov edx, 0x714a4e
pop ecx
call fcn.0051f5d0
je 0x4249c5
push dword [0x9ade58]
pop dword [0x9abb48]
jmp 0x4249e3
jmp 0x4249e1
mov ebx, dword [0x9ac3e0]
cmp ebx, dword [0x9ac7f8]
jne 0x4249e1
push dword [0x9ade58]
pop dword [0x9ac520]
jmp 0x424988
push 1
call fcn.004be154
cmp dword [0x9abb48], 0
je 0x424a3f
push dword [0x9b3e20]
mov edx, str.UPDATE_Reservations_SET_RESVTYPEon_hold_WHERE_RESVKEY
push edx
call fcn.005597c0
push dword [0x9b3e20]
push dword [0x9b3e20]
mov eax, dword [0x9abb48]
cdq
push edx
push eax
call fcn.005565d0
pop eax
lea eax, [0x9ac12c]
push eax
call fcn.00559740
push 1
push dword [0x9ac12c]
call fcn.004bc2f7
jmp 0x424aab
push dword [0x9b3e20]
mov edx, str.UPDATE_Items_SET_STATUS1_BORROWERCLASSDELETED_BORROWERYEARLEVEL_WHERE_ITEMNUMBER
push edx
call fcn.005597c0
push dword [0x9b3e20]
push dword [0x9b3e20]
mov eax, dword [0x9adc60]
cdq
push edx
push eax
call fcn.005565d0
pop eax
mov edx, str._AND_STATUS
push edx
call fcn.005597c0
push dword [0x9b3e20]
push dword [0x9b3e20]
mov eax, dword [0x9acfb8]
cdq
push edx
push eax
call fcn.005565d0
pop eax
lea eax, [0x9ac12c]
push eax
call fcn.00559740
push 1
push dword [0x9ac12c]
call fcn.004bc2f7
cmp dword [0x9ac520], 0
je 0x424afb
push dword [0x9b3e20]
mov edx, str.DELETE_FROM_Reservations_WHERE_RESVKEY
push edx
call fcn.005597c0
push dword [0x9b3e20]
push dword [0x9b3e20]
mov eax, dword [0x9ac520]
cdq
push edx
push eax
call fcn.005565d0
pop eax
lea eax, [0x9ac12c]
push eax
call fcn.00559740
push 1
push dword [0x9ac12c]
call fcn.004bc2f7
inc dword [0x9ac534]
jno 0x424845
ret