Function at 0x449c38
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5ec
mov eax, dword [0x4cc8c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 0x5bc], eax
mov dword [ebp - 0x5b8], ecx
mov dword [ebp - 0x5b0], esi
push edi
test eax, eax
je 0x44a46e
test ebx, ebx
je 0x44a46e
push dword [ebx + 0x14]
call fcn.004359a6
xor eax, eax
mov dword [esp], 0x400
lea edi, [ebp - 0x594]
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x584]
push eax
call fcn.00466ad0
push 0x80
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.00466ad0
push 0x100
lea eax, [ebp - 0x184]
push esi
push eax
call fcn.00466ad0
push esi
push 1
mov dword [ebp - 0x5a8], esi
call fcn.0044cb23
push 1
call fcn.0044ca4c
add esp, 0x30
cmp dword [ebx + 0x2f94], esi
jne 0x449cf3
push dword [ebx + 0x14]
call fcn.00454ddd
pop ecx
mov dword [ebx + 0x14], esi
push esi
push esi
call fcn.00447d4e
pop ecx
pop ecx
push dword [ebx + 0x14]
test eax, eax
je 0x449d22
call fcn.004359a6
pop ecx
test eax, eax
je 0x44a46e
push dword [ebx + 0x14]
call fcn.0043453d
pop ecx
mov dword [ebx + 0x14], esi
jmp 0x44a46e
call fcn.004359a6
pop ecx
test eax, eax
jne 0x449d45
push esi
call fcn.00434204
mov dword [ebx + 0x14], eax
xor eax, eax
inc eax
pop ecx
mov dword [ebx + 0x2f94], eax
mov dword [ebp - 0x5a8], eax
cmp dword [ebx + 0x14], esi
jne 0x449d5a
push str.:5:Need_to_handle_TAMS_II_SA7_login_failure_
call fcn.0040d511
pop ecx
jmp 0x44a46e
push dword [ebx + 0x14]
call fcn.0045e61c
mov dword [esp], 0xc0b
lea eax, [ebp - 0x594]
push str.C:UsersOfficeDocumentsVisual_StudioPAULAServerPAULA.c
push eax
call fcn.0045f310
push ecx
mov edi, esp
lea esi, [ebp - 0x594]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00460970
mov dword [ebp - 0x598], eax
add esp, 0x10
mov byte [ebp - 0x595], 1
mov eax, dword [ebp - 0x598]
mov dword [ebp - 0x59c], eax
mov si, word [ebp - 0x59c]
shr eax, 0x10
inc al
cmp al, 0xc
jbe 0x449dba
inc si
xor edx, edx
movzx ecx, al
inc edx
cmp al, 0xc
push 0x2c
cmovbe edx, ecx
push str.SALES_YEAR_MONTH_ACCOUNTING_DAY_GROSS_CASH_SALES_GROSS_CHARGE_SALES_NET_SALES_RETURNS_RETURNS_COST_MISCELLANEOUS_ADJUSTMENTS_INVOICE_COUNT_VOID_AMOUNT_VOID_COUNT_RECEIVED_ON_ACCOUNT_ROA_DISCOUNT_TAKEN_JOURNAL_ENTRIES_SALES_COST_FREIGHT_CHARGES
mov dword [ebp - 0x5a0], edx
call fcn.004503c6
push dword [ebx + 0x14]
inc eax
mov dword [ebp - 0x5ac], eax
call fcn.00435269
and dword [ebp - 0x5a4], 0
add esp, 0xc
mov ecx, dword [0x4cc7ec]
mov edi, eax
test ecx, ecx
je 0x449e40
push edi
lea eax, [ecx + 1]
mov dword [0x4cc7ec], eax
movzx eax, byte [ebp - 0x599]
push eax
mov eax, dword [ebp - 0x5a0]
movzx eax, al
push eax
movzx eax, si
push eax
movzx eax, byte [ebp - 0x596]
push 1
push eax
movzx eax, word [ebp - 0x598]
push eax
push str.SALES_YEAR_MONTH_ACCOUNTING_DAY_GROSS_CASH_SALES_GROSS_CHARGE_SALES_NET_SALES_RETURNS_RETURNS_COST_MISCELLANEOUS_ADJUSTMENTS_INVOICE_COUNT_VOID_AMOUNT_VOID_COUNT_RECEIVED_ON_ACCOUNT_ROA_DISCOUNT_TAKEN_JOURNAL_ENTRIES_SALES_COST_FREIGHT_CHARGES
push ecx
push str.SA7_DBG__d:_SET_ROWCOUNT_1_SELECT__s_FROM_STORE_DAILY_SALES_WHERE__SALES_YEAR_MONTH_04d__02d__02d_OR_SALES_YEAR_MONTH_04d__02d__02d__AND_LOC_d_ORDER_BY_SALES_YEAR_MONTH_DESC__ACCOUNTING_DAY_DESC
call fcn.0040d9e1
add esp, 0x28
movzx ecx, byte [ebp - 0x599]
mov eax, dword [ebp - 0x5a0]
movzx edx, byte [ebp - 0x596]
push edi
push ecx
movzx eax, al
push eax
movzx esi, si
push esi
push 1
push edx
mov dword [ebp - 0x5b4], eax
movzx eax, word [ebp - 0x598]
push eax
push str.SALES_YEAR_MONTH_ACCOUNTING_DAY_GROSS_CASH_SALES_GROSS_CHARGE_SALES_NET_SALES_RETURNS_RETURNS_COST_MISCELLANEOUS_ADJUSTMENTS_INVOICE_COUNT_VOID_AMOUNT_VOID_COUNT_RECEIVED_ON_ACCOUNT_ROA_DISCOUNT_TAKEN_JOURNAL_ENTRIES_SALES_COST_FREIGHT_CHARGES
push str.SET_ROWCOUNT_1_SELECT__s_FROM_STORE_DAILY_SALES_WHERE__SALES_YEAR_MONTH_04d__02d__02d_OR_SALES_YEAR_MONTH_04d__02d__02d__AND_LOC_d_ORDER_BY_SALES_YEAR_MONTH_DESC__ACCOUNTING_DAY_DESC
push dword [ebx + 0x14]
mov dword [ebp - 0x59c], ecx
mov dword [ebp - 0x5a0], edx
call fcn.004348cf
add esp, 0x28
test eax, eax
je 0x44a3d8
push dword [ebp - 0x5ac]
lea eax, [ebp - 0x584]
push 9
push 0x3ff
push eax
push dword [ebx + 0x14]
call fcn.004349c0
add esp, 0x14
push ebx
test eax, eax
je 0x449ef8
lea eax, [ebp - 0x584]
push eax
call fcn.0044856b
mov esi, eax
mov dword [ebp - 0x59c], esi
pop ecx
pop ecx
test esi, esi
jne 0x449f07
lea eax, [ebp - 0x584]
push eax
push str.:5:RefreshSales___EAP:_Sales_line___s__is_invalid.
lea eax, [ebp - 0x184]
push 0x100
push eax
call fcn.0045285b
add esp, 0x10
jmp 0x449f07
call fcn.0044ba2f
xor esi, esi
inc esi
pop ecx
mov dword [ebp - 0x59c], esi
mov ecx, dword [0x4cc7ec]
test ecx, ecx
je 0x449f2e
lea eax, [ecx + 1]
mov dword [0x4cc7ec], eax
lea eax, [ebp - 0x584]
push eax
push ecx
push str.SA7_DBG__d:__s
call fcn.0040d9e1
add esp, 0xc
test esi, esi
jle 0x44a416
push 0x2c
push str.EOD_STARTED_DATE_NEW_DAY_STARTED_DATE_SALES_YEAR_MONTH_ACCT_DAY_STARTED_BY_IP_ADDRESS_STARTED_BY_EMPLOYEE_ID
call fcn.004503c6
pop ecx
pop ecx
mov ecx, dword [0x4cc7ec]
lea esi, [eax + 1]
test ecx, ecx
je 0x449f6d
push edi
push str.EOD_STARTED_DATE_NEW_DAY_STARTED_DATE_SALES_YEAR_MONTH_ACCT_DAY_STARTED_BY_IP_ADDRESS_STARTED_BY_EMPLOYEE_ID
push ecx
lea eax, [ecx + 1]
push str.SA7_DBG__d:_SET_ROWCOUNT_1_SELECT__s_FROM_END_OF_DAY_MONITOR_WHERE_LOC_d_AND_EOD_STARTED_DATE_SELECT_MAX_EOD_STARTED_DATE__FROM_END_OF_DAY_MONITOR_
mov dword [0x4cc7ec], eax
call fcn.0040d9e1
add esp, 0x10
push edi
push str.EOD_STARTED_DATE_NEW_DAY_STARTED_DATE_SALES_YEAR_MONTH_ACCT_DAY_STARTED_BY_IP_ADDRESS_STARTED_BY_EMPLOYEE_ID
push str.SET_ROWCOUNT_1_SELECT__s_FROM_END_OF_DAY_MONITOR_WHERE_LOC_d_AND_EOD_STARTED_DATE_SELECT_MAX_EOD_STARTED_DATE__FROM_END_OF_DAY_MONITOR_
push dword [ebx + 0x14]
call fcn.004348cf
add esp, 0x10
test eax, eax
je 0x44a21a
xor eax, eax
lea edi, [ebp - 0x5cc]
stosd dword es:[edi], eax
push esi
push 9
push 0x3ff
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x5dc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x584]
push eax
push dword [ebx + 0x14]
xor edi, edi
mov dword [ebp - 0x5a0], edi
call fcn.004349c0
add esp, 0x14
test eax, eax
je 0x44a0c3
push 0x80
lea eax, [ebp - 0x584]
mov dword [ebp - 0x598], edi
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00452b01
mov ecx, dword [0x4cc7ec]
add esp, 0xc
test ecx, ecx
je 0x44a015
lea eax, [ecx + 1]
mov dword [0x4cc7ec], eax
lea eax, [ebp - 0x584]
push eax
push ecx
push str.SA7_DBG__d:__s
call fcn.0040d9e1
add esp, 0xc
lea eax, [ebp - 0x598]
push eax
lea eax, [ebp - 0x584]
push 0x48cb58
push eax
call fcn.004525d2
push eax
lea eax, [ebp - 0x5ec]
push eax
call fcn.0046000c
mov esi, eax
lea edi, [ebp - 0x5cc]
lea eax, [ebp - 0x598]
push eax
push 0x48cb58
movsd dword es:[edi], dword [esi]
push 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004525d2
push eax
lea eax, [ebp - 0x5ec]
push eax
call fcn.0046000c
mov esi, eax
lea edi, [ebp - 0x5dc]
lea eax, [ebp - 0x598]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x48cb58
xor edi, edi
push esi
push edi
call fcn.004525d2
lea eax, [ebp - 0x598]
push eax
push esi
push edi
call fcn.004525d2
add esp, 0x40
push eax
call fcn.00426b9b
mov dword [ebp - 0x5a0], eax
lea eax, [ebp - 0x598]
push eax
push esi
push edi
call fcn.004525d2
lea eax, [ebp - 0x598]
push eax
push esi
push edi
call fcn.004525d2
add esp, 0x1c
push edi
sub esp, 0x10
lea esi, [ebp - 0x5cc]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0045f667
add esp, 0x14
test eax, eax
jne 0x44a150
push eax
sub esp, 0x10
lea esi, [ebp - 0x5dc]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0045f667
add esp, 0x14
test eax, eax
jne 0x44a150
lea eax, [ebp - 0x84]
push eax
sub esp, 0x10
lea esi, [ebp - 0x5dc]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0045fa5f
add esp, 0x10
lea esi, [ebp - 0x5cc]
push eax
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0045fa5f
add esp, 0x10
push eax
push str.:7:RefreshSales___EAP:_Sales_CANNOT_be_posted:_stEODTime___s__stNewDayTime___s:__s
lea eax, [ebp - 0x184]
push 0x100
push eax
call fcn.0045285b
add esp, 0x18
jmp 0x44a416
mov eax, dword [ebp - 0x59c]
push 0xc84
mov dword [ebp - 0x5a4], eax
lea eax, [ebx + 0x4c]
push str.C:UsersOfficeDocumentsVisual_StudioPAULAServerPAULA.c
push eax
call fcn.0045f310
lea edi, [ebx + 0x5c]
lea esi, [ebp - 0x5cc]
movsd dword es:[edi], dword [esi]
push ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx edi, word [ebp - 0x5c8]
lea esi, [ebp - 0x5cc]
shl edi, 4
add edi, 0x2f9c
add edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x5dc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0045f746
add esp, 0x10
test eax, eax
jne 0x44a215
sub esp, 0x10
lea esi, [ebp - 0x5cc]
mov edi, esp
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x5dc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0045f51b
add esp, 0x20
test eax, eax
jne 0x44a215
mov eax, dword [ebp - 0x59c]
xor ecx, ecx
mov edx, dword [ebp - 0x5a0]
cmp edx, eax
jg 0x44a1f7
cmp edx, 1
jne 0x44a241
cmp eax, 0x14
jle 0x44a241
push str.Yesterday_sales_catch_test.
lea eax, [ebp - 0x184]
push 0x100
push eax
call fcn.0045285b
add esp, 0xc
jmp 0x44a416
xor ecx, ecx
inc ecx
jmp 0x44a241
lea eax, [ebp - 0x84]
push eax
push edi
push str.:7:RefreshSales___EAP:_ExecuteODBCFormat_LOC_d__FAILED:_EOD_cannot_be_determined:__s
lea eax, [ebp - 0x184]
push 0x100
push eax
call fcn.0045285b
mov ecx, dword [ebp - 0x5b0]
add esp, 0x14
cmp dword [ebp - 0x5a4], 0
jle 0x44a416
mov dword [ebx + 0x2f90], 1
test ecx, ecx
je 0x44a305
cmp dword [ebx + 0x2f98], 0
jne 0x44a3c9
cmp dword [ebx + 0x44], 0
je 0x44a2dc
cmp dword [ebx + 0x38], 0
je 0x44a2dc
push ebx
call fcn.004495ac
cmp dword [0x5c394c], 0
pop ecx
jne 0x44a2c8
push ebx
call fcn.0044ba2f
push ebx
call fcn.004495ac
pop ecx
pop ecx
test eax, eax
jne 0x44a2ae
lea eax, [ebp - 0x84]
push eax
push str.:8:RefreshSales___Critical_Exception_:_PostSales___says_EOD_has_NOT_been_encountered__This_will_result_in_EOD_never_being_posted___s
call fcn.0040d511
pop ecx
pop ecx
push str.:0:FYI:_End_Of_Day_process_has_begun.__TAMS_II_
mov dword [ebx + 0x2f98], 1
call fcn.0040d9e1
pop ecx
jmp 0x44a3c9
lea eax, [ebp - 0x84]
push eax
push str.:5:RefreshSales___EAP:_End_of_Day_process_has_begun__but_the_initial_PostSalesResult___FAILED:_EOD_cannot_be_posted._Another_attempt_will_be_made:__s
call fcn.0040d511
pop ecx
jmp 0x44a2c2
lea eax, [ebp - 0x84]
push eax
push str.:2:RefreshSales___EAP:_EOD_has_been_detected_from_zero_sales.__This_may_happen_when_the_server_is_started_after_EOD.__EOD_has_been_ignored:__s
call fcn.0040d9e1
push ebx
call fcn.0044ba2f
add esp, 0xc
mov dword [ebx + 0x2f98], 1
jmp 0x44a3c9
and dword [ebx + 0x2f98], 0
push ebx
call fcn.004495ac
pop ecx
test eax, eax
je 0x44a3c9
lea eax, [ebp - 0x84]
push eax
push dword [ebx + 0x38]
call fcn.00426fcf
pop ecx
push eax
push str.:9:RefreshSales___Critical_Exception_:_PostSales___says_EOD_has_been_encountered__This_should_never_happen._NetSales___s:__s
call fcn.0040d511
movzx eax, word [0x5c085c]
add esp, 0xc
push dword [0x5c3870]
push eax
movzx eax, word [0x5bd84c]
push eax
push dword [0x5c386c]
movzx eax, word [0x5bd8a2]
push eax
movzx eax, word [0x5c08b2]
push eax
push dword [0x5bd898]
push dword [0x5c08a8]
push dword [0x5bd894]
push dword [0x5c08a4]
push dword [0x5bd888]
call fcn.00426fcf
pop ecx
push eax
push dword [0x5c0898]
call fcn.00426fcf
pop ecx
push eax
push dword [0x5c07e0]
mov esi, 0x5bd83c
push dword [0x5c37f0]
push 0
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0045fabc
add esp, 0x14
push eax
push str.:9:RefreshSales___DEBUG:_SnapShot_at__s:_bIsTAMSii_d__d__tNetSales_s__s__iNumInvoices_d__d__iNumVoids_d__d__wDay_d__d:_STATICS:_dwTimeLastParse_d__wLastDayParsed_d__wLastDayEOD_d__iNumTimesInitTried_d
call fcn.0040d511
add esp, 0x40
and dword [0x4cc7ec], 0
xor eax, eax
inc eax
jmp 0x44a470
lea eax, [ebp - 0x84]
push eax
movzx eax, word [ebp - 0x598]
push edi
push dword [ebp - 0x59c]
push dword [ebp - 0x5b4]
push esi
push 1
push dword [ebp - 0x5a0]
push eax
push str.:7:RefreshSales___EAP:_OUTER_ExecuteODBCFormat__SALES_YEAR_MONTH_04d__02d__02d_OR_SALES_YEAR_MONTH_04d__02d__02d__AND_LOC_d_FAILED:__s
lea eax, [ebp - 0x184]
push 0x100
push eax
call fcn.0045285b
add esp, 0x2c
cmp dword [ebp - 0x5a8], 0
jne 0x44a453
push dword [ebx + 0x14]
call fcn.0043453d
and dword [ebx + 0x14], 0
lea eax, [ebp - 0x84]
push eax
push str.:5:RefreshSales___EOP:_The_recycled_connection_failed._Trying_again_with_new_connection...___s
call fcn.0040d511
push dword [ebp - 0x5b8]
push ebx
push dword [ebp - 0x5bc]
call fcn.00449c38
add esp, 0x18
jmp 0x44a470
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x184]
push eax
push str.:5:FYI:_TAMSii_SA7_FAILED:__s:__s
call fcn.0040d511
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004654a8
leave
ret