Function at 0x4b1590
Capabilities:
Reference sql statements

Disassembly:
push 0x6fb198
push 1
push 0
call fcn.004f09d9
mov eax, 0x70830c
push eax
call fcn.004cba7a
mov dword [0x9ac888], eax
push 1
call fcn.004d3586
mov ebx, dword [0x9ad838]
cmp ebx, 0xd7
jl 0x4b15d8
mov ebx, dword [0x9ac888]
and ebx, ebx
jne 0x4b15d8
jmp 0x4b15df
mov eax, 1
jmp 0x4b15e1
xor eax, eax
and eax, eax
je 0x4b1750
push 0
push 0
mov eax, str.Cleaning_borrower_loan_histories...
push eax
call fcn.004ee8a9
push 0x6fb198
push 1
push 1
call fcn.004f09d9
push 0x3e8
call fcn.005414ec
push 1
mov eax, str.Removing_borrower_history_borrower_number_index
push eax
call fcn.004e2511
mov eax, str.DROP_INDEX_HBN_index
push eax
push 1
call fcn.00546cd1
push 1
call fcn.005414ec
push 1
mov eax, str.Removing_borrower_history_item_numbers_index
push eax
call fcn.004e2511
mov eax, str.DROP_INDEX_HITEM_index
push eax
push 1
call fcn.00546cd1
push 1
call fcn.005414ec
push 1
mov eax, str.Removing_borrower_history_call_numbers_index
push eax
call fcn.004e2511
mov eax, str.DROP_INDEX_HCN_index
push eax
push 1
call fcn.00546cd1
push 1
call fcn.005414ec
push 1
call fcn.004d3586
push 0x6fb198
push 1
push 1
call fcn.004f09d9
push 1
mov eax, str.Indexing_borrower_histories
push eax
call fcn.004e2511
mov eax, str.CREATE_INDEX_HBN_index_ON_History__HBN_
push eax
push 1
call fcn.00546cd1
push 1
call fcn.005414ec
mov eax, str.CREATE_INDEX_HITEM_index_ON_History__HITEM_
push eax
push 1
call fcn.00546cd1
push 1
call fcn.005414ec
mov eax, str.CREATE_INDEX_HCN_index_ON_History__HCN_
push eax
push 1
call fcn.00546cd1
push 1
call fcn.005414ec
push 1
call fcn.004d3586
push 1
call fcn.005414ec
push 0
mov eax, str.Saving...
push eax
call fcn.004e2511
push 1
mov eax, 0x6fb198
push eax
call fcn.004e2511
call fcn.00505b4e
ret
push 0
push 0
mov eax, str.Rebuilding_borrower_histories...
push eax
call fcn.004ee8a9
push 0x6fb198
push 1
push 1
call fcn.004f09d9
call fcn.004708b7
push 1
call fcn.004d3586
push 0
push 0
mov eax, str.Collecting_borrower_info...
push eax
call fcn.004ee8a9
mov dword [0x9ac5a0], 0
push dword [0x9af76c]
call fcn.00544413
push 0x6fb198
push 1
push 0
call fcn.004f09d9
push 1
mov eax, str.SELECT_BORROWERNUMBER_SURNAME_FROM_Borrowers
push eax
call fcn.004f685a
and eax, eax
je 0x4b188c
push 1
call fcn.004f4ac4
and eax, eax
je 0x4b1882
push dword [0x9b3e20]
push 1
push 0
call fcn.004e0dff
lea eax, [0x9ab868]
push eax
call fcn.00559740
push dword [0x9b3e20]
push 1
push 1
call fcn.004e0dff
lea eax, [0x9ac17c]
push eax
call fcn.00559740
mov edx, dword [0x9ac17c]
push dword [0x9b3e20]
push edx
call fcn.005597c0
push dword [0x9ab868]
push dword [0x9af76c]
call fcn.0054436f
mov ebp, eax
lea eax, [ebp]
push eax
call fcn.00559740
mov ebx, dword [0x9ac5a0]
inc ebx
mov dword [0x9ac5a0], ebx
push 1
push dword [0x9ac5a0]
call fcn.004ce3f8
jmp 0x4b17de
push 1
call fcn.004be154
push 1
call fcn.004d3586
push dword [0x9af5e0]
call fcn.0055199d
push 1
mov eax, str.Collecting_loan_data_from_circulation_log
push eax
call fcn.004e2511
push 0x6fb198
push 1
push 0
call fcn.004f09d9
mov dword [0x9ac5a0], 0
mov edx, str.SELECT__FROM_Circlog_WHERE_LLTYPEL
lea ecx, [0x9ac12c]
call fcn.0051f008
push 1
push dword [0x9ac12c]
call fcn.004f685a
and eax, eax
je 0x4b1b68
push 1
call fcn.004f4ac4
and eax, eax
je 0x4b1b4e
push 1
call fcn.004ca5fe
push dword [0x9b3e20]
push 0x6fb198
push dword [0x9ae050]
call fcn.0051b5b2
lea eax, [0x9aca40]
push eax
call fcn.00559740
mov edx, str.INSERT_INTO_History_VALUES__
lea ecx, [0x9ac12c]
call fcn.0051f008
mov edx, dword [0x9ac12c]
push dword [0x9b3e20]
push edx
call fcn.005597c0
push dword [0x9b3e20]
push dword [0x9b3e20]
mov eax, dword [0x9ae528]
cdq
push edx
push eax
call fcn.005565d0
pop eax
mov edx, 0x6fe984
push edx
call fcn.005597c0
push dword [0x9b3e20]
push dword [0x9b3e20]
mov eax, dword [0x9ad7dc]
cdq
push edx
push eax
call fcn.005565d0
pop eax
mov edx, 0x6fe984
push edx
call fcn.005597c0
push dword [0x9b3e20]
push dword [0x9abb14]
call fcn.004e98e0
pop eax
mov edx, 0x6fe984
push edx
call fcn.005597c0
push dword [0x9b3e20]
push dword [0x9aca40]
call fcn.004e98e0
pop eax
mov edx, 0x6fe984
push edx
call fcn.005597c0
push dword [0x9b3e20]
push dword [0x9ac754]
call fcn.004e98e0
pop eax
mov edx, 0x6fe984
push edx
call fcn.005597c0
push dword [0x9b3e20]
push dword [0x9ac164]
call fcn.004e98e0
pop eax
lea eax, [0x9ac12c]
push eax
call fcn.00559740
mov edx, dword [0x9ac12c]
push dword [0x9b3e20]
push edx
call fcn.005597c0
mov edx, 0x723d8a
push edx
call fcn.005597c0
push dword [0x9b3e20]
push dword [0x9b3e20]
mov eax, dword [0x9ae528]
cdq
push edx
push eax
call fcn.005565d0
pop eax
mov edx, 0x6fbaa2
push edx
call fcn.005597c0
mov edx, dword [0x9aba7c]
push edx
call fcn.005597c0
lea eax, [0x9ac12c]
push eax
call fcn.00559740
push dword [0x9b3e20]
push dword [0x9b3e20]
mov eax, dword [0x9ae528]
cdq
push edx
push eax
call fcn.005565d0
mov edx, dword [esp]
mov dword [0x9b3e20], edx
mov edx, dword [0x9a36fc]
add dword [esp], edx
push dword [0x9af76c]
call fcn.0054436f
mov ebp, eax
mov edx, dword [ebp]
push dword [0x9b3e20]
push edx
call fcn.005597c0
lea eax, [0x9ac3e4]
push eax
call fcn.00559740
push 0x6fb198
push dword [0x9ac3e4]
push dword [0x9aba7c]
call fcn.004e0b10
and eax, eax
je 0x4b1b09
push dword [0x9af5e0]
call fcn.005519fb
mov edx, dword [0x9ac12c]
push dword [0x9b3e20]
push edx
call fcn.005597c0
mov ebp, dword [0x9af5e4]
lea eax, [ebp + 8]
push eax
call fcn.00559740
mov ebx, dword [0x9ac5a0]
inc ebx
mov dword [0x9ac5a0], ebx
push 0x447a0000
push dword [0x9ac5a0]
fild dword [esp]
fstp dword [esp]
call fcn.00529b50
fcomp qword [0x7450bc]
fnstsw ax
test ah, 0x40
je 0x4b1b49
push 1
push dword [0x9ac5a0]
call fcn.004ce3f8
jmp 0x4b18f7
push 1
push dword [0x9ac5a0]
call fcn.004ce3f8
push 1
call fcn.004be154
push 1
call fcn.004d3586
call fcn.00505b4e
push dword [0x9ac5a0]
pop dword [0x9abc28]
push dword [0x9b3e20]
push 0
push dword [0x9abc28]
push 0
push dword [0x9b3e20]
mov edx, str.Checking_and_rebuilding
push edx
call fcn.005597c0
push dword [0x9b3e20]
mov eax, dword [0x9ac5a0]
cdq
push edx
push eax
call fcn.00510266
pop eax
mov edx, str._borrower_histories...
push edx
call fcn.005597c0
add dword [0x9b3e20], 2
mov eax, str.Rebuild
push eax
mov edx, dword [0x9a36fc]
add dword [esp + 4], edx
call fcn.004df840
pop dword [0x9b3e20]
mov dword [0x9ac5a0], 0
mov dword [0x9ac574], 0
push 0x6fb198
push 1
push 1
call fcn.004f09d9
push dword [0x9af5e0]
call fcn.00551aa3
push dword [0x9af5e0]
call fcn.00551ab8
or eax, eax
je 0x4b1e35
mov ebp, dword [0x9af5e4]
mov edx, dword [ebp + 8]
push dword [0x9b3e20]
push edx
call fcn.005597c0
lea eax, [0x9ac12c]
push eax
call fcn.00559740
push dword [0x9b3e20]
push 1
push dword [0x9ac12c]
call fcn.004da677
lea eax, [0x9ad928]
push eax
call fcn.00559740
push 2
push dword [0x9ac12c]
call fcn.004ef8c0
mov dword [0x9ac7f8], eax
push dword [0x9b3e20]
push 3
push dword [0x9ac12c]
call fcn.004da677
lea eax, [0x9aba7c]
push eax
call fcn.00559740
mov edx, 0x6fb198
lea ecx, [0x9adfd8]
call fcn.0051f008
push dword [0x9b3e20]
push 1
push dword [0x9b3e20]
mov edx, str.SELECT_SURNAME_FROM_Borrowers_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, dword [0x9a36fc]
add dword [esp], edx
call fcn.004f685a
pop dword [0x9b3e20]
and eax, eax
je 0x4b1d42
push 1
call fcn.004f4ac4
and eax, eax
je 0x4b1d38
push dword [0x9b3e20]
push 1
push 0
call fcn.004e0dff
lea eax, [0x9adfd8]
push eax
call fcn.00559740
push 1
call fcn.004be154
mov edx, dword [0x9adfd8]
xor ecx, ecx
call fcn.0051f5d0
jne 0x4b1d8b
push 0x6fb198
push dword [0x9adfd8]
push dword [0x9aba7c]
call fcn.004e0b10
mov ebx, eax
and ebx, ebx
jle 0x4b1d8b
mov ebx, dword [0x9ac574]
push dword [0x9ad928]
push 1
call fcn.00546cd1
add ebx, eax
mov dword [0x9ac574], ebx
mov ebx, dword [0x9ac5a0]
inc ebx
mov dword [0x9ac5a0], ebx
push 0x447a0000
push dword [0x9ac5a0]
fild dword [esp]
fstp dword [esp]
call fcn.00529b50
fcomp qword [0x7450bc]
fnstsw ax
test ah, 0x40
je 0x4b1e20
push dword [0x9b3e20]
push dword [0x9b3e20]
push dword [0x9b3e20]
mov eax, dword [0x9ac5a0]
cdq
push edx
push eax
call fcn.005565d0
mov edx, 0x6fb138
push edx
call fcn.005597c0
push dword [0x9b3e20]
push dword [0x9b3e20]
mov eax, dword [0x9ac574]
cdq
push edx
push eax
call fcn.005565d0
pop eax
add dword [0x9b3e20], 2
push 0xbbc
mov edx, dword [0x9a36fc]
add dword [esp + 4], edx
call fcn.004cf230
pop dword [0x9b3e20]
push dword [0x9ac5a0]
call fcn.0050e089
call fcn.0054102b
jmp 0x4b1c1e
push 1
call fcn.004d3586
push 0x3e8
push dword [0x9abc28]
call fcn.0050bdc3
push dword [0x9af5e0]
call fcn.0055199d
ret