Function at 0x490b47
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x35d74
call fcn.004122f0
mov eax, dword [0x5092e4]
xor eax, esp
mov dword [esp + 0x35d70], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x24]
push edi
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x28]
mov edi, 0x103
xor ebx, ebx
push edi
mov dword [esp + 0x58], eax
lea eax, [esp + 0x35265]
push ebx
push eax
mov dword [esp + 0x38], esi
mov byte [esp + 0x3526c], bl
call fcn.00401f80
add esp, 0xc
xor eax, eax
push 0x35146
mov word [esp + 0x7c], ax
lea eax, [esp + 0x7e]
push ebx
push eax
call fcn.00401f80
add esp, 0xc
push edi
lea eax, [esp + 0x3536d]
push ebx
push eax
mov dword [esp + 0x78], ebx
mov byte [esp + 0x35374], bl
call fcn.00401f80
add esp, 0xc
push 7
pop ecx
mov byte [esp + 0x351c0], bl
xor eax, eax
lea edi, [esp + 0x351c1]
rep stosd dword es:[edi], eax
push 0x50
stosw word es:[edi], ax
push ebx
push 0x5fdcd0
stosb byte es:[edi], al
mov dword [esp + 0x44], ebx
call fcn.00401f80
add esp, 0xc
push esi
call fcn.0041e67e
add esp, 4
test eax, eax
jne 0x490d6a
cmp dword [esp + 0x34], ebx
je 0x490d6a
push 4
push ebx
call fcn.004acd0b
push 1
push 0xc
call fcn.004af5f1
push 0x35148
lea eax, [esp + 0x8c]
push ebx
push eax
call fcn.00401f80
add esp, 0x1c
call fcn.004ac065
test eax, eax
jne 0x490d09
call fcn.004ab304
test eax, eax
je 0x490d09
push ebx
push ebx
call fcn.004623aa
push eax
mov edi, 0x104
mov ecx, edi
lea eax, [esp + 0x3526c]
call fcn.00444961
add esp, 0xc
push str.PAULA_Report____________PUI_____.log
mov eax, edi
lea esi, [esp + 0x35264]
call fcn.00445aee
pop ecx
mov eax, esi
push ebx
push eax
call fcn.004a2105
pop ecx
pop ecx
call fcn.0040237f
cdq
mov ecx, 0x8ae
mov esi, ecx
idiv esi
movzx eax, byte [esp + 0x2f]
add edx, ecx
push edx
push eax
movzx eax, byte [esp + 0x36]
push eax
movzx eax, word [esp + 0x38]
push eax
push ebx
push ebx
call fcn.004623aa
pop ecx
pop ecx
push eax
push str._sPAULA_Report__04d__02d__02d__PUI_d_.log
lea eax, [esp + 0x35278]
push edi
push eax
call fcn.004451a8
add esp, 0x20
jmp 0x490d15
lea eax, [esp + 0x35260]
call fcn.004449db
push str._n_nLoading_employee_descriptions...
call fcn.004adb65
pop ecx
push ebx
push 0xffffffffffffffff
call fcn.004af5f1
mov eax, dword [esp + 0x3c]
push ebx
push 0xffffffffffffffff
push 0xffededee
push dword [eax + 0xd90]
push str.PaulaEmpConfig.cfg
push eax
call fcn.0048f164
add esp, 0x20
test eax, eax
jne 0x490d82
cmp dword [esp + 0x58], ebx
jne 0x490d6a
push ebx
push str._nAn_error_occurred_and_the_employee_till_sheets_ncould_not_be_loaded__n_nPress_any_key_to_exit...
push str.__COULD_NOT_LOAD_TILL_SHEETS___
push ebx
push ebx
push ebx
push 1
call fcn.0049aacd
add esp, 0x1c
or eax, 0xffffffff
mov ecx, dword [esp + 0x35d7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401317
mov esp, ebp
pop ebp
ret
push 4
push ebx
call fcn.004acd0b
push 1
push 0xc
call fcn.004af5f1
mov esi, str._n_nLoading_employee_descriptions...DONE.
push esi
call fcn.004adb65
mov al, byte [esp + 0x43]
mov ecx, dword [esp + 0x48]
mov byte [esp + 0x8f], al
mov al, byte [esp + 0x42]
add esp, 0x14
push dword [esp + 0x2c]
mov byte [esp + 0x7e], al
mov ax, word [esp + 0x30]
mov edi, 0xde
mov word [esp + 0x7c], ax
mov dword [esp + 0x35198], edi
call fcn.0047f85c
pop ecx
test eax, eax
jne 0x490de7
mov dword [esp + 0x3519c], 1
push str._nParsing_invoices__please_wait...
call fcn.004adb65
pop ecx
push 0xffffffffffffffff
push dword [esp + 0x38]
lea eax, [esp + 0x80]
call fcn.0046ce77
pop ecx
pop ecx
test eax, eax
je 0x490eaf
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
call fcn.0047f85c
pop ecx
test eax, eax
jne 0x490e2b
mov dword [esp + 0x3519c], 1
push str._n_nSA12_PARSING_FAILED___Trying_one_more_time...
call fcn.004adb65
pop ecx
push 0xffffffffffffffff
push dword [esp + 0x38]
lea eax, [esp + 0x80]
mov dword [esp + 0x3519c], edi
call fcn.0046ce77
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x490eaf
push edi
push str._n_nTAMS_invoice_parsing_has_failed___err_d
call fcn.004adb65
pop ecx
pop ecx
call fcn.004ac065
test eax, eax
jne 0x490e94
call fcn.004ab304
test eax, eax
je 0x490e94
cmp dword [esp + 0x58], ebx
jne 0x490e94
push edi
push str._nI_was_not_able_to_find_any_invoices_for_the_date_you_entered._nERROR_CODE:__ld_n_nPress_any_key_to_continue...
push str.__INVOICE_PARSING_FAILED___
push ebx
push ebx
push ebx
push 1
call fcn.0049aacd
add esp, 0x1c
push ebx
push 0xffffffffffffffff
call fcn.004af5f1
pop ecx
pop ecx
mov eax, dword [esp + 0x351ac]
call fcn.004634ef
jmp 0x490d6a
push 4
push ebx
call fcn.004acd0b
push 1
push 0xc
call fcn.004af5f1
push esi
call fcn.004adb65
add esp, 0x14
push str._nParsing_invoices__please_wait...
call fcn.004adb65
mov dword [esp], 0x3a98
call fcn.00467b72
pop ecx
test eax, eax
je 0x490eeb
push 0x4dc63c
jmp 0x490ef0
push str.FAILED_
call fcn.004adb65
pop ecx
push str._nGenerating_report...
call fcn.004adb65
mov esi, dword [esp + 0x58]
pop ecx
cmp esi, ebx
je 0x490f14
lea eax, [esp + 0x78]
push eax
call fcn.00467bbd
pop ecx
mov edi, str.MainPAULA.c
push edi
push 0x2328
xor ecx, ecx
call fcn.004b4ed2
mov esi, eax
push str.__Missing_Invoice_Report__
push esi
mov dword [esp + 0x78], esi
call fcn.004b580f
push 0x4dc678
push esi
call fcn.004b580f
movzx eax, byte [esp + 0x93]
movzx ecx, word [esp + 0x90]
push eax
movzx eax, byte [esp + 0x96]
call fcn.0041e4e7
add esp, 0x1c
call fcn.0044422b
push eax
push str._n____s_will_NOT_balance__
push esi
call fcn.004b580f
add esp, 0xc
push 0x4dc6b8
push esi
call fcn.004b580f
pop ecx
xor esi, esi
xor edx, edx
pop ecx
mov dword [esp + 0x64], ebx
cmp dword [esp + 0x7c], ebx
jle 0x490fcd
lea ecx, [esp + 0xb5]
cmp word [ecx + 7], bx
jg 0x490fc0
movzx eax, byte [ecx]
push eax
call fcn.004626e6
add esp, 4
test eax, eax
je 0x490fc0
cmp dword [ecx - 0x2d], ebx
je 0x490fc0
xor eax, eax
inc esi
inc eax
cmp esi, eax
jg 0x49105e
inc edx
add ecx, 0x90
cmp edx, dword [esp + 0x7c]
jl 0x490f99
push str._n_nAn_unregistered_invoice_was_found.
call fcn.004adb65
pop ecx
push 0x4d5f8c
call fcn.004adb65
pop ecx
call fcn.0045052b
mov dword [esp + 0x50], eax
call fcn.0045052b
mov dword [esp + 0x1c], eax
call fcn.0045052b
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x7c], ebx
jle 0x491104
lea esi, [esp + 0xb8]
mov ecx, dword [esi - 0x30]
cmp ecx, ebx
je 0x4910ec
movzx eax, byte [esi - 3]
push eax
call fcn.004626e6
add esp, 4
test eax, eax
je 0x4910ec
movzx eax, word [esi + 4]
push 1
push ecx
cmp ax, bx
jle 0x49106c
mov edi, dword [esp + 0x58]
cwde
call fcn.0045085b
push dword [esi - 0x34]
push str.Inv_06d_
call fcn.004adb65
add esp, 0x10
jmp 0x4910e7
mov dword [esp + 0x64], eax
push str._n_nMultiple_unregistered_invoices_found.
jmp 0x490fd2
movsx eax, word [esi]
mov edi, dword [esp + 0x24]
call fcn.0045085b
cmp byte [esi - 2], bl
mov edi, dword [esp + 0x30]
movsx ebx, word [esi]
pop ecx
pop ecx
je 0x4910ad
call fcn.004506bd
test eax, eax
jne 0x49109d
push 1
movsx eax, word [esi]
push 1
call fcn.0045085b
jmp 0x4910d4
movsx ebx, word [esi]
call fcn.00450608
test eax, eax
je 0x4910d6
push 0
jmp 0x491091
call fcn.004506bd
test eax, eax
jne 0x4910c9
push 1
push eax
movsx eax, word [esi]
push eax
mov ebx, edi
call fcn.004504d1
add esp, 0xc
jmp 0x4910d6
movsx ebx, word [esi]
push 0
push edi
call fcn.0045065f
pop ecx
pop ecx
push dword [esi - 0x34]
push str.Bad_06d_
call fcn.004adb65
pop ecx
pop ecx
xor ebx, ebx
mov edi, str.MainPAULA.c
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
add esi, 0x90
cmp eax, dword [esp + 0x7c]
jl 0x491013
push dword [esp + 0x7c]
push str._n_nSearched__d_invoices.
call fcn.004adb65
push edi
push 0x2370
xor ecx, ecx
call fcn.004b4ed2
mov esi, eax
add esp, 0x10
mov dword [esp + 0x10], esi
cmp esi, ebx
jne 0x491185
push ebx
push 0xffffffffffffffff
call fcn.004af5f1
pop ecx
pop ecx
cmp dword [esp + 0x54], ebx
jne 0x49114f
mov eax, dword [esp + 0x351ac]
call fcn.004634ef
mov dword [esp + 0x351ac], ebx
cmp dword [esp + 0x50], ebx
je 0x49115e
mov esi, dword [esp + 0x50]
call fcn.004504ee
cmp dword [esp + 0x1c], ebx
je 0x49116d
mov esi, dword [esp + 0x1c]
call fcn.004504ee
cmp dword [esp + 0x28], ebx
je 0x490d6a
mov esi, dword [esp + 0x28]
call fcn.004504ee
jmp 0x490d6a
push str.___PLEASE_GIVE_THIS_REPORT_TO_THE_MANAGER.___n
push esi
call fcn.004b580f
pop ecx
pop ecx
cmp dword [esp + 0x64], ebx
jne 0x49119f
push str.This_INV_has_NOT_been_registered_with_PAULA:
jmp 0x4911a4
push str.These_INV_have_NOT_been_registered_with_PAULA:
push esi
call fcn.004b580f
pop ecx
pop ecx
push 0x2383
mov ecx, edi
call fcn.00442a97
mov dword [esp + 0x40], eax
movzx eax, byte [esp + 0x7f]
pop ecx
push eax
movzx eax, byte [esp + 0x7e]
push eax
movzx eax, word [esp + 0x80]
push eax
push str._04d_02d_02d
lea eax, [esp + 0x351d0]
push 0x20
push eax
call fcn.004451a8
push 0x2385
push edi
push 0x10
call fcn.0047a356
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0x351e4]
add esp, 0x24
push eax
lea edx, [esp + 0x3536c]
call fcn.004438dc
pop ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x7c], ebx
jle 0x4913b1
lea esi, [esp + 0xb8]
mov dword [esp + 0x20], esi
mov ecx, dword [esi - 0x30]
cmp ecx, ebx
je 0x491395
movzx eax, byte [esi - 3]
push eax
call fcn.004626e6
add esp, 4
test eax, eax
je 0x491395
cmp word [esi + 4], bx
jg 0x491787
movsx ebx, word [esi]
mov edi, dword [esp + 0x28]
inc dword [esp + 0x40]
add dword [esp + 0x48], ecx
call fcn.00450608
cmp eax, 7
jb 0x4916f3
movsx ebx, word [esi]
mov edi, dword [esp + 0x50]
call fcn.00450608
test eax, eax
jne 0x4916ca
movsx ebx, word [esi]
mov edi, dword [esp + 0x1c]
call fcn.00450608
test eax, eax
je 0x491393
movsx ebx, word [esi]
inc dword [esp + 0x44]
call fcn.00450608
push eax
call fcn.0047f170
movsx ebx, word [esi]
mov edi, dword [esp + 0x2c]
pop ecx
push eax
call fcn.00450608
push eax
movsx eax, word [esi]
mov edi, dword [esp + 0x20]
push eax
movzx eax, word [esi + 0x1e]
push eax
movzx eax, byte [esi + 0x21]
push eax
movzx eax, byte [esi + 0x20]
push eax
push dword [esp + 0x5c]
push str._3d__________02d__02d__04d__Employee__d_ran__d_UNREGISTERED_ROAs_totaling__s._n
push edi
call fcn.004b580f
add esp, 0x24
push str._____Note_that_ROAs_may_be_entered_in_PAULA_without_a_till_by
push edi
call fcn.004b580f
mov eax, dword [esp + 0x3c]
cmp dword [eax + 0x2198], 0
pop ecx
pop ecx
jne 0x49132e
push str.preceding_your_employee_number_n
push edi
call fcn.004b580f
movsx eax, word [esi]
push eax
push str._____with_a_t___t_d__in_this_case__and_then_entering_0_when_prompted_for_a_till_number._n
push edi
call fcn.004b580f
add esp, 0x14
jmp 0x49133b
push str.entering_0_for_your_till_number._n
push edi
call fcn.004b580f
pop ecx
pop ecx
movsx eax, word [esi]
push eax
push str._____You_may_alternatively_assign_a__0_till_to_emp__d_using__Manager_Menu____Till_Base_____F3___n
push edi
call fcn.004b580f
movsx ebx, word [esi]
mov edi, dword [esp + 0x28]
add esp, 0xc
call fcn.00450608
push eax
call fcn.0047f170
movsx ebx, word [esi]
mov edi, dword [esp + 0x2c]
pop ecx
push eax
call fcn.00450608
push eax
movsx eax, word [esi]
push eax
push str._nEmp__d_ran__d_UNREGISTERED_ROAs:__s
push dword [esp + 0x20]
call fcn.004b580f
movsx ebx, word [esi]
add esp, 0x14
push 0
push dword [esp + 0x20]
call fcn.0045065f
pop ecx
pop ecx
xor ebx, ebx
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
add esi, 0x90
mov dword [esp + 0x20], esi
cmp eax, dword [esp + 0x7c]
jl 0x49123c
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x4913be
call fcn.004504ee
mov esi, dword [esp + 0x28]
cmp esi, ebx
je 0x4913cb
call fcn.004504ee
cmp dword [esp + 0x38], ebx
jne 0x4913d7
cmp dword [esp + 0x30], ebx
jle 0x491439
cmp dword [esp + 0x30], ebx
jge 0x49140c
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x351c0]
push eax
lea edx, [esp + 0x3536c]
call fcn.004438dc
pop ecx
test eax, eax
jns 0x49140c
push 0x1c36
lea ecx, [esp + 0x3536c]
call fcn.004a12d9
pop ecx
mov esi, dword [esp + 0x3c]
push dword [esp + 0x2c]
mov ecx, esi
call fcn.0048246d
pop ecx
push ebx
push 1
lea eax, [esp + 0x35370]
push eax
push esi
call fcn.0044392b
add esp, 0x10
test eax, eax
jg 0x491439
call fcn.00442e7c
mov eax, dword [esp + 0x3c]
call fcn.00442c38
push 0x10
call fcn.00476372
cmp dword [esp + 0x48], 0x4b
pop ecx
jle 0x4914a2
call fcn.004ac065
test eax, eax
jne 0x491463
call fcn.004ab304
test eax, eax
jne 0x4914a2
mov esi, dword [esp + 0x10]
call fcn.004b5119
push str.___PLEASE_GIVE_THIS_REPORT_TO_THE_MANAGER.__
push esi
call fcn.004b580f
push dword [esp + 0x48]
push str._nThere_are__d_unregistered_invoices.
push esi
call fcn.004b580f
add esp, 0x14
push str._nThis_is_more_than_can_be_printed_here.
push esi
call fcn.004b580f
push str._nFor_a_complete_list__run_the_report_manually.
push esi
call fcn.004b580f
add esp, 0x10
cmp dword [esp + 0x44], 2
jl 0x4914de
push dword [esp + 0x48]
call fcn.0047f170
pop ecx
push eax
mov esi, str._nUnregistered_Invoice_Total___s
push esi
push dword [esp + 0x18]
call fcn.004b580f
add esp, 0xc
push dword [esp + 0x48]
call fcn.0047f170
pop ecx
push eax
push esi
push dword [esp + 0x20]
call fcn.004b580f
add esp, 0xc
push dword [esp + 0x58]
mov ecx, dword [esp + 0x38]
push ebx
push dword [esp + 0x34]
call fcn.0048ffc3
add esp, 0xc
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x4915d7
mov edi, dword [eax]
mov dword [esp + 0x3c], edi
call fcn.0041eccd
mov esi, 0x4d4344
push esi
push dword [esp + 0x14]
mov dword [esp + 0x38], eax
call fcn.004b580f
push esi
push dword [esp + 0x24]
call fcn.004b580f
add esp, 0x10
mov esi, str.EXCLUDED__F10__invoices_that_were_never_INCLUDED:
cmp edi, 2
jge 0x491539
mov esi, str.EXCLUDED__F10__invoice_that_was_never_INCLUDED:
push esi
push dword [esp + 0x14]
call fcn.004b580f
push esi
push dword [esp + 0x24]
call fcn.004b580f
add esp, 0x10
mov esi, 0x4ce78c
push esi
push dword [esp + 0x14]
call fcn.004b580f
push esi
push dword [esp + 0x24]
call fcn.004b580f
add esp, 0x10
xor esi, esi
cmp edi, ebx
jle 0x4915cd
mov eax, dword [esp + 0x20]
add eax, 0x56
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
push dword [eax]
push dword [esp + 0x34]
call fcn.0041f4fc
pop ecx
pop ecx
cmp eax, 0xc
jl 0x4915a3
push str.__Final_Warning_
push dword [esp + 0x1c]
call fcn.004b580f
pop ecx
pop ecx
push dword [esp + 0x18]
lea edi, [esi + 1]
push dword [esp + 0x14]
mov ecx, esi
push edi
push dword [esp + 0x2c]
call fcn.00481ed8
add dword [esp + 0x48], 0x90
mov esi, edi
add esp, 0x10
cmp esi, dword [esp + 0x3c]
jl 0x49157d
push dword [esp + 0x20]
call fcn.00401a00
pop ecx
mov edi, str.MainPAULA.c
push edi
push 0x2418
xor ecx, ecx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x30], ebx
call fcn.004b4ed2
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x84]
pop ecx
pop ecx
mov dword [esp + 0x14], ebx
cmp eax, ebx
jle 0x491796
lea esi, [esp + 0x88]
mov cl, byte [esi + 0x2f]
cdq
sub eax, edx
sar eax, 1
imul eax, eax, 0x90
cmp cl, byte [esp + eax + 0xb7]
jbe 0x491667
movzx eax, byte [esi + 0x2d]
push eax
call fcn.004626e6
add esp, 4
test eax, eax
je 0x491667
mov eax, dword [esi]
cmp eax, ebx
je 0x491667
push dword [esp + 0x4c]
inc dword [esp + 0x2c]
push dword [esp + 0x34]
add dword [esp + 0x68], eax
push dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x8c]
push eax
call fcn.00481ed8
add esp, 0x10
inc dword [esp + 0x14]
mov eax, dword [esp + 0x7c]
add esi, 0x90
cmp dword [esp + 0x14], eax
jl 0x491611
cmp dword [esp + 0x28], 2
jl 0x491790
cmp dword [esp + 0x60], ebx
je 0x491796
push dword [esp + 0x60]
call fcn.0047f170
pop ecx
push eax
mov esi, str._nLate_Invoice_Total___s
push esi
push dword [esp + 0x38]
call fcn.004b580f
add esp, 0xc
push dword [esp + 0x60]
call fcn.0047f170
pop ecx
push eax
push esi
push dword [esp + 0x54]
call fcn.004b580f
add esp, 0xc
jmp 0x4917a3
push dword [esp + 0x18]
inc dword [esp + 0x48]
push dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x4c]
lea eax, [esp + 0x8c]
push eax
call fcn.00481ed8
add esp, 0x10
jmp 0x491393
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x3557d]
push ebx
push eax
mov byte [esp + 0x35584], bl
call fcn.00401f80
mov ecx, dword [esp + 0x20]
add esp, 0xc
push dword [esp + 0x18]
inc dword [esp + 0x48]
push dword [esp + 0x14]
lea eax, [esp + 0x88]
push dword [esp + 0x4c]
mov dword [esp + 0x44], ebx
push eax
call fcn.00481ed8
lea eax, [esp + 0x48]
add esp, 0x10
push eax
call fcn.00474472
push eax
push 9
lea eax, [esp + 0x35584]
push 0x400
push eax
add esi, 0xffffffc8
call fcn.00463efd
mov esi, dword [esp + 0x50]
add esp, 0x14
push dword [esp + 0x38]
lea eax, [esp + 0x3557c]
push eax
call fcn.00443259
mov esi, dword [esp + 0x28]
pop ecx
pop ecx
mov dword [esp + 0x38], 1
jmp 0x491393
inc dword [esp + 0x64]
jmp 0x491395
cmp dword [esp + 0x60], ebx
jne 0x4917a3
mov esi, dword [esp + 0x30]
call fcn.004b5119
mov dword [esp + 0x28], ebx
push edi
push 0x2436
xor ecx, ecx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x24], ebx
call fcn.004b4ed2
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x84]
pop ecx
pop ecx
mov dword [esp + 0x14], ebx
cmp eax, ebx
jle 0x49188c
lea esi, [esp + 0x88]
mov cl, byte [esi + 0x2f]
cdq
sub eax, edx
sar eax, 1
imul eax, eax, 0x90
cmp cl, byte [esp + eax + 0xb7]
jae 0x49182e
movzx eax, byte [esi + 0x2d]
push eax
call fcn.004626e6
add esp, 4
test eax, eax
je 0x49182e
mov eax, dword [esi]
cmp eax, ebx
je 0x49182e
push dword [esp + 0x70]
inc dword [esp + 0x20]
push dword [esp + 0x24]
add dword [esp + 0x64], eax
push dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x8c]
push eax
call fcn.00481ed8
add esp, 0x10
inc dword [esp + 0x14]
mov eax, dword [esp + 0x7c]
add esi, 0x90
cmp dword [esp + 0x14], eax
jl 0x4917d8
cmp dword [esp + 0x1c], 2
jl 0x491886
cmp dword [esp + 0x5c], ebx
je 0x49188c
push dword [esp + 0x5c]
call fcn.0047f170
pop ecx
push eax
mov esi, str._nPrev_Day_Invoice_Total___s
push esi
push dword [esp + 0x28]
call fcn.004b580f
add esp, 0xc
push dword [esp + 0x5c]
call fcn.0047f170
pop ecx
push eax
push esi
push dword [esp + 0x78]
call fcn.004b580f
add esp, 0xc
jmp 0x491899
cmp dword [esp + 0x5c], ebx
jne 0x491899
mov esi, dword [esp + 0x20]
call fcn.004b5119
mov dword [esp + 0x1c], ebx
push edi
push 0x2455
xor ecx, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.004b4ed2
mov dword [esp + 0x40], eax
lea eax, [esp + 0x74]
push eax
mov eax, dword [esp + 0x351b8]
call fcn.00463633
add esp, 0xc
mov dword [esp + 0x70], eax
cmp eax, ebx
je 0x491de9
push dword [esp + 0x78]
call fcn.0041e72d
pop ecx
test eax, eax
je 0x491977
mov edi, dword [esp + 0x6c]
dec edi
cmp edi, ebx
jl 0x491977
mov ecx, dword [esp + 0x70]
mov eax, edi
imul eax, eax, 0x90
lea esi, [eax + ecx + 0x37]
push dword [esi + 0x1f]
push dword [esp + 0x7c]
call fcn.0041f4fc
pop ecx
pop ecx
cmp eax, ebx
jle 0x49196c
cmp eax, 2
jg 0x491977
mov eax, dword [esp + 0x7c]
mov cl, byte [esi]
cdq
sub eax, edx
sar eax, 1
imul eax, eax, 0x90
cmp cl, byte [esp + eax + 0xb7]
jne 0x49196c
movzx eax, byte [esi - 2]
push eax
call fcn.004626e6
add esp, 4
test eax, eax
je 0x49196c
mov eax, dword [esi - 0x2f]
cmp eax, ebx
je 0x49196c
push dword [esp + 0x24]
inc dword [esp + 0x1c]
push dword [esp + 0x3c]
add dword [esp + 0x1c], eax
push dword [esp + 0x20]
mov ecx, edi
push dword [esp + 0x7c]
call fcn.00481ed8
add esp, 0x10
dec edi
sub esi, 0x90
cmp edi, ebx
jge 0x491901
mov eax, dword [esp + 0x351ac]
call fcn.00463601
cmp dword [esp + 0x18], 2
jl 0x491ddf
cmp dword [esp + 0x14], ebx
je 0x491de9
push dword [esp + 0x14]
call fcn.0047f170
pop ecx
push eax
mov esi, str._nEarly_Invoice_Total___s
push esi
push dword [esp + 0x40]
call fcn.004b580f
add esp, 0xc
push dword [esp + 0x14]
call fcn.0047f170
pop ecx
push eax
push esi
push dword [esp + 0x2c]
call fcn.004b580f
add esp, 0xc
mov edi, dword [esp + 0x34]
movzx eax, word [esp + 0x78]
push eax
movzx eax, byte [esp + 0x7f]
push eax
movzx eax, byte [esp + 0x82]
push eax
push 0x4dc25c
mov esi, 0x5fdcb4
push esi
call fcn.00401954
mov dword [0x5fdcf0], esi
mov dword [0x5fdcec], 0x50a93c
mov eax, dword [edi + 0x206c]
mov dword [0x5fdcdc], eax
mov eax, dword [edi + 0x2150]
mov dword [0x5fdcd0], eax
mov eax, dword [edi + 0x215c]
mov dword [0x5fdcd4], eax
mov eax, dword [edi + 0x2160]
mov dword [0x5fdcd8], eax
lea eax, [edi + 0x1094]
mov dword [0x5fdce0], eax
lea eax, [edi + 0x149c]
mov dword [0x5fdce4], eax
mov eax, dword [esp + 0x7c]
mov dword [0x5fdce8], eax
mov eax, dword [esp + 0x24]
add esp, 0x14
push dword [esp + 0x74]
mov dword [0x5fdcf4], eax
lea eax, [esp + 0x7c]
push eax
mov ecx, edi
mov dword [0x5fdd04], 1
call fcn.0048880c
pop ecx
pop ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x4c], ebx
cmp eax, ebx
je 0x491af2
mov esi, eax
call fcn.004b5619
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x491ae9
cmp dword [esp + 0x40], ebx
jle 0x491aa0
cmp dword [esp + 0x48], ebx
jne 0x491ac2
mov esi, dword [esp + 0x10]
call fcn.004b5119
push str.___PLEASE_GIVE_THIS_REPORT_TO_THE_MANAGER.___n
push esi
call fcn.004b580f
push str.The_issue_below_needs_attention:
push esi
call fcn.004b580f
add esp, 0x10
push dword [esp + 0x24]
push 0x4cf93c
push dword [esp + 0x18]
call fcn.004b580f
add esp, 0xc
push dword [esp + 0x24]
call fcn.00401a00
pop ecx
mov dword [esp + 0x4c], 1
mov eax, dword [esp + 0x6c]
call fcn.004b504f
mov dword [esp + 0x3c], ebx
cmp dword [esp + 0x28], ebx
jle 0x491b7b
cmp dword [esp + 0x60], ebx
je 0x491b7b
mov esi, dword [esp + 0x30]
call fcn.004b5619
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x491b7b
cmp dword [esp + 0x40], ebx
jle 0x491b1f
cmp dword [esp + 0x48], ebx
jne 0x491b3b
cmp dword [esp + 0x4c], ebx
jne 0x491b3b
mov esi, dword [esp + 0x10]
call fcn.004b5119
push str.___PLEASE_GIVE_THIS_REPORT_TO_THE_MANAGER.__
push esi
call fcn.004b580f
pop ecx
pop ecx
xor esi, esi
inc esi
cmp dword [esp + 0x28], esi
jne 0x491dff
push str._nThis_invoice_was_billed_after_TAMS_shutdown:
push dword [esp + 0x14]
call fcn.004b580f
pop ecx
pop ecx
push dword [esp + 0x24]
push 0x4cf93c
push dword [esp + 0x18]
call fcn.004b580f
add esp, 0xc
push dword [esp + 0x24]
call fcn.00401a00
pop ecx
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x491b88
call fcn.004b504f
mov dword [esp + 0x30], ebx
cmp dword [esp + 0x1c], ebx
jle 0x491c1b
cmp dword [esp + 0x5c], ebx
je 0x491c1b
mov esi, dword [esp + 0x20]
call fcn.004b5619
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x491c1b
cmp dword [esp + 0x40], ebx
jle 0x491bb9
cmp dword [esp + 0x48], ebx
jne 0x491bdb
cmp dword [esp + 0x4c], ebx
jne 0x491bdb
cmp dword [esp + 0x3c], ebx
jne 0x491bdb
mov esi, dword [esp + 0x10]
call fcn.004b5119
push str.___PLEASE_GIVE_THIS_REPORT_TO_THE_MANAGER.__
push esi
call fcn.004b580f
pop ecx
pop ecx
xor esi, esi
inc esi
cmp dword [esp + 0x1c], esi
jne 0x491e4c
push str._nThis_invoice_belongs_to_previous_accnting_day:
push dword [esp + 0x14]
call fcn.004b580f
pop ecx
pop ecx
push dword [esp + 0x24]
push 0x4cf93c
push dword [esp + 0x18]
call fcn.004b580f
add esp, 0xc
push dword [esp + 0x24]
call fcn.00401a00
pop ecx
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x491c28
call fcn.004b504f
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x18], ebx
jle 0x491cc5
cmp dword [esp + 0x14], ebx
je 0x491cc5
mov esi, dword [esp + 0x38]
call fcn.004b5619
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x491cc5
cmp dword [esp + 0x40], ebx
jle 0x491c5d
cmp dword [esp + 0x48], ebx
jne 0x491c85
cmp dword [esp + 0x4c], ebx
jne 0x491c85
cmp dword [esp + 0x3c], ebx
jne 0x491c85
cmp dword [esp + 0x30], ebx
jne 0x491c85
mov esi, dword [esp + 0x10]
call fcn.004b5119
push str.___PLEASE_GIVE_THIS_REPORT_TO_THE_MANAGER.__
push esi
call fcn.004b580f
pop ecx
pop ecx
xor esi, esi
inc esi
cmp dword [esp + 0x18], esi
jne 0x491e99
push str._nThis_invoice_was_billed_before_new_day_started:
push dword [esp + 0x14]
call fcn.004b580f
pop ecx
pop ecx
push dword [esp + 0x24]
push 0x4cf93c
push dword [esp + 0x18]
call fcn.004b580f
add esp, 0xc
push dword [esp + 0x24]
call fcn.00401a00
pop ecx
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x491cd2
call fcn.004b504f
cmp dword [esp + 0x40], ebx
jle 0x491ce2
cmp dword [esp + 0x48], ebx
jne 0x491fcc
cmp dword [esp + 0x4c], ebx
jne 0x491fcc
cmp dword [esp + 0x3c], ebx
jne 0x491fcc
cmp dword [esp + 0x30], ebx
jne 0x491fcc
cmp dword [esp + 0x20], ebx
jne 0x491fcc
mov eax, dword [esp + 0x68]
call fcn.004b504f
mov eax, dword [esp + 0x10]
call fcn.004b504f
push str._n_nThe_day_is_in_balance_
call fcn.004adb65
pop ecx
call fcn.004ac065
test eax, eax
jne 0x491f9c
call fcn.004ab304
test eax, eax
je 0x491f9c
cmp dword [esp + 0x58], ebx
jne 0x491f9c
push 0x7ff
lea eax, [esp + 0x3557d]
push ebx
push eax
mov byte [esp + 0x35584], bl
call fcn.00401f80
mov edi, dword [esp + 0x5c]
add esp, 0xc
call fcn.0045039f
mov dword [esp + 0x24], eax
mov eax, edi
call fcn.004508ee
mov esi, eax
cmp esi, ebx
jle 0x491f0f
mov edi, 0x800
mov eax, dword [esp + 0x34]
mov ecx, esi
call fcn.0047f766
mov ecx, dword [esp + 0x34]
call fcn.0047f73a
mov edx, eax
call fcn.00445b2f
push esi
test eax, eax
jne 0x491ee6
mov eax, dword [esp + 0x38]
mov ecx, esi
call fcn.0047f766
mov ecx, dword [esp + 0x38]
call fcn.0047f73a
push eax
push str._n_r______s__d
lea eax, [esp + 0x35584]
push edi
push eax
call fcn.004451ef
add esp, 0x14
jmp 0x491efc
cmp dword [esp + 0x14], ebx
jne 0x4919cd
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
call fcn.004b5119
mov dword [esp + 0x18], ebx
jmp 0x4919d1
push str._nThese_invoices_were_billed_after_TAMS_shutdown:
push dword [esp + 0x14]
call fcn.004b580f
cmp dword [esp + 0x30], 0x16
pop ecx
pop ecx
jle 0x491b58
push str._nThere_are_too_many_invoices_to_list.
push dword [esp + 0x14]
call fcn.004b580f
push str._nTAMS_End_Of_Day_was_run_mid_day.
push dword [esp + 0x1c]
call fcn.004b580f
push str._nYour_day_will_not_balance.
push dword [esp + 0x24]
call fcn.004b580f
add esp, 0x18
jmp 0x491b6d
push str._nThese_invoices_belong_to_previous_accnting_day:
push dword [esp + 0x14]
call fcn.004b580f
cmp dword [esp + 0x24], 0x16
pop ecx
pop ecx
jle 0x491bf8
push str._nThere_are_too_many_invoices_to_list.
push dword [esp + 0x14]
call fcn.004b580f
push str._nTAMS_End_Of_Day_was_run_mid_day.
push dword [esp + 0x1c]
call fcn.004b580f
push str._nYour_day_will_not_balance.
push dword [esp + 0x24]
call fcn.004b580f
add esp, 0x18
jmp 0x491c0d
push str._nThese_invoices_were_billed_before_start_of_day:
push dword [esp + 0x14]
call fcn.004b580f
cmp dword [esp + 0x20], 0x16
pop ecx
pop ecx
jle 0x491ca2
push str._nThere_are_too_many_invoices_to_list.
push dword [esp + 0x14]
call fcn.004b580f
push str._nTAMS_End_Of_Day_was_not_run_yesterday.
push dword [esp + 0x1c]
call fcn.004b580f
push str._nYour_day_will_not_balance.
push dword [esp + 0x24]
call fcn.004b580f
add esp, 0x18
jmp 0x491cb7
push str._n_r_____UNKNOWN_EMP__d
lea eax, [esp + 0x35580]
push edi
push eax
call fcn.004451ef
add esp, 0x10
mov eax, dword [esp + 0x50]
call fcn.004508ee
mov esi, eax
cmp esi, ebx
jg 0x491d8b
call fcn.004ae37f
cmp dword [esp + 0x24], 1
jle 0x491f43
lea eax, [esp + 0x35578]
push eax
push dword [esp + 0x28]
push str._rAll_invoices_have_been_registered_and_your_day_is_in_balance._n_rYou_should_have__d_till_slips__one_for_each_employee_below:_n_s_n_nPress__SPACE_BAR__to_continue...
push str.__THE_DAY_IS_IN_BALANCE___
push ebx
push str.__27_
push ebx
push ebx
call fcn.0049aacd
add esp, 0x20
jmp 0x491f91
lea edx, [esp + 0x35578]
call fcn.00445b2f
test eax, eax
jne 0x491f77
lea eax, [esp + 0x35578]
push eax
push str._rAll_invoices_have_been_registered_and_your_day_is_in_balance._n_rYou_should_have_only_1_till_slip_for:_n_s_n_nPress__SPACE_BAR__to_continue...
push str.__THE_DAY_IS_IN_BALANCE___
push ebx
push str.__27_
push ebx
push ebx
call fcn.0049aacd
add esp, 0x1c
jmp 0x491f91
push str._rAll_invoices_have_been_registered_and_your_day_is_in_balance._n_nPress__SPACE_BAR__to_continue...
push str.__THE_DAY_IS_IN_BALANCE___
push ebx
push str.__27_
push ebx
push ebx
call fcn.0049aacd
add esp, 0x18
push 0x7d0
call fcn.00499f88
pop ecx
mov esi, dword [esp + 0x50]
cmp esi, ebx
je 0x491fa9
call fcn.004504ee
push ebx
push 0xffffffffffffffff
call fcn.004af5f1
pop ecx
pop ecx
cmp dword [esp + 0x54], ebx
jne 0x491fc5
mov eax, dword [esp + 0x351ac]
call fcn.004634ef
xor eax, eax
jmp 0x490d6d
mov esi, dword [esp + 0x50]
cmp esi, ebx
je 0x491fd9
call fcn.004504ee
call fcn.004ac065
test eax, eax
jne 0x491fef
call fcn.004ab304
test eax, eax
jne 0x4920b3
mov ecx, dword [esp + 0x44]
cmp ecx, ebx
jle 0x492082
mov edx, dword [esp + 0x64]
fild dword [esp + 0x64]
lea eax, [edx + ecx]
mov dword [esp + 0x74], eax
fidiv dword [esp + 0x74]
fcomp qword [0x5056d0]
fnstsw ax
test ah, 5
jp 0x492082
cmp edx, 2
jl 0x492025
cmp ecx, 0xa
jle 0x492082
mov eax, dword [esp + 0x68]
call fcn.004b504f
mov eax, dword [esp + 0x10]
call fcn.004b504f
call fcn.004ab304
test eax, eax
je 0x49205d
cmp dword [esp + 0x58], ebx
jne 0x49205d
push str.There_are_too_many_unregistered_invoices_to_print._nThis_means_there_is_at_least_one_person_who_did_not_close_their_till._nBecause_of_this__the_day_cannot_be_balanced._nSelect__Reenter_Till__from_the_main_menu_to_enter_the_missing_till._nAfter_doing_this__you_may_try_running_this_report_again._n_nPress_any_key...
push str.__REPORT_IS_TOO_LARGE__
push ebx
push ebx
push ebx
push 1
call fcn.0049aacd
add esp, 0x18
push ebx
push 0xffffffffffffffff
call fcn.004af5f1
pop ecx
pop ecx
cmp dword [esp + 0x54], ebx
jne 0x492079
mov eax, dword [esp + 0x351ac]
call fcn.004634ef
mov eax, dword [esp + 0x40]
jmp 0x490d6d
cmp ecx, 0x4b
jl 0x4920b3
cmp dword [esp + 0x4c], ebx
jne 0x4920b3
cmp dword [esp + 0x3c], ebx
jne 0x4920b3
cmp dword [esp + 0x30], ebx
jne 0x4920b3
cmp dword [esp + 0x20], ebx
jne 0x4920b3
mov eax, dword [esp + 0x68]
call fcn.004b504f
mov eax, dword [esp + 0x10]
call fcn.004b504f
jmp 0x49205d
call fcn.004ac065
test eax, eax
jne 0x49220f
call fcn.004ab304
test eax, eax
je 0x49220f
cmp dword [esp + 0x58], ebx
jne 0x4921d2
push 0x7f
lea eax, [esp + 0x351e5]
push ebx
push eax
mov byte [esp + 0x351ec], bl
call fcn.00401f80
mov esi, dword [esp + 0x1c]
add esp, 0xc
push 0x4dc278
push esi
call fcn.004b580f
movzx eax, word [esp + 0x34]
push eax
movzx eax, byte [esp + 0x3b]
push eax
movzx eax, byte [esp + 0x3e]
push eax
push str._n_nTransaction_date__02d__02d__04d_is_out_of_balance_due_to_the_above_invoice
push esi
call fcn.004b580f
add esp, 0x1c
cmp dword [esp + 0x40], 1
jg 0x492136
push 0x4cc910
push esi
call fcn.004b580f
pop ecx
pop ecx
jmp 0x49214f
push dword [esp + 0x48]
call fcn.0047f170
pop ecx
push eax
push str.s_totaling__s.
push esi
call fcn.004b580f
add esp, 0xc
mov esi, dword [esp + 0x10]
push ebx
lea eax, [esp + 0x35264]
call fcn.004b5b2a
mov eax, dword [esp + 0x6c]
pop ecx
call fcn.004b504f
mov eax, esi
call fcn.004b504f
lea eax, [esp + 0x35260]
push eax
lea eax, [esp + 0x351e4]
push str.START___PAULA_Unregistered_Invoice_Report____MAX_notepad___s_
push eax
call fcn.00401954
add esp, 0xc
lea ebx, [esp + 0x351e0]
call fcn.004ac0f0
push 0x4dd100
call fcn.004adc59
pop ecx
push eax
mov eax, ebx
push eax
call fcn.00401ba0
push str._n_n_THE_REPORT_HAS_BEEN_OPENED_ON_YOUR_WINDOWS_TASK_BAR__n_n
call fcn.004adb65
mov eax, ebx
add esp, 0xc
push eax
call fcn.004adc59
mov dword [esp], 0x3a98
call fcn.00499f88
pop ecx
xor ebx, ebx
push ebx
push 0xffffffffffffffff
call fcn.004af5f1
pop ecx
pop ecx
cmp dword [esp + 0x40], ebx
jne 0x492067
cmp dword [esp + 0x4c], ebx
jne 0x492202
cmp dword [esp + 0x3c], ebx
jne 0x492202
cmp dword [esp + 0x30], ebx
jne 0x492202
cmp dword [esp + 0x20], ebx
je 0x492067
mov dword [esp + 0x40], 1
jmp 0x492067
cmp dword [esp + 0x58], ebx
jne 0x4921d2
push 0x103
lea eax, [esp + 0x35475]
push ebx
push eax
mov byte [esp + 0x3547c], bl
call fcn.00401f80
add esp, 0xc
push str._ProgLog.txt
push dword [edi + 0x206c]
push ebx
push ebx
call fcn.004784f0
pop ecx
pop ecx
push eax
push ecx
call fcn.004208c8
pop ecx
push eax
movzx eax, byte [esp + 0x3f]
push eax
movzx eax, byte [esp + 0x42]
push eax
movzx eax, word [esp + 0x44]
push eax
push ebx
push ebx
call fcn.004623aa
pop ecx
pop ecx
push eax
push str._s_04d__02d__02d_UNREGISTERED_INVOICES___s__s___d_s
lea eax, [esp + 0x35494]
push 0x104
push eax
call fcn.004451a8
mov esi, dword [esp + 0x94]
add esp, 0x2c
push 1
lea eax, [esp + 0x35474]
call fcn.004b5b2a
mov esi, dword [esp + 0x14]
pop ecx
push 1
lea eax, [esp + 0x35474]
call fcn.004b5b2a
pop ecx
call fcn.004ac065
test eax, eax
je 0x4922c1
mov dword [0x5fdd14], 1
cmp dword [esp + 0x351a8], ebx
jne 0x4921d2
mov eax, dword [0x5fdd00]
cmp eax, 0xa
jne 0x4922f8
mov edi, dword [edi + 0x214c]
cmp dword [0x5fdcd0], edi
je 0x4921d2
cmp edi, ebx
jle 0x4921d2
mov dword [0x5fdcd0], edi
cmp eax, 0x64
jb 0x492302
cmp eax, 0x6e
jbe 0x49230b
cmp eax, 0xb
jne 0x4921d2
push ebx
push 0xffffffffffffffff
call fcn.004af5f1
pop ecx
pop ecx
cmp dword [esp + 0x54], ebx
jne 0x490d6a
jmp 0x490e9e