Function at 0x4c2c19
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x600
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x59c], eax
mov dword [ebp - 0x5a0], esi
mov dword [ebp - 0x5a4], edi
je 0x4c3b1d
cmp ebx, edi
je 0x4c3b1d
call fcn.00493572
test eax, eax
jne 0x4c3b1d
mov eax, dword [ebx + 0x14]
call fcn.00480e9b
test eax, eax
jne 0x4c32f6
call fcn.00418518
test eax, eax
jne 0x4c32f6
push str..ServerPAULA.c
push 0xce9
push edi
push dword [ebx + 0x14]
mov dword [ebp - 0x5a4], edi
call fcn.004d6ae6
add esp, 0x10
test eax, eax
push edi
push edi
jne 0x4c2f41
call fcn.004c5525
test eax, eax
pop ecx
pop ecx
jne 0x4c2fa7
cmp dword [0x7015c4], edi
je 0x4c2d1e
call fcn.004fa8e4
sub eax, dword [0x7015c8]
cmp eax, dword [0x7015c4]
ja 0x4c2d1e
call fcn.004fa8e4
mov ecx, dword [0x7015c8]
mov edx, dword [0x7015c4]
add ecx, edx
sub ecx, eax
test ecx, ecx
mov dword [ebp - 0x5b0], ecx
fild dword [ebp - 0x5b0]
jge 0x4c2d01
fadd dword [0x5edb68]
fdiv qword [0x5ee110]
push ecx
push ecx
fstp qword [esp]
push str.:3:RefreshSales___FAILED:_TelNetTAMSLogon___cannot_logon_for__.02fmin
call fcn.0042bd38
add esp, 0xc
jmp 0x4c2fa7
cmp dword [0x7015cc], edi
je 0x4c2d52
mov esi, str.PaulaConfig.cfg
push esi
push dword [ebp - 0x59c]
call fcn.00461390
cmp eax, edi
pop ecx
pop ecx
je 0x4c2d4c
push eax
push esi
push str.:5:LoadConfigSettings__s__FAILED_in_PaulaServer_during_Invalid_LOGIN_Password_reload_attempt_because___s_
call fcn.0042bd38
add esp, 0xc
mov dword [0x7015cc], edi
mov esi, dword [ebp - 0x59c]
add esi, 0x1094
mov ecx, esi
call fcn.004d613b
cmp eax, edi
mov dword [ebx + 0x14], eax
jne 0x4c2d86
push edi
mov ecx, esi
call fcn.0046b3fc
pop ecx
push eax
push esi
push str.:4:RefreshSales___FAILED_to_connect_to___s_:_PingHost___u
call fcn.0042b70b
add esp, 0xc
jmp 0x4c2d93
push esi
push str.:0:FYI:_RefreshSales___has_opened_a_connection_to___s_.
call fcn.0042bd38
pop ecx
pop ecx
mov esi, dword [ebx + 0x14]
call fcn.004d6a2d
mov esi, dword [ebx + 0x14]
call fcn.004d693d
call fcn.004935a3
test eax, eax
je 0x4c2dc2
mov eax, dword [0x7093b0]
cmp eax, edi
je 0x4c2dc2
mov ecx, eax
mov dword [0x7093b0], edi
call fcn.00435239
mov esi, dword [ebx + 0x14]
call fcn.004d5edc
mov ecx, dword [ebp - 0x59c]
mov eax, dword [ecx + 0x2150]
call fcn.0052b5d7
push dword [ebp - 0x5a0]
lea esi, [ecx + 0x149c]
push edi
push esi
push str.sales
push dword [ebx + 0x14]
call fcn.0052b5ee
add esp, 0x14
cmp eax, 4
ja 0x4c2ecc
je 0x4c2eb2
mov ecx, eax
sub ecx, edi
je 0x4c2e88
dec ecx
je 0x4c2e99
dec ecx
je 0x4c2e4f
dec ecx
jne 0x4c2edf
push esi
push str.:7:RefreshSales___FAILED:_TelNetTAMSLogon___FAILED_because_of_an_invalid_password___This_password____s___needs_to_be_fixed_ASAP_____Further_login_attempts_for_this_session_will_be_disallowed.
call fcn.0042bd38
mov dword [0x7015c4], 0x5265c0
pop ecx
pop ecx
call fcn.004fa8e4
mov dword [0x7015c8], eax
mov dword [0x7015cc], 1
jmp 0x4c2fa7
fldz
mov ecx, ebx
fstp dword [ebx + 0x40]
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x2c], edi
mov dword [ebx + 0x30], edi
mov dword [ebx + 0x34], edi
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x3c], edi
mov dword [ebx + 0x44], edi
mov dword [ebx + 0x48], edi
call fcn.004c6242
push edi
push 1
call fcn.004c5525
push str.:0:FYI:_EOM_process_has_begun.
call fcn.0042bd38
add esp, 0xc
mov dword [0x7015c4], edi
mov dword [0x7015c8], edi
jmp 0x4c2fa7
push str.:3:RefreshSales___FAILED:_TelNetTAMSLogon___FAILED:_System_maintenance_is_in_progress...
call fcn.0042bd38
mov dword [0x7015c4], 0xdbba0
jmp 0x4c2f34
push esi
push str.:7:RefreshSales___FAILED:_TelNetTAMSLogon___FAILED_because_a_login_password_is_required.___s_
call fcn.0042bd38
mov dword [0x7015c4], 0x36ee80
jmp 0x4c2e34
mov ecx, eax
sub ecx, 7
je 0x4c2f20
dec ecx
dec ecx
je 0x4c2f19
dec ecx
dec ecx
je 0x4c2f03
dec ecx
dec ecx
je 0x4c2eed
push eax
push str.:6:RefreshSales___FAILED:_TelNetTAMSLogon___FAILED:_Unknown_error__u.
call fcn.0042bd38
pop ecx
jmp 0x4c2f2a
push str.:3:RefreshSales___FAILED:_TelNetTAMSLogon___FAILED:_TAMS_backup_failed...
call fcn.0042bd38
mov dword [0x7015c4], 0x36ee80
jmp 0x4c2f34
push str.:6:RefreshSales___FAILED:_TelNetTAMSLogon___FAILED:_Max_users_has_been_exceeded.
call fcn.0042bd38
mov dword [0x7015c4], 0x5265c0
jmp 0x4c2f34
push str.:3:RefreshSales___FAILED:_TelNetTAMSLogon___FAILED:_EOD_needs_to_be_restarted...
jmp 0x4c2ef2
push str.:3:RefreshSales___FAILED:_TelNetTAMSLogon___FAILED:_Start_new_day_hang_up...
call fcn.0042bd38
mov dword [0x7015c4], 0x927c0
pop ecx
call fcn.004fa8e4
mov dword [0x7015c8], eax
jmp 0x4c2fa7
call fcn.004c5525
test eax, eax
pop ecx
pop ecx
je 0x4c2fa7
mov ecx, dword [ebx + 0x14]
mov edx, esi
call fcn.0052f381
test eax, eax
jne 0x4c2f79
mov ecx, dword [ebx + 0x14]
mov edx, esi
call fcn.0052f381
test eax, eax
jne 0x4c2f79
push 0x5b35d0
push edi
push dword [ebx + 0x14]
call fcn.004d4fec
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x4b
call esi
push str.byM
push 5
push dword [ebx + 0x14]
call fcn.004d4fec
add esp, 0xc
push 0xaf
call esi
mov eax, dword [ebx + 0x14]
call fcn.004d66c5
mov dword [ebx + 0x14], edi
push str..ServerPAULA.c
push 0xd95
push edi
push dword [ebx + 0x14]
call fcn.004d6ae6
add esp, 0x10
test eax, eax
je 0x4c32eb
cmp dword [0x7015d0], edi
je 0x4c2fe4
call fcn.004fa8e4
sub eax, dword [0x7015d4]
cmp eax, dword [0x7015d0]
jbe 0x4c32eb
mov edx, dword [ebp - 0x5a0]
mov ecx, dword [ebx + 0x14]
call fcn.0052f381
test eax, eax
jne 0x4c3047
mov edx, dword [ebp - 0x5a0]
mov ecx, dword [ebx + 0x14]
call fcn.0052f381
test eax, eax
jne 0x4c3047
push 0x5b35d0
push 5
push dword [ebx + 0x14]
call fcn.004d4fec
add esp, 0xc
push str.byM
push 5
push dword [ebx + 0x14]
call fcn.004d4fec
add esp, 0xc
push 0x96
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0x14]
call fcn.004d66c5
mov dword [ebx + 0x14], edi
jmp 0x4c32eb
cmp dword [0x7015d8], edi
mov esi, dword [ebp - 0x59c]
je 0x4c307f
push str.PaulaConfig.cfg
push esi
call fcn.00461390
cmp eax, edi
pop ecx
pop ecx
je 0x4c3079
push eax
push str.PaulaConfig.cfg
push str.:5:LoadConfigSettings__s__FAILED_in_PaulaServer_during_Invalid_SA7_Password_reload_attempt_because___s_
call fcn.0042bd38
add esp, 0xc
mov dword [0x7015d8], edi
mov eax, dword [esi + 0x206c]
push dword [ebp - 0x5a0]
mov dword [ebx + 8], eax
lea eax, [esi + 0x159c]
add esi, 0x189c
push ebx
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], esi
mov dword [0x5f37e0], edi
call fcn.005290b1
cmp dword [0x5f37e0], edi
pop ecx
pop ecx
mov dword [ebp - 0x594], eax
je 0x4c30d0
mov edi, dword [ebx + 0x14]
push 0
call fcn.004d7df3
and dword [0x5f37e0], 0
pop ecx
xor edi, edi
mov eax, dword [ebp - 0x594]
sub eax, edi
mov esi, 0x1b7740
je 0x4c321f
dec eax
je 0x4c31d4
dec eax
je 0x4c318a
dec eax
dec eax
je 0x4c317e
dec eax
je 0x4c31d4
mov eax, dword [0x7015e0]
inc dword [0x7015e0]
cmp eax, 2
jle 0x4c324e
push dword [ebp - 0x594]
push dword [0x7015e0]
push str.:4:TelNetGetSalesSA7___has_failed__d_times_consecutively:_error__u
call fcn.0042bd38
mov eax, dword [0x7015e0]
add esp, 0xc
cmp eax, 5
jg 0x4c3143
mov dword [0x7015d0], 0x493e0
jmp 0x4c316f
cmp eax, 0xa
jg 0x4c3154
mov dword [0x7015d0], 0x927c0
jmp 0x4c316f
xor ecx, ecx
cmp eax, 0xf
setg cl
dec ecx
and ecx, 0xffe488c0
add ecx, 0x36ee80
mov dword [0x7015d0], ecx
call fcn.004fa8e4
mov dword [0x7015d4], eax
jmp 0x4c324e
push str.:2:SA7_parsing_failed_because_of_an_in_valid_SA_submenu_password.
call fcn.0042bd38
jmp 0x4c3202
mov eax, dword [ebx + 0x10]
cmp eax, edi
je 0x4c3199
cmp byte [eax], 0
je 0x4c3199
push edi
jmp 0x4c319b
push 1
push edi
call fcn.004c6ff0
pop ecx
pop ecx
push str.:2:SA7_parsing_failed_because_of_an_in_valid_SA7_password.
call fcn.0042bd38
inc dword [0x7015dc]
cmp dword [0x7015dc], 1
pop ecx
jne 0x4c31c8
push edi
call fcn.004c690a
test eax, eax
pop ecx
jne 0x4c3203
push dword [ebx + 0x10]
push 1
call fcn.0045b2ec
jmp 0x4c3201
push edi
call fcn.004c70d8
cmp dword [ebp - 0x594], 5
mov eax, dword [ebp - 0x59c]
pop ecx
push dword [eax + 0x206c]
jne 0x4c31f7
push str.:6:The_PAULA_Server_has_determined_by_TelNetGetSalesSA7___that_the_PAULA_employee_number__d_is_setup_to_require_a_password_
jmp 0x4c31fc
push str.:6:The_PAULA_Server_has_determined_by_TelNetGetSalesSA7___that_the_PAULA_employee_number__d_is_invalid_
call fcn.0042b70b
pop ecx
pop ecx
mov dword [0x7015d0], esi
call fcn.004fa8e4
mov dword [0x7015d4], eax
mov dword [0x7015d8], 1
jmp 0x4c324e
push edi
push 1
call fcn.004c6ff0
push edi
push edi
call fcn.0045b2ec
push 1
call fcn.004c70d8
add esp, 0x14
mov dword [ebp - 0x5a4], 1
mov dword [0x7015d0], edi
mov dword [0x7015d4], edi
call fcn.004fa8e4
sub eax, dword [0x7015e4]
cmp eax, esi
jbe 0x4c3275
mov edx, dword [ebp - 0x5a0]
mov ecx, dword [ebx + 0x14]
call fcn.004fac91
call fcn.004fa8e4
mov dword [0x7015e4], eax
cmp dword [ebp - 0x594], edi
mov dword [ebx + 0x2f90], edi
jne 0x4c328c
mov ecx, ebx
call fcn.004c6242
jmp 0x4c328e
xor eax, eax
cmp eax, edi
je 0x4c329d
push str.:0:FYI:_End_Of_Day_process_has_begun.
call fcn.0042bd38
pop ecx
cmp dword [0x7015c4], edi
ja 0x4c32ad
cmp dword [0x7015d0], edi
jbe 0x4c32eb
mov ecx, dword [ebp - 0x59c]
push edi
push 1
add ecx, 0x1094
call fcn.004bddbd
test eax, eax
pop ecx
pop ecx
je 0x4c32eb
cmp dword [0x7015c4], edi
jbe 0x4c32d9
mov dword [0x7015c4], 0xdbba00
cmp dword [0x7015d0], edi
jbe 0x4c32eb
mov dword [0x7015d0], 0x2255100
mov eax, dword [ebp - 0x5a4]
jmp 0x4c3b1f
xor eax, eax
xor esi, esi
mov word [ebp - 0x5e8], si
lea edi, [ebp - 0x5e6]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x3ff
stosw word es:[edi], ax
lea eax, [ebp - 0x58b]
push esi
push eax
mov byte [ebp - 0x58c], 0
call fcn.005306b0
add esp, 0xc
push 0x7f
lea eax, [ebp - 0x8b]
push esi
push eax
mov byte [ebp - 0x8c], 0
call fcn.005306b0
add esp, 0xc
push 0xff
lea eax, [ebp - 0x18b]
push esi
push eax
mov byte [ebp - 0x18c], 0
call fcn.005306b0
add esp, 0xc
xor edi, edi
push esi
inc edi
push edi
mov dword [ebp - 0x5ac], esi
call fcn.004c6ff0
push esi
push esi
call fcn.0045b2ec
push edi
call fcn.004c70d8
add esp, 0x14
cmp dword [ebx + 0x2f94], esi
jne 0x4c3390
mov eax, dword [ebx + 0x14]
call fcn.004d66c5
mov dword [ebx + 0x14], esi
push esi
push esi
call fcn.004c5525
pop ecx
test eax, eax
mov eax, dword [ebx + 0x14]
pop ecx
je 0x4c33be
call fcn.00480e9b
test eax, eax
je 0x4c3b1d
push dword [ebx + 0x14]
call fcn.0048073c
pop ecx
mov dword [ebx + 0x14], esi
jmp 0x4c3b1d
call fcn.00480e9b
test eax, eax
jne 0x4c33dd
push esi
call fcn.00481c76
pop ecx
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x2f94], edi
mov dword [ebp - 0x5ac], edi
mov ecx, dword [ebx + 0x14]
cmp ecx, esi
jne 0x4c33f4
push str.:5:Need_to_handle_TAMS_II_SA7_login_failure_
call fcn.0042b70b
pop ecx
jmp 0x4c3b1d
call fcn.004fac47
push 0xbfc
lea eax, [ebp - 0x5e8]
push str..ServerPAULA.c
push eax
call fcn.004fb92f
push ecx
lea esi, [ebp - 0x5e8]
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.004f96f4
mov dword [ebp - 0x598], eax
mov byte [ebp - 0x595], 1
mov eax, dword [ebp - 0x598]
mov dword [ebp - 0x590], eax
shr eax, 0x10
add esp, 0x10
inc al
cmp al, 0xc
mov byte [ebp - 0x58e], al
jbe 0x4c345a
inc word [ebp - 0x590]
mov byte [ebp - 0x58e], 1
mov esi, 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 0x2c
mov edx, esi
call fcn.004cceb6
pop ecx
mov ecx, dword [ebx + 0x14]
inc eax
mov dword [ebp - 0x5c4], eax
call fcn.00481fd3
and dword [ebp - 0x5a8], 0
cmp dword [0x5f37dc], 0
mov dword [ebp - 0x594], eax
je 0x4c34d8
push dword [ebp - 0x594]
movzx ecx, byte [ebp - 0x58d]
mov eax, dword [0x5f37dc]
push ecx
movzx ecx, byte [ebp - 0x58e]
inc dword [0x5f37dc]
push ecx
movzx ecx, word [ebp - 0x590]
push ecx
movzx ecx, byte [ebp - 0x596]
push 1
push ecx
movzx ecx, word [ebp - 0x598]
push ecx
push esi
push eax
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.0042bd38
add esp, 0x28
push dword [ebp - 0x594]
movzx edi, byte [ebp - 0x58d]
movzx eax, byte [ebp - 0x58e]
movzx ecx, word [ebp - 0x590]
movzx edx, word [ebp - 0x598]
push edi
push eax
movzx eax, byte [ebp - 0x596]
push ecx
push 1
push eax
push edx
push esi
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 - 0x5c8], ecx
mov dword [ebp - 0x5b0], edx
call fcn.00480b29
add esp, 0x28
test eax, eax
je 0x4c392f
push dword [ebp - 0x5c4]
lea eax, [ebp - 0x58c]
push 9
push 0x3ff
push eax
push dword [ebx + 0x14]
call fcn.00480c24
add esp, 0x14
test eax, eax
mov esi, ebx
je 0x4c3589
lea eax, [ebp - 0x58c]
call fcn.004c2a90
test eax, eax
mov dword [ebp - 0x590], eax
jne 0x4c3596
lea eax, [ebp - 0x58c]
push eax
push str.:5:RefreshSales___EAP:_Sales_line___s__is_invalid.
lea eax, [ebp - 0x18c]
push 0x100
push eax
call fcn.004ce4e5
add esp, 0x10
jmp 0x4c3596
xor eax, eax
call fcn.004c2a90
mov dword [ebp - 0x590], eax
cmp dword [0x5f37dc], 0
je 0x4c35bf
mov eax, dword [0x5f37dc]
inc dword [0x5f37dc]
lea ecx, [ebp - 0x58c]
push ecx
push eax
push str.SA7_DBG__d:__s
call fcn.0042bd38
add esp, 0xc
cmp dword [ebp - 0x590], 0
jle 0x4c37e4
mov edi, str.EOD_STARTED_DATE_NEW_DAY_STARTED_DATE_SALES_YEAR_MONTH_ACCT_DAY_STARTED_BY_IP_ADDRESS_STARTED_BY_EMPLOYEE_ID
push 0x2c
mov edx, edi
call fcn.004cceb6
mov esi, eax
inc esi
cmp dword [0x5f37dc], 0
pop ecx
je 0x4c3607
push dword [ebp - 0x594]
mov eax, dword [0x5f37dc]
inc dword [0x5f37dc]
push edi
push eax
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_
call fcn.0042bd38
add esp, 0x10
push dword [ebp - 0x594]
push edi
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.00480b29
add esp, 0x10
test eax, eax
je 0x4c3907
xor eax, eax
xor ecx, ecx
mov word [ebp - 0x5c0], cx
lea edi, [ebp - 0x5be]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x5d8], cx
lea edi, [ebp - 0x5d6]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
push 9
stosw word es:[edi], ax
push 0x3ff
lea eax, [ebp - 0x58c]
push eax
push dword [ebx + 0x14]
mov dword [ebp - 0x594], ecx
call fcn.00480c24
add esp, 0x14
test eax, eax
je 0x4c3753
and dword [ebp - 0x598], 0
lea eax, [ebp - 0x58c]
push eax
mov ecx, 0x80
lea eax, [ebp - 0x8c]
call fcn.004ccc3f
cmp dword [0x5f37dc], 0
pop ecx
je 0x4c36c0
mov eax, dword [0x5f37dc]
inc dword [0x5f37dc]
lea ecx, [ebp - 0x58c]
push ecx
push eax
push str.SA7_DBG__d:__s
call fcn.0042bd38
add esp, 0xc
lea eax, [ebp - 0x598]
lea ecx, [ebp - 0x58c]
call fcn.004ce84d
push eax
lea eax, [ebp - 0x5fc]
push eax
call fcn.004fa269
mov esi, eax
lea edi, [ebp - 0x5c0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x598]
xor ecx, ecx
movsd dword es:[edi], dword [esi]
call fcn.004ce84d
push eax
lea eax, [ebp - 0x5fc]
push eax
call fcn.004fa269
mov esi, eax
lea edi, [ebp - 0x5d8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x598]
xor ecx, ecx
movsd dword es:[edi], dword [esi]
call fcn.004ce84d
lea eax, [ebp - 0x598]
xor ecx, ecx
call fcn.004ce84d
push eax
call fcn.0046881a
mov dword [ebp - 0x594], eax
add esp, 0x14
lea eax, [ebp - 0x598]
xor ecx, ecx
call fcn.004ce84d
lea eax, [ebp - 0x598]
xor ecx, ecx
call fcn.004ce84d
push 0
sub esp, 0x10
lea esi, [ebp - 0x5c0]
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.004f9794
add esp, 0x14
test eax, eax
jne 0x4c3829
push eax
sub esp, 0x10
lea esi, [ebp - 0x5d8]
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.004f9794
add esp, 0x14
test eax, eax
jne 0x4c3829
lea eax, [ebp - 0x8c]
push eax
sub esp, 0x10
lea esi, [ebp - 0x5d8]
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.004fa628
add esp, 0x10
push eax
sub esp, 0x10
lea esi, [ebp - 0x5c0]
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.004fa628
add esp, 0x10
push eax
push str.:7:RefreshSales___EAP:_Sales_CANNOT_be_posted:_stEODTime___s__stNewDayTime___s:__s
lea eax, [ebp - 0x18c]
push 0x100
push eax
call fcn.004ce4e5
add esp, 0x18
cmp dword [ebp - 0x5ac], 0
jne 0x4c3b02
push dword [ebx + 0x14]
call fcn.0048073c
and dword [ebx + 0x14], 0
pop ecx
lea eax, [ebp - 0x8c]
push eax
push str.:5:RefreshSales___EOP:_The_recycled_connection_failed._Trying_again_with_new_connection...___s
call fcn.0042b70b
push dword [ebp - 0x5a0]
push ebx
push dword [ebp - 0x59c]
call fcn.004c2c19
add esp, 0x14
jmp 0x4c3b1f
mov eax, dword [ebp - 0x590]
push 0xc75
mov dword [ebp - 0x5a8], eax
lea eax, [ebx + 0x4c]
push str..ServerPAULA.c
push eax
call fcn.004fb92f
movzx eax, word [ebp - 0x5bc]
lea edi, [ebx + 0x5c]
lea esi, [ebp - 0x5c0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
shl eax, 4
lea edi, [eax + ebx + 0x2f9c]
lea esi, [ebp - 0x5c0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ecx
lea esi, [ebp - 0x5d8]
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.004f98b7
add esp, 0x10
test eax, eax
jne 0x4c38fb
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x5c0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebp - 0x5d8]
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.004f9a51
add esp, 0x20
test eax, eax
jne 0x4c38fb
and dword [ebp - 0x5a4], eax
mov eax, dword [ebp - 0x594]
cmp eax, dword [ebp - 0x590]
jg 0x4c38dd
cmp eax, 1
jne 0x4c3974
cmp dword [ebp - 0x590], 0x14
jle 0x4c3974
push str.Yesterday_sales_catch_test.
lea eax, [ebp - 0x18c]
push 0x100
push eax
call fcn.004ce4e5
add esp, 0xc
jmp 0x4c37e4
mov dword [ebp - 0x5a4], 1
jmp 0x4c3974
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0x594]
lea eax, [ebp - 0x18c]
push str.:7:RefreshSales___EAP:_ExecuteODBCFormat_LOC_d__FAILED:_EOD_cannot_be_determined:__s
push 0x100
push eax
call fcn.004ce4e5
add esp, 0x14
jmp 0x4c3974
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0x594]
movzx eax, byte [ebp - 0x58e]
push edi
push eax
push dword [ebp - 0x5c8]
movzx eax, byte [ebp - 0x596]
push 1
push eax
push dword [ebp - 0x5b0]
lea eax, [ebp - 0x18c]
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
push 0x100
push eax
call fcn.004ce4e5
add esp, 0x2c
xor eax, eax
cmp dword [ebp - 0x5a8], eax
jle 0x4c37e4
xor esi, esi
inc esi
cmp dword [ebp - 0x5a4], eax
mov dword [ebx + 0x2f90], esi
je 0x4c3a31
cmp dword [ebx + 0x2f98], eax
jne 0x4c3af7
cmp dword [ebx + 0x44], eax
je 0x4c3a0c
cmp dword [ebx + 0x38], eax
je 0x4c3a0c
mov ecx, ebx
call fcn.004c6242
call fcn.004c6236
test eax, eax
je 0x4c39f8
mov eax, ebx
call fcn.004c2a6c
mov ecx, ebx
call fcn.004c6242
test eax, eax
jne 0x4c39e2
lea eax, [ebp - 0x8c]
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.0042b70b
pop ecx
pop ecx
push str.:0:FYI:_End_Of_Day_process_has_begun.__TAMS_II_
mov dword [ebx + 0x2f98], esi
call fcn.0042bd38
pop ecx
jmp 0x4c3af7
lea eax, [ebp - 0x8c]
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.0042b70b
pop ecx
jmp 0x4c39f2
lea eax, [ebp - 0x8c]
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.0042bd38
pop ecx
pop ecx
mov eax, ebx
call fcn.004c2a6c
mov dword [ebx + 0x2f98], esi
jmp 0x4c3af7
mov ecx, ebx
mov dword [ebx + 0x2f98], eax
call fcn.004c6242
test eax, eax
je 0x4c3af7
lea eax, [ebp - 0x8c]
push eax
push dword [ebx + 0x38]
call fcn.00468753
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.0042b70b
movzx eax, word [0x7014ec]
add esp, 0xc
push dword [0x7014f0]
push eax
movzx eax, word [0x6fe4dc]
push eax
push dword [0x6fb4cc]
movzx eax, word [0x6fb522]
push eax
movzx eax, word [0x6fe532]
push eax
push dword [0x6fb518]
push dword [0x6fe528]
push dword [0x6fb514]
push dword [0x6fe524]
push dword [0x6fb508]
call fcn.00468753
pop ecx
push eax
push dword [0x6fe518]
call fcn.00468753
pop ecx
push eax
push dword [0x6fe460]
mov esi, 0x6fb4bc
push dword [0x701470]
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.004fa0a6
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.0042b70b
xor esi, esi
add esp, 0x40
inc esi
and dword [0x5f37dc], 0
mov eax, esi
jmp 0x4c3b1f
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x18c]
push eax
push str.:5:FYI:_TAMSii_SA7_FAILED:__s:__s
call fcn.0042b70b
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret