Function at 0x45696d
Capabilities:
Reference sql statements
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x570
mov eax, dword [0x51f5d0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov esi, 0x3ff
push esi
xor ebx, ebx
lea eax, [ebp - 0x54b]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x550], edi
mov byte [ebp - 0x54c], 0
call fcn.004c05d0
add esp, 0xc
push 0x3f
lea eax, [ebp - 0x4b]
push ebx
push eax
mov dword [ebp - 0x568], ebx
mov byte [ebp - 0x4c], bl
call fcn.004c05d0
add esp, 0xc
push 0xff
lea eax, [ebp - 0x14b]
push ebx
push eax
mov byte [ebp - 0x14c], bl
call fcn.004c05d0
add esp, 0xc
cmp edi, ebx
jne 0x4569fc
push ebx
call fcn.00453eb2
pop ecx
mov dword [ebp - 0x550], eax
mov dword [ebp - 0x56c], 1
mov edi, eax
jmp 0x456a02
mov dword [ebp - 0x56c], ebx
cmp edi, ebx
jne 0x456a0d
xor eax, eax
jmp 0x456feb
call fcn.0045fba0
test eax, eax
je 0x456a5b
mov eax, edi
call fcn.00453357
test eax, eax
jne 0x456a5b
push str..ParseSA12.c
push 0x927
xor ecx, ecx
call fcn.0043f09a
mov esi, eax
mov eax, 0x60f038
call fcn.0043fb98
push ebx
xor edi, edi
call fcn.0043f369
add esp, 0xc
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
jmp 0x456feb
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x55c], str.INVOICE.INVOICE_NUMBER_CUSTOMER.CUSTOMER_NUM_CUSTOMER.NAME_INVOICE.INVOICE_DATE_INVOICE.ACCOUNTING_DAY_INVOICE.COUNTERMAN_EMPLOYEE_ID_INVOICE.SALESMAN_EMPLOYEE_ID_INVOICE.CASHIER_EMPLOYEE_ID_INVOICE.PO_NUMBER_INVOICE.ATTENTION_INVOICE.TAX_AMOUNT_1_INVOICE.TAX_AMOUNT_2_INVOICE.ROA_DISCOUNT_INVOICE.INVOICE_NET_SALES_INVOICE.INVOICE_TOTAL_INVOICE.REF_TRANSACTION_TYPE_ID_INVOICE_PAYMENT.REF_TENDER_TYPE_ID_INVOICE_PAYMENT.CHECK_NUMBER_INVOICE.MANUAL_TRANSACTION_INVOICE.VOIDED_INVOICE_PAYMENT.AMOUNT_APPLIED_INVOICE_PAYMENT.IPC_JOURNAL_KEY
jne 0x456a74
mov dword [ebp - 0x55c], str.INVOICE_NUMBER_CUSTOMER_ID_CUSTOMER_NAME_INVOICE_DATE_ACCOUNTING_DAY_COUNTERMAN_EMPLOYEE_ID_SALESMAN_EMPLOYEE_ID_CASHIER_EMPLOYEE_ID_PO_NUMBER_ATTENTION_TAX_AMOUNT_1_TAX_AMOUNT_2_ROA_DISCOUNT_INVOICE_NET_SALES_INVOICE_TOTAL_REF_TRANSACTION_TYPE_ID_REF_TRANSACTION_TYPE_ID_PO_NUMBER_MANUAL_TRANSACTION_VOIDED_INVOICE_TOTAL_VOIDED
mov edx, dword [ebp - 0x55c]
push 0x2c
call fcn.004859fd
mov ebx, eax
pop ecx
inc ebx
mov ecx, edi
mov dword [ebp - 0x564], ebx
call fcn.00454190
test eax, eax
mov dword [ebp - 0x558], eax
jle 0x456ab2
push eax
push str._AND_INVOICE.LOC_d
lea eax, [ebp - 0x4c]
push 0x40
push eax
call fcn.00486e10
add esp, 0x10
jmp 0x456aba
lea eax, [ebp - 0x4c]
call fcn.004856d7
cmp byte [ebp + 0xa], 6
mov edi, 0x4deee2
jne 0x456af5
cmp byte [ebp + 0xb], 0xf
jne 0x456af5
cmp word [ebp + 8], 0x7d9
jne 0x456af5
push str.SEA223
push ecx
push 0
xor ecx, ecx
call fcn.00440998
pop ecx
pop ecx
push eax
call fcn.00486428
test eax, eax
pop ecx
pop ecx
je 0x456af5
mov edi, str._OR_DATE_INVOICE.INVOICE_DATE_2009_06_14
lea eax, [ebp - 0x14c]
call fcn.004856d7
movzx eax, byte [ebp + 0xb]
push edi
push eax
movzx eax, byte [ebp + 0xa]
push eax
movzx eax, word [ebp + 8]
push eax
push str._DATE_INVOICE.INVOICE_DATE__04d__02d__02d_s_
lea eax, [ebp - 0x14c]
push 0x100
push eax
call fcn.00486e10
mov edi, dword [ebp + 0xc]
add esp, 0x1c
test edi, edi
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0x55c]
je 0x456b48
push str.SELECT__s_FROM_INVOICE_INVOICE_PAYMENT_CUSTOMER_WHERE__s_AND_INVOICE.IDINVOICE_PAYMENT.INVOICE_ID_AND_INVOICE.CUSTOMER_IDCUSTOMER.ID_s_ORDER_BY_INVOICE.INVOICE_NUMBER_ASC
jmp 0x456b4d
push str.SELECT__s_FROM_INVOICE_WHERE__s_s_ORDER_BY_INVOICE_NUMBER_ASC
push dword [ebp - 0x550]
call fcn.0045308c
add esp, 0x14
test eax, eax
jne 0x456b7c
cmp dword [ebp - 0x56c], eax
je 0x456a06
push dword [ebp - 0x550]
call fcn.00452e47
pop ecx
jmp 0x456a06
push str..ParseSA12.c
push 0x99b
xor ecx, ecx
call fcn.0043f09a
cmp dword [ebp + 0x10], 0
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x554], ecx
je 0x456c28
push str.This_is_a_PAULA_invoice_compilation.
push str.__s_n
call fcn.0043f3e2
mov ecx, dword [ebp - 0x554]
push str._InvNum__AccntNum__AccntName__InvoiceDateTime__AccntingDay__EmpNum__SalesmanNum__CashierNum__PONum__AttentionField__TaxAmnt1__TaxAmnt2__RoaDiscount__SubTotal__Total__TransType_Csh1_Chrg2_Roa3_
call fcn.0043f3e2
mov ecx, dword [ebp - 0x554]
add esp, 0xc
test edi, edi
je 0x456bd4
push str.__TenderType__CheckNum
jmp 0x456bd9
push str.__FILLER__FILLER
call fcn.0043f3e2
pop ecx
mov ecx, dword [ebp - 0x554]
push str.__bIsManualTrans__bIsVoided
call fcn.0043f3e2
test edi, edi
pop ecx
mov ecx, dword [ebp - 0x554]
je 0x456c01
push str.__IPC_JOURNAL_KEY
jmp 0x456c06
push str.__FILLER
call fcn.0043f3e2
test edi, edi
pop ecx
mov ecx, dword [ebp - 0x554]
je 0x456c1d
push str.:_TenderTypes_0Csh_1Chrg_2Chk_3Visa_4M_C_5AMEX_6Disc__n
jmp 0x456c22
push 0x4e04b4
call fcn.0043f3e2
pop ecx
test edi, edi
je 0x456c39
call fcn.0046e649
mov dword [ebp - 0x560], eax
jmp 0x456c40
and dword [ebp - 0x560], 0
cmp dword [ebp - 0x558], 0
lea eax, [ebp - 0x4c]
jle 0x456c64
push dword [ebp - 0x558]
push str._AND_LOC_d
push 0x40
push eax
call fcn.00486e10
add esp, 0x10
jmp 0x456c69
call fcn.004856d7
and dword [ebp - 0x558], 0
push ebx
push 9
push esi
lea eax, [ebp - 0x54c]
push eax
push dword [ebp - 0x550]
call fcn.00453177
add esp, 0x14
test eax, eax
je 0x456d84
cmp dword [ebp - 0x558], 0x56ce
jge 0x456d77
mov ecx, dword [ebp - 0x554]
lea eax, [ebp - 0x54c]
push eax
push 0x4e4720
call fcn.0043f3e2
cmp dword [ebp - 0x560], 0
pop ecx
pop ecx
je 0x456d50
push 0x4e1378
lea eax, [ebp - 0x568]
lea ecx, [ebp - 0x54c]
call fcn.004871eb
and dword [ebp - 0x55c], 0
test ebx, ebx
pop ecx
jle 0x456d50
test eax, eax
je 0x456d50
cmp dword [ebp - 0x55c], 5
je 0x456d08
cmp dword [ebp - 0x55c], 6
je 0x456d08
cmp dword [ebp - 0x55c], 7
jne 0x456d2f
push eax
call fcn.004c16c6
mov edi, dword [ebp - 0x560]
pop ecx
mov ebx, eax
call fcn.0046e9d2
test eax, eax
jne 0x456d29
push ebx
mov ebx, edi
call fcn.0046e6fb
pop ecx
mov ebx, dword [ebp - 0x564]
push 0x4e1378
lea eax, [ebp - 0x568]
xor ecx, ecx
call fcn.004871eb
inc dword [ebp - 0x55c]
cmp dword [ebp - 0x55c], ebx
pop ecx
jl 0x456ce9
inc dword [ebp - 0x558]
push ebx
push 9
push esi
lea eax, [ebp - 0x54c]
push eax
push dword [ebp - 0x550]
call fcn.00453177
add esp, 0x14
test eax, eax
jne 0x456c91
cmp dword [ebp - 0x558], 0
jne 0x456ee9
push 0
call fcn.004af84c
pop ecx
mov dword [ebp - 0x568], eax
call fcn.004b0213
push 0xfffffffffffffffe
push eax
call fcn.004aedb0
mov ecx, eax
shr ecx, 0x18
push ecx
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
mov dword [ebp - 0x558], eax
push ecx
movzx eax, ax
push eax
push str.INVOICE_NUMBER_CUSTOMER_ID_CUSTOMER_NAME_INVOICE_DATE_ACCOUNTING_DAY_COUNTERMAN_EMPLOYEE_ID_SALESMAN_EMPLOYEE_ID_CASHIER_EMPLOYEE_ID_PO_NUMBER_ATTENTION_TAX_AMOUNT_1_TAX_AMOUNT_2_ROA_DISCOUNT_INVOICE_NET_SALES_INVOICE_TOTAL_REF_TRANSACTION_TYPE_ID_REF_TRANSACTION_TYPE_ID_PO_NUMBER_MANUAL_TRANSACTION_VOIDED_INVOICE_TOTAL_VOIDED
mov edi, str.SELECT__s_FROM_INVOICE_WHERE_DATE_INVOICE_DATE__04d__02d__02d
push edi
push dword [ebp - 0x550]
call fcn.0045308c
add esp, 0x20
xor ebx, ebx
test eax, eax
je 0x456e24
push dword [ebp - 0x564]
lea eax, [ebp - 0x54c]
push 9
push esi
push eax
push dword [ebp - 0x550]
call fcn.00453177
add esp, 0x14
test eax, eax
je 0x456e2d
cmp ebx, 0x56ce
jge 0x456e24
push dword [ebp - 0x564]
lea eax, [ebp - 0x54c]
push 9
push esi
push eax
push dword [ebp - 0x550]
inc ebx
call fcn.00453177
add esp, 0x14
test eax, eax
jne 0x456df9
cmp ebx, 2
jge 0x456ecf
call fcn.004af84c
sub eax, dword [ebp - 0x568]
cmp eax, 0x2710
jae 0x456eca
push 0xfffffffffffffffe
push dword [ebp - 0x558]
call fcn.004aedb0
mov ecx, eax
shr ecx, 0x18
push ecx
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
push ecx
movzx eax, ax
push eax
push str.INVOICE_NUMBER_CUSTOMER_ID_CUSTOMER_NAME_INVOICE_DATE_ACCOUNTING_DAY_COUNTERMAN_EMPLOYEE_ID_SALESMAN_EMPLOYEE_ID_CASHIER_EMPLOYEE_ID_PO_NUMBER_ATTENTION_TAX_AMOUNT_1_TAX_AMOUNT_2_ROA_DISCOUNT_INVOICE_NET_SALES_INVOICE_TOTAL_REF_TRANSACTION_TYPE_ID_REF_TRANSACTION_TYPE_ID_PO_NUMBER_MANUAL_TRANSACTION_VOIDED_INVOICE_TOTAL_VOIDED
push edi
push dword [ebp - 0x550]
call fcn.0045308c
add esp, 0x20
xor ebx, ebx
test eax, eax
je 0x456eca
push dword [ebp - 0x564]
lea eax, [ebp - 0x54c]
push 9
push esi
push eax
push dword [ebp - 0x550]
call fcn.00453177
add esp, 0x14
test eax, eax
je 0x456ee9
cmp ebx, 0x56ce
jge 0x456eca
push dword [ebp - 0x564]
lea eax, [ebp - 0x54c]
push 9
push esi
push eax
push dword [ebp - 0x550]
inc ebx
call fcn.00453177
add esp, 0x14
test eax, eax
jne 0x456e9f
cmp ebx, 2
jl 0x456ee9
mov ecx, dword [ebp - 0x554]
push str.There_are_no_parts_matching_the_selection_criteria__please_try_again...
mov ebx, 0x4e4720
push ebx
call fcn.0043f3e2
pop ecx
pop ecx
jmp 0x456eee
mov ebx, 0x4e4720
mov ecx, dword [ebp - 0x554]
push str.END_Invoice_Definition_Table
push ebx
call fcn.0043f3e2
mov edi, dword [ebp - 0x560]
test edi, edi
pop ecx
pop ecx
je 0x456fd0
mov ecx, dword [ebp - 0x554]
push str._Start_EmpId_Conv_Table_
push str._n_n_s_n
call fcn.0043f3e2
pop ecx
pop ecx
call fcn.0046e937
jmp 0x456fa4
push dword [ebp - 0x558]
push str.SELECT_EMPLOYEE_NUM_FIRST_NAME_LAST_NAME_FROM_EMPLOYEE_WHERE_ID_d
push dword [ebp - 0x550]
call fcn.0045308c
add esp, 0xc
test eax, eax
je 0x456f99
xor edi, edi
jmp 0x456f7b
cmp edi, 0xde
jge 0x456f99
test edi, edi
jne 0x456f7a
mov ecx, dword [ebp - 0x554]
lea eax, [ebp - 0x54c]
push eax
push dword [ebp - 0x558]
push str._d_t_s_n
call fcn.0043f3e2
add esp, 0xc
inc edi
push 3
push 9
push esi
lea eax, [ebp - 0x54c]
push eax
push dword [ebp - 0x550]
call fcn.00453177
add esp, 0x14
test eax, eax
jne 0x456f4e
mov edi, dword [ebp - 0x560]
call fcn.0046e983
test eax, eax
mov dword [ebp - 0x558], eax
jne 0x456f2d
mov ecx, dword [ebp - 0x554]
push str.End_EmpId_Conv_Table
push ebx
call fcn.0043f3e2
mov esi, dword [ebp - 0x560]
pop ecx
pop ecx
call fcn.0046e6be
cmp dword [ebp - 0x56c], 0
je 0x456fe5
push dword [ebp - 0x550]
call fcn.00452e47
pop ecx
mov eax, dword [ebp - 0x554]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bfeb5
leave
ret