Function at 0x4c82c8
Capabilities:
Reference sql statements

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4c82ce
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.0051f000
mov dword [0x9ae490], 1
mov dword [0x9ac5d8], 0
mov dword [0x9ac284], 1
mov edx, 0x6fb198
lea ecx, [0x9ac984]
call fcn.0051f008
mov edx, 0x6fb198
lea ecx, [0x9ac4dc]
call fcn.0051f008
mov dword [0x9ac3c8], 0
push dword [0x9b3e20]
push dword [0x9b3e20]
mov eax, 0x6fdc02
push eax
push dword [esp + 0xc]
call fcn.00556b70
lea eax, [esp + 4]
push eax
call fcn.00559740
push dword [0x9b3e20]
push dword [0x9b3e20]
push dword [esp + 8]
call fcn.005563f0
lea eax, [esp + 4]
push eax
call fcn.00559740
push dword [0x9b3e20]
push dword [0x9b3e20]
push dword [esp + 8]
call fcn.00556580
lea eax, [esp + 4]
push eax
call fcn.00559740
push dword [esp]
call fcn.005565a0
mov dword [esp + 4], eax
mov ebx, dword [esp + 4]
and ebx, ebx
jne 0x4c83c4
mov dword [0x9ac284], 0
mov dword [0x9ae490], 0
mov eax, dword [0x9ac3c8]
jmp 0x4c86ad
push 1
call fcn.00546dfe
mov dword [esp + 8], eax
mov ebx, dword [esp + 0x28]
and ebx, ebx
je 0x4c856a
mov ebx, dword [esp + 8]
and ebx, ebx
jne 0x4c83fa
push 0x6fb198
push 1
push 0
call fcn.004f09d9
push dword [0x9b3e20]
push dword [esp + 4]
call fcn.004e98e0
lea eax, [esp + 0x10]
push eax
call fcn.00559740
push dword [0x9b3e20]
mov edx, str.SELECT_BORROWERKEY_FROM_Borrowers_WHERE_BBARCODE
push edx
call fcn.005597c0
mov edx, dword [esp + 0x10]
push edx
call fcn.005597c0
mov edx, str.___OR_ADMINID
push edx
call fcn.005597c0
mov edx, dword [esp + 0x10]
push edx
call fcn.005597c0
lea eax, [esp + 0x14]
push eax
call fcn.00559740
mov edx, 0x6fb198
lea ecx, [esp + 0x14]
call fcn.0051f008
push 1
push dword [esp + 0x14]
call fcn.004f685a
and eax, eax
je 0x4c84a4
push 1
call fcn.004f4ac4
and eax, eax
je 0x4c849a
push dword [0x9b3e20]
push 1
push 0
call fcn.004e0dff
lea eax, [esp + 0x18]
push eax
call fcn.00559740
push 1
call fcn.004be154
push dword [esp + 0x14]
call fcn.005565a0
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 8]
and ebx, ebx
jne 0x4c84c3
push 1
call fcn.004d3586
mov ebx, dword [esp + 0x18]
and ebx, ebx
jle 0x4c8565
mov edx, dword [esp + 0x14]
push dword [0x9b3e20]
push edx
call fcn.005597c0
lea eax, [0x9ac4dc]
push eax
call fcn.00559740
push dword [esp + 0x14]
call fcn.00556b90
mov dword [0x9ac3c8], eax
mov dword [esp + 0x28], 2
mov edx, dword [0x9abe44]
push dword [0x9b3e20]
push edx
call fcn.005597c0
lea eax, [0x9ae140]
push eax
call fcn.00559740
mov edx, dword [0x9abad4]
push dword [0x9b3e20]
push edx
call fcn.005597c0
lea eax, [0x9ac984]
push eax
call fcn.00559740
mov dword [0x9ac5d8], 1
mov dword [0x9ac284], 1
mov dword [0x9ae490], 1
mov eax, dword [0x9ac3c8]
jmp 0x4c86ad
jmp 0x4c8692
cmp dword [esp + 0x2c], 0
je 0x4c8692
mov ebx, dword [esp + 8]
and ebx, ebx
jne 0x4c8591
push 0x6fb198
push 1
push 0
call fcn.004f09d9
push dword [0x9b3e20]
push 0
push dword [esp + 8]
mov eax, str.ALTID
push eax
mov eax, str.Items
push eax
call fcn.004d7f0e
lea eax, [esp + 0x18]
push eax
call fcn.00559740
push dword [esp + 0x14]
mov edx, 0x6fb198
pop ecx
call fcn.0051f5d0
je 0x4c85f6
push dword [0x9b3e20]
push 0
push dword [esp + 8]
mov eax, str.IBARCODE
push eax
mov eax, str.Items
push eax
call fcn.004d7f0e
lea eax, [esp + 0x18]
push eax
call fcn.00559740
mov ebx, dword [esp + 8]
and ebx, ebx
jne 0x4c8608
push 1
call fcn.004d3586
mov edx, dword [esp + 0x14]
xor ecx, ecx
call fcn.0051f5d0
jne 0x4c8692
mov edx, dword [esp + 0x14]
push dword [0x9b3e20]
push edx
call fcn.005597c0
lea eax, [0x9ac4dc]
push eax
call fcn.00559740
push dword [esp + 0x14]
call fcn.00556b90
mov dword [0x9ac3c8], eax
mov edx, 0x6fb198
lea ecx, [0x9ae140]
call fcn.0051f008
mov edx, dword [0x9abad4]
push dword [0x9b3e20]
push edx
call fcn.005597c0
lea eax, [0x9ac984]
push eax
call fcn.00559740
mov dword [0x9ac5d8], 1
mov dword [0x9ac284], 1
mov dword [0x9ae490], 1
mov eax, dword [0x9ac3c8]
jmp 0x4c86ad
push dword [esp + 0x28]
push dword [esp + 4]
call fcn.004cc45f
mov dword [0x9ac3c8], eax
mov eax, dword [0x9ac3c8]
jmp 0x4c86ad
push dword [esp]
call fcn.00559820
push dword [esp + 0x14]
call fcn.00559820
push dword [esp + 0x10]
call fcn.00559820
push dword [esp + 0xc]
call fcn.00559820
add esp, 0x1c
pop ebx
ret 0xc