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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x35d74
call fcn.00411aa0
mov eax, dword [0x4e22e4]
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 0x5d6928
stosb byte es:[edi], al
mov dword [esp + 0x44], ebx
call fcn.00401f80
add esp, 0xc
push esi
call fcn.0041b08c
add esp, 4
test eax, eax
jne 0x4814fe
cmp dword [esp + 0x34], ebx
je 0x4814fe
push 4
push ebx
call fcn.004963ec
push 1
push 0xc
call fcn.004977fe
push 0x35148
lea eax, [esp + 0x8c]
push ebx
push eax
call fcn.00401f80
add esp, 0x1c
call fcn.004957af
test eax, eax
jne 0x48149d
call fcn.00495676
test eax, eax
je 0x48149d
push ebx
push ebx
call fcn.004557a2
push eax
mov edi, 0x104
mov ecx, edi
lea eax, [esp + 0x3526c]
call fcn.00438c78
add esp, 0xc
push str.PAULA_Report____________PUI_____.log
mov eax, edi
lea esi, [esp + 0x35264]
call fcn.00439e04
pop ecx
mov eax, esi
push ebx
push eax
call fcn.0048f27a
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.004557a2
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.004394bf
add esp, 0x20
jmp 0x4814a9
lea eax, [esp + 0x35260]
call fcn.00438cf2
push str._n_nLoading_employee_descriptions...
call fcn.00496925
pop ecx
push ebx
push 0xffffffffffffffff
call fcn.004977fe
mov eax, dword [esp + 0x3c]
push ebx
push 0xffffffffffffffff
push 0xffededee
push dword [eax + 0xd90]
push str.PaulaEmpConfig.cfg
push eax
call fcn.0047f99a
add esp, 0x20
test eax, eax
jne 0x481516
cmp dword [esp + 0x58], ebx
jne 0x4814fe
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.0048a0d4
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.004963ec
push 1
push 0xc
call fcn.004977fe
mov esi, str._n_nLoading_employee_descriptions...DONE.
push esi
call fcn.00496925
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.00471412
pop ecx
test eax, eax
jne 0x48157b
mov dword [esp + 0x3519c], 1
push str._nParsing_invoices__please_wait...
call fcn.00496925
pop ecx
push 0xffffffffffffffff
push dword [esp + 0x38]
lea eax, [esp + 0x80]
call fcn.004600e9
pop ecx
pop ecx
test eax, eax
je 0x481643
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
call fcn.00471412
pop ecx
test eax, eax
jne 0x4815bf
mov dword [esp + 0x3519c], 1
push str._n_nSA12_PARSING_FAILED___Trying_one_more_time...
call fcn.00496925
pop ecx
push 0xffffffffffffffff
push dword [esp + 0x38]
lea eax, [esp + 0x80]
mov dword [esp + 0x3519c], edi
call fcn.004600e9
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x481643
push edi
push str._n_nTAMS_invoice_parsing_has_failed___err_d
call fcn.00496925
pop ecx
pop ecx
call fcn.004957af
test eax, eax
jne 0x481628
call fcn.00495676
test eax, eax
je 0x481628
cmp dword [esp + 0x58], ebx
jne 0x481628
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.0048a0d4
add esp, 0x1c
push ebx
push 0xffffffffffffffff
call fcn.004977fe
pop ecx
pop ecx
mov eax, dword [esp + 0x351ac]
call fcn.0045684e
jmp 0x4814fe
push 4
push ebx
call fcn.004963ec
push 1
push 0xc
call fcn.004977fe
push esi
call fcn.00496925
add esp, 0x14
push str._nParsing_invoices__please_wait...
call fcn.00496925
mov dword [esp], 0x3a98
call fcn.0045aec5
pop ecx
test eax, eax
je 0x48167f
push 0x4bc11c
jmp 0x481684
push str.FAILED_
call fcn.00496925
pop ecx
push str._nGenerating_report...
call fcn.00496925
mov esi, dword [esp + 0x58]
pop ecx
cmp esi, ebx
je 0x4816a8
lea eax, [esp + 0x78]
push eax
call fcn.0045af10
pop ecx
mov edi, str.MainPAULA.c
push edi
push 0x233a
xor ecx, ecx
call fcn.0049c92c
mov esi, eax
push str.__Missing_Invoice_Report__
push esi
mov dword [esp + 0x78], esi
call fcn.0049d269
push 0x4bc158
push esi
call fcn.0049d269
movzx eax, byte [esp + 0x93]
movzx ecx, word [esp + 0x90]
push eax
movzx eax, byte [esp + 0x96]
call fcn.0041aef5
add esp, 0x1c
call fcn.00438599
push eax
push str._n____s_will_NOT_balance__
push esi
call fcn.0049d269
add esp, 0xc
push 0x4bc198
push esi
call fcn.0049d269
pop ecx
xor esi, esi
xor edx, edx
pop ecx
mov dword [esp + 0x64], ebx
cmp dword [esp + 0x7c], ebx
jle 0x481761
lea ecx, [esp + 0xb5]
cmp word [ecx + 7], bx
jg 0x481754
movzx eax, byte [ecx]
push eax
call fcn.00455a45
add esp, 4
test eax, eax
je 0x481754
cmp dword [ecx - 0x2d], ebx
je 0x481754
xor eax, eax
inc esi
inc eax
cmp esi, eax
jg 0x4817f2
inc edx
add ecx, 0x90
cmp edx, dword [esp + 0x7c]
jl 0x48172d
push str._n_nAn_unregistered_invoice_was_found.
call fcn.00496925
pop ecx
push 0x4b5f34
call fcn.00496925
pop ecx
call fcn.00444592
mov dword [esp + 0x50], eax
call fcn.00444592
mov dword [esp + 0x1c], eax
call fcn.00444592
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x7c], ebx
jle 0x481898
lea esi, [esp + 0xb8]
mov ecx, dword [esi - 0x30]
cmp ecx, ebx
je 0x481880
movzx eax, byte [esi - 3]
push eax
call fcn.00455a45
add esp, 4
test eax, eax
je 0x481880
movzx eax, word [esi + 4]
push 1
push ecx
cmp ax, bx
jle 0x481800
mov edi, dword [esp + 0x58]
cwde
call fcn.004448c2
push dword [esi - 0x34]
push str.Inv_06d_
call fcn.00496925
add esp, 0x10
jmp 0x48187b
mov dword [esp + 0x64], eax
push str._n_nMultiple_unregistered_invoices_found.
jmp 0x481766
movsx eax, word [esi]
mov edi, dword [esp + 0x24]
call fcn.004448c2
cmp byte [esi - 2], bl
mov edi, dword [esp + 0x30]
movsx ebx, word [esi]
pop ecx
pop ecx
je 0x481841
call fcn.00444724
test eax, eax
jne 0x481831
push 1
movsx eax, word [esi]
push 1
call fcn.004448c2
jmp 0x481868
movsx ebx, word [esi]
call fcn.0044466f
test eax, eax
je 0x48186a
push 0
jmp 0x481825
call fcn.00444724
test eax, eax
jne 0x48185d
push 1
push eax
movsx eax, word [esi]
push eax
mov ebx, edi
call fcn.00444538
add esp, 0xc
jmp 0x48186a
movsx ebx, word [esi]
push 0
push edi
call fcn.004446c6
pop ecx
pop ecx
push dword [esi - 0x34]
push str.Bad_06d_
call fcn.00496925
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 0x4817a7
push dword [esp + 0x7c]
push str._n_nSearched__d_invoices.
call fcn.00496925
push edi
push 0x2382
xor ecx, ecx
call fcn.0049c92c
mov esi, eax
add esp, 0x10
mov dword [esp + 0x10], esi
cmp esi, ebx
jne 0x481919
push ebx
push 0xffffffffffffffff
call fcn.004977fe
pop ecx
pop ecx
cmp dword [esp + 0x54], ebx
jne 0x4818e3
mov eax, dword [esp + 0x351ac]
call fcn.0045684e
mov dword [esp + 0x351ac], ebx
cmp dword [esp + 0x50], ebx
je 0x4818f2
mov esi, dword [esp + 0x50]
call fcn.00444555
cmp dword [esp + 0x1c], ebx
je 0x481901
mov esi, dword [esp + 0x1c]
call fcn.00444555
cmp dword [esp + 0x28], ebx
je 0x4814fe
mov esi, dword [esp + 0x28]
call fcn.00444555
jmp 0x4814fe
push str.___PLEASE_GIVE_THIS_REPORT_TO_THE_MANAGER.___n
push esi
call fcn.0049d269
pop ecx
pop ecx
cmp dword [esp + 0x64], ebx
jne 0x481933
push str.This_INV_has_NOT_been_registered_with_PAULA:
jmp 0x481938
push str.These_INV_have_NOT_been_registered_with_PAULA:
push esi
call fcn.0049d269
pop ecx
pop ecx
push 0x2395
mov ecx, edi
call fcn.0043728a
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.004394bf
push 0x2397
push edi
push 0x10
call fcn.0046bf44
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0x351e4]
add esp, 0x24
push eax
lea edx, [esp + 0x3536c]
call fcn.00437e4a
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 0x481b45
lea esi, [esp + 0xb8]
mov dword [esp + 0x20], esi
mov ecx, dword [esi - 0x30]
cmp ecx, ebx
je 0x481b29
movzx eax, byte [esi - 3]
push eax
call fcn.00455a45
add esp, 4
test eax, eax
je 0x481b29
cmp word [esi + 4], bx
jg 0x481f13
movsx ebx, word [esi]
mov edi, dword [esp + 0x28]
inc dword [esp + 0x40]
add dword [esp + 0x48], ecx
call fcn.0044466f
cmp eax, 7
jb 0x481e87
movsx ebx, word [esi]
mov edi, dword [esp + 0x50]
call fcn.0044466f
test eax, eax
jne 0x481e5e
movsx ebx, word [esi]
mov edi, dword [esp + 0x1c]
call fcn.0044466f
test eax, eax
je 0x481b27
movsx ebx, word [esi]
inc dword [esp + 0x44]
call fcn.0044466f
push eax
call fcn.00470d2d
movsx ebx, word [esi]
mov edi, dword [esp + 0x2c]
pop ecx
push eax
call fcn.0044466f
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.0049d269
add esp, 0x24
push str._____Note_that_ROAs_may_be_entered_in_PAULA_without_a_till_by
push edi
call fcn.0049d269
mov eax, dword [esp + 0x3c]
cmp dword [eax + 0x2198], 0
pop ecx
pop ecx
jne 0x481ac2
push str.preceding_your_employee_number_n
push edi
call fcn.0049d269
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.0049d269
add esp, 0x14
jmp 0x481acf
push str.entering_0_for_your_till_number._n
push edi
call fcn.0049d269
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.0049d269
movsx ebx, word [esi]
mov edi, dword [esp + 0x28]
add esp, 0xc
call fcn.0044466f
push eax
call fcn.00470d2d
movsx ebx, word [esi]
mov edi, dword [esp + 0x2c]
pop ecx
push eax
call fcn.0044466f
push eax
movsx eax, word [esi]
push eax
push str._nEmp__d_ran__d_UNREGISTERED_ROAs:__s
push dword [esp + 0x20]
call fcn.0049d269
movsx ebx, word [esi]
add esp, 0x14
push 0
push dword [esp + 0x20]
call fcn.004446c6
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 0x4819d0
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x481b52
call fcn.00444555
mov esi, dword [esp + 0x28]
cmp esi, ebx
je 0x481b5f
call fcn.00444555
cmp dword [esp + 0x38], ebx
jne 0x481b6b
cmp dword [esp + 0x30], ebx
jle 0x481bcd
cmp dword [esp + 0x30], ebx
jge 0x481ba0
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x351c0]
push eax
lea edx, [esp + 0x3536c]
call fcn.00437e4a
pop ecx
test eax, eax
jns 0x481ba0
push 0x1c36
lea ecx, [esp + 0x3536c]
call fcn.0048e61d
pop ecx
mov esi, dword [esp + 0x3c]
push dword [esp + 0x2c]
mov ecx, esi
call fcn.0047401b
pop ecx
push ebx
push 1
lea eax, [esp + 0x35370]
push eax
push esi
call fcn.00437e8e
add esp, 0x10
test eax, eax
jg 0x481bcd
call fcn.0043766f
mov eax, dword [esp + 0x3c]
call fcn.0043742b
push 0x10
call fcn.0046821e
cmp dword [esp + 0x48], 0x4b
pop ecx
jle 0x481c36
call fcn.004957af
test eax, eax
jne 0x481bf7
call fcn.00495676
test eax, eax
jne 0x481c36
mov esi, dword [esp + 0x10]
call fcn.0049cb73
push str.___PLEASE_GIVE_THIS_REPORT_TO_THE_MANAGER.__
push esi
call fcn.0049d269
push dword [esp + 0x48]
push str._nThere_are__d_unregistered_invoices.
push esi
call fcn.0049d269
add esp, 0x14
push str._nThis_is_more_than_can_be_printed_here.
push esi
call fcn.0049d269
push str._nFor_a_complete_list__run_the_report_manually.
push esi
call fcn.0049d269
add esp, 0x10
cmp dword [esp + 0x44], 2
jl 0x481c72
push dword [esp + 0x48]
call fcn.00470d2d
pop ecx
push eax
mov esi, str._nUnregistered_Invoice_Total___s
push esi
push dword [esp + 0x18]
call fcn.0049d269
add esp, 0xc
push dword [esp + 0x48]
call fcn.00470d2d
pop ecx
push eax
push esi
push dword [esp + 0x20]
call fcn.0049d269
add esp, 0xc
push dword [esp + 0x58]
mov ecx, dword [esp + 0x38]
push ebx
push dword [esp + 0x34]
call fcn.004807b2
add esp, 0xc
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x481d6b
mov edi, dword [eax]
mov dword [esp + 0x3c], edi
call fcn.0041b6db
mov esi, 0x4b4334
push esi
push dword [esp + 0x14]
mov dword [esp + 0x38], eax
call fcn.0049d269
push esi
push dword [esp + 0x24]
call fcn.0049d269
add esp, 0x10
mov esi, str.EXCLUDED__F10__invoices_that_were_never_INCLUDED:
cmp edi, 2
jge 0x481ccd
mov esi, str.EXCLUDED__F10__invoice_that_was_never_INCLUDED:
push esi
push dword [esp + 0x14]
call fcn.0049d269
push esi
push dword [esp + 0x24]
call fcn.0049d269
add esp, 0x10
mov esi, 0x4afe8c
push esi
push dword [esp + 0x14]
call fcn.0049d269
push esi
push dword [esp + 0x24]
call fcn.0049d269
add esp, 0x10
xor esi, esi
cmp edi, ebx
jle 0x481d61
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.0041bed2
pop ecx
pop ecx
cmp eax, 0xc
jl 0x481d37
push str.__Final_Warning_
push dword [esp + 0x1c]
call fcn.0049d269
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.00473ba1
add dword [esp + 0x48], 0x90
mov esi, edi
add esp, 0x10
cmp esi, dword [esp + 0x3c]
jl 0x481d11
push dword [esp + 0x20]
call fcn.00401a00
pop ecx
mov edi, str.MainPAULA.c
push edi
push 0x242a
xor ecx, ecx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x30], ebx
call fcn.0049c92c
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x84]
pop ecx
pop ecx
mov dword [esp + 0x14], ebx
cmp eax, ebx
jle 0x481f22
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 0x481dfb
movzx eax, byte [esi + 0x2d]
push eax
call fcn.00455a45
add esp, 4
test eax, eax
je 0x481dfb
mov eax, dword [esi]
cmp eax, ebx
je 0x481dfb
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.00473ba1
add esp, 0x10
inc dword [esp + 0x14]
mov eax, dword [esp + 0x7c]
add esi, 0x90
cmp dword [esp + 0x14], eax
jl 0x481da5
cmp dword [esp + 0x28], 2
jl 0x481f1c
cmp dword [esp + 0x60], ebx
je 0x481f22
push dword [esp + 0x60]
call fcn.00470d2d
pop ecx
push eax
mov esi, str._nLate_Invoice_Total___s
push esi
push dword [esp + 0x38]
call fcn.0049d269
add esp, 0xc
push dword [esp + 0x60]
call fcn.00470d2d
pop ecx
push eax
push esi
push dword [esp + 0x54]
call fcn.0049d269
add esp, 0xc
jmp 0x481f2f
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.00473ba1
add esp, 0x10
jmp 0x481b27
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.00473ba1
lea eax, [esp + 0x48]
push eax
push ebx
push 9
lea eax, [esp + 0x35594]
push 0x400
push eax
add esi, 0xffffffc8
call fcn.00457259
mov esi, dword [esp + 0x60]
add esp, 0x24
push dword [esp + 0x38]
lea eax, [esp + 0x3557c]
push eax
call fcn.00437a4c
mov esi, dword [esp + 0x28]
pop ecx
pop ecx
mov dword [esp + 0x38], 1
jmp 0x481b27
inc dword [esp + 0x64]
jmp 0x481b29
cmp dword [esp + 0x60], ebx
jne 0x481f2f
mov esi, dword [esp + 0x30]
call fcn.0049cb73
mov dword [esp + 0x28], ebx
push edi
push 0x2448
xor ecx, ecx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x24], ebx
call fcn.0049c92c
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x84]
pop ecx
pop ecx
mov dword [esp + 0x14], ebx
cmp eax, ebx
jle 0x482018
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 0x481fba
movzx eax, byte [esi + 0x2d]
push eax
call fcn.00455a45
add esp, 4
test eax, eax
je 0x481fba
mov eax, dword [esi]
cmp eax, ebx
je 0x481fba
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.00473ba1
add esp, 0x10
inc dword [esp + 0x14]
mov eax, dword [esp + 0x7c]
add esi, 0x90
cmp dword [esp + 0x14], eax
jl 0x481f64
cmp dword [esp + 0x1c], 2
jl 0x482012
cmp dword [esp + 0x5c], ebx
je 0x482018
push dword [esp + 0x5c]
call fcn.00470d2d
pop ecx
push eax
mov esi, str._nPrev_Day_Invoice_Total___s
push esi
push dword [esp + 0x28]
call fcn.0049d269
add esp, 0xc
push dword [esp + 0x5c]
call fcn.00470d2d
pop ecx
push eax
push esi
push dword [esp + 0x78]
call fcn.0049d269
add esp, 0xc
jmp 0x482025
cmp dword [esp + 0x5c], ebx
jne 0x482025
mov esi, dword [esp + 0x20]
call fcn.0049cb73
mov dword [esp + 0x1c], ebx
push edi
push 0x2467
xor ecx, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.0049c92c
mov dword [esp + 0x40], eax
lea eax, [esp + 0x74]
push eax
mov eax, dword [esp + 0x351b8]
call fcn.00456992
add esp, 0xc
mov dword [esp + 0x70], eax
cmp eax, ebx
je 0x482575
push dword [esp + 0x78]
call fcn.0041b13b
pop ecx
test eax, eax
je 0x482103
mov edi, dword [esp + 0x6c]
dec edi
cmp edi, ebx
jl 0x482103
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.0041bed2
pop ecx
pop ecx
cmp eax, ebx
jle 0x4820f8
cmp eax, 2
jg 0x482103
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 0x4820f8
movzx eax, byte [esi - 2]
push eax
call fcn.00455a45
add esp, 4
test eax, eax
je 0x4820f8
mov eax, dword [esi - 0x2f]
cmp eax, ebx
je 0x4820f8
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.00473ba1
add esp, 0x10
dec edi
sub esi, 0x90
cmp edi, ebx
jge 0x48208d
mov eax, dword [esp + 0x351ac]
call fcn.00456960
cmp dword [esp + 0x18], 2
jl 0x48256b
cmp dword [esp + 0x14], ebx
je 0x482575
push dword [esp + 0x14]
call fcn.00470d2d
pop ecx
push eax
mov esi, str._nEarly_Invoice_Total___s
push esi
push dword [esp + 0x40]
call fcn.0049d269
add esp, 0xc
push dword [esp + 0x14]
call fcn.00470d2d
pop ecx
push eax
push esi
push dword [esp + 0x2c]
call fcn.0049d269
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 0x4bbd3c
mov esi, 0x5d690c
push esi
call fcn.00401954
mov dword [0x5d6948], esi
mov dword [0x5d6944], 0x4e3938
mov eax, dword [edi + 0x206c]
mov dword [0x5d6934], eax
mov eax, dword [edi + 0x2150]
mov dword [0x5d6928], eax
mov eax, dword [edi + 0x215c]
mov dword [0x5d692c], eax
mov eax, dword [edi + 0x2160]
mov dword [0x5d6930], eax
lea eax, [edi + 0x1094]
mov dword [0x5d6938], eax
lea eax, [edi + 0x149c]
mov dword [0x5d693c], eax
mov eax, dword [esp + 0x7c]
mov dword [0x5d6940], eax
mov eax, dword [esp + 0x24]
add esp, 0x14
push dword [esp + 0x74]
mov dword [0x5d694c], eax
lea eax, [esp + 0x7c]
push eax
mov ecx, edi
mov dword [0x5d695c], 1
call fcn.00479598
pop ecx
pop ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x4c], ebx
cmp eax, ebx
je 0x48227e
mov esi, eax
call fcn.0049d073
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x482275
cmp dword [esp + 0x40], ebx
jle 0x48222c
cmp dword [esp + 0x48], ebx
jne 0x48224e
mov esi, dword [esp + 0x10]
call fcn.0049cb73
push str.___PLEASE_GIVE_THIS_REPORT_TO_THE_MANAGER.___n
push esi
call fcn.0049d269
push str.The_issue_below_needs_attention:
push esi
call fcn.0049d269
add esp, 0x10
push dword [esp + 0x24]
push 0x4b06b4
push dword [esp + 0x18]
call fcn.0049d269
add esp, 0xc
push dword [esp + 0x24]
call fcn.00401a00
pop ecx
mov dword [esp + 0x4c], 1
mov eax, dword [esp + 0x6c]
call fcn.0049caa9
mov dword [esp + 0x3c], ebx
cmp dword [esp + 0x28], ebx
jle 0x482307
cmp dword [esp + 0x60], ebx
je 0x482307
mov esi, dword [esp + 0x30]
call fcn.0049d073
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x482307
cmp dword [esp + 0x40], ebx
jle 0x4822ab
cmp dword [esp + 0x48], ebx
jne 0x4822c7
cmp dword [esp + 0x4c], ebx
jne 0x4822c7
mov esi, dword [esp + 0x10]
call fcn.0049cb73
push str.___PLEASE_GIVE_THIS_REPORT_TO_THE_MANAGER.__
push esi
call fcn.0049d269
pop ecx
pop ecx
xor esi, esi
inc esi
cmp dword [esp + 0x28], esi
jne 0x48258b
push str._nThis_invoice_was_billed_after_TAMS_shutdown:
push dword [esp + 0x14]
call fcn.0049d269
pop ecx
pop ecx
push dword [esp + 0x24]
push 0x4b06b4
push dword [esp + 0x18]
call fcn.0049d269
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 0x482314
call fcn.0049caa9
mov dword [esp + 0x30], ebx
cmp dword [esp + 0x1c], ebx
jle 0x4823a7
cmp dword [esp + 0x5c], ebx
je 0x4823a7
mov esi, dword [esp + 0x20]
call fcn.0049d073
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x4823a7
cmp dword [esp + 0x40], ebx
jle 0x482345
cmp dword [esp + 0x48], ebx
jne 0x482367
cmp dword [esp + 0x4c], ebx
jne 0x482367
cmp dword [esp + 0x3c], ebx
jne 0x482367
mov esi, dword [esp + 0x10]
call fcn.0049cb73
push str.___PLEASE_GIVE_THIS_REPORT_TO_THE_MANAGER.__
push esi
call fcn.0049d269
pop ecx
pop ecx
xor esi, esi
inc esi
cmp dword [esp + 0x1c], esi
jne 0x4825d8
push str._nThis_invoice_belongs_to_previous_accnting_day:
push dword [esp + 0x14]
call fcn.0049d269
pop ecx
pop ecx
push dword [esp + 0x24]
push 0x4b06b4
push dword [esp + 0x18]
call fcn.0049d269
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 0x4823b4
call fcn.0049caa9
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x18], ebx
jle 0x482451
cmp dword [esp + 0x14], ebx
je 0x482451
mov esi, dword [esp + 0x38]
call fcn.0049d073
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x482451
cmp dword [esp + 0x40], ebx
jle 0x4823e9
cmp dword [esp + 0x48], ebx
jne 0x482411
cmp dword [esp + 0x4c], ebx
jne 0x482411
cmp dword [esp + 0x3c], ebx
jne 0x482411
cmp dword [esp + 0x30], ebx
jne 0x482411
mov esi, dword [esp + 0x10]
call fcn.0049cb73
push str.___PLEASE_GIVE_THIS_REPORT_TO_THE_MANAGER.__
push esi
call fcn.0049d269
pop ecx
pop ecx
xor esi, esi
inc esi
cmp dword [esp + 0x18], esi
jne 0x482625
push str._nThis_invoice_was_billed_before_new_day_started:
push dword [esp + 0x14]
call fcn.0049d269
pop ecx
pop ecx
push dword [esp + 0x24]
push 0x4b06b4
push dword [esp + 0x18]
call fcn.0049d269
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 0x48245e
call fcn.0049caa9
cmp dword [esp + 0x40], ebx
jle 0x48246e
cmp dword [esp + 0x48], ebx
jne 0x482753
cmp dword [esp + 0x4c], ebx
jne 0x482753
cmp dword [esp + 0x3c], ebx
jne 0x482753
cmp dword [esp + 0x30], ebx
jne 0x482753
cmp dword [esp + 0x20], ebx
jne 0x482753
mov eax, dword [esp + 0x68]
call fcn.0049caa9
mov eax, dword [esp + 0x10]
call fcn.0049caa9
push str._n_nThe_day_is_in_balance_
call fcn.00496925
pop ecx
call fcn.004957af
test eax, eax
jne 0x482723
call fcn.00495676
test eax, eax
je 0x482723
cmp dword [esp + 0x58], ebx
jne 0x482723
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.00444406
mov dword [esp + 0x24], eax
mov eax, edi
call fcn.00444955
mov esi, eax
cmp esi, ebx
jle 0x48269b
mov edi, 0x800
mov eax, dword [esp + 0x34]
mov ecx, esi
call fcn.0047131c
mov ecx, dword [esp + 0x34]
call fcn.004712f0
mov edx, eax
call fcn.00439e45
push esi
test eax, eax
jne 0x482672
mov eax, dword [esp + 0x38]
mov ecx, esi
call fcn.0047131c
mov ecx, dword [esp + 0x38]
call fcn.004712f0
push eax
push str._n_r______s__d
lea eax, [esp + 0x35584]
push edi
push eax
call fcn.00439506
add esp, 0x14
jmp 0x482688
cmp dword [esp + 0x14], ebx
jne 0x482159
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
call fcn.0049cb73
mov dword [esp + 0x18], ebx
jmp 0x48215d
push str._nThese_invoices_were_billed_after_TAMS_shutdown:
push dword [esp + 0x14]
call fcn.0049d269
cmp dword [esp + 0x30], 0x16
pop ecx
pop ecx
jle 0x4822e4
push str._nThere_are_too_many_invoices_to_list.
push dword [esp + 0x14]
call fcn.0049d269
push str._nTAMS_End_Of_Day_was_run_mid_day.
push dword [esp + 0x1c]
call fcn.0049d269
push str._nYour_day_will_not_balance.
push dword [esp + 0x24]
call fcn.0049d269
add esp, 0x18
jmp 0x4822f9
push str._nThese_invoices_belong_to_previous_accnting_day:
push dword [esp + 0x14]
call fcn.0049d269
cmp dword [esp + 0x24], 0x16
pop ecx
pop ecx
jle 0x482384
push str._nThere_are_too_many_invoices_to_list.
push dword [esp + 0x14]
call fcn.0049d269
push str._nTAMS_End_Of_Day_was_run_mid_day.
push dword [esp + 0x1c]
call fcn.0049d269
push str._nYour_day_will_not_balance.
push dword [esp + 0x24]
call fcn.0049d269
add esp, 0x18
jmp 0x482399
push str._nThese_invoices_were_billed_before_start_of_day:
push dword [esp + 0x14]
call fcn.0049d269
cmp dword [esp + 0x20], 0x16
pop ecx
pop ecx
jle 0x48242e
push str._nThere_are_too_many_invoices_to_list.
push dword [esp + 0x14]
call fcn.0049d269
push str._nTAMS_End_Of_Day_was_not_run_yesterday.
push dword [esp + 0x1c]
call fcn.0049d269
push str._nYour_day_will_not_balance.
push dword [esp + 0x24]
call fcn.0049d269
add esp, 0x18
jmp 0x482443
push str._n_r_____UNKNOWN_EMP__d
lea eax, [esp + 0x35580]
push edi
push eax
call fcn.00439506
add esp, 0x10
mov eax, dword [esp + 0x50]
call fcn.00444955
mov esi, eax
cmp esi, ebx
jg 0x482517
cmp dword [esp + 0x24], 1
jle 0x4826ca
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.0048a0d4
add esp, 0x20
jmp 0x482718
lea edx, [esp + 0x35578]
call fcn.00439e45
test eax, eax
jne 0x4826fe
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.0048a0d4
add esp, 0x1c
jmp 0x482718
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.0048a0d4
add esp, 0x18
push 0x7d0
call fcn.004895a4
pop ecx
mov esi, dword [esp + 0x50]
cmp esi, ebx
je 0x482730
call fcn.00444555
push ebx
push 0xffffffffffffffff
call fcn.004977fe
pop ecx
pop ecx
cmp dword [esp + 0x54], ebx
jne 0x48274c
mov eax, dword [esp + 0x351ac]
call fcn.0045684e
xor eax, eax
jmp 0x481501
mov esi, dword [esp + 0x50]
cmp esi, ebx
je 0x482760
call fcn.00444555
call fcn.004957af
test eax, eax
jne 0x482776
call fcn.00495676
test eax, eax
jne 0x48283a
mov ecx, dword [esp + 0x44]
cmp ecx, ebx
jle 0x482809
mov edx, dword [esp + 0x64]
fild dword [esp + 0x64]
lea eax, [edx + ecx]
mov dword [esp + 0x74], eax
fidiv dword [esp + 0x74]
fcomp qword [0x4dedf0]
fnstsw ax
test ah, 5
jp 0x482809
cmp edx, 2
jl 0x4827ac
cmp ecx, 0xa
jle 0x482809
mov eax, dword [esp + 0x68]
call fcn.0049caa9
mov eax, dword [esp + 0x10]
call fcn.0049caa9
call fcn.00495676
test eax, eax
je 0x4827e4
cmp dword [esp + 0x58], ebx
jne 0x4827e4
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.0048a0d4
add esp, 0x18
push ebx
push 0xffffffffffffffff
call fcn.004977fe
pop ecx
pop ecx
cmp dword [esp + 0x54], ebx
jne 0x482800
mov eax, dword [esp + 0x351ac]
call fcn.0045684e
mov eax, dword [esp + 0x40]
jmp 0x481501
cmp ecx, 0x4b
jl 0x48283a
cmp dword [esp + 0x4c], ebx
jne 0x48283a
cmp dword [esp + 0x3c], ebx
jne 0x48283a
cmp dword [esp + 0x30], ebx
jne 0x48283a
cmp dword [esp + 0x20], ebx
jne 0x48283a
mov eax, dword [esp + 0x68]
call fcn.0049caa9
mov eax, dword [esp + 0x10]
call fcn.0049caa9
jmp 0x4827e4
call fcn.004957af
test eax, eax
jne 0x482992
call fcn.00495676
test eax, eax
je 0x482992
cmp dword [esp + 0x58], ebx
jne 0x482955
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 0x4bbd58
push esi
call fcn.0049d269
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.0049d269
add esp, 0x1c
cmp dword [esp + 0x40], 1
jg 0x4828bd
push 0x4ae7fc
push esi
call fcn.0049d269
pop ecx
pop ecx
jmp 0x4828d6
push dword [esp + 0x48]
call fcn.00470d2d
pop ecx
push eax
push str.s_totaling__s.
push esi
call fcn.0049d269
add esp, 0xc
mov esi, dword [esp + 0x10]
push ebx
lea eax, [esp + 0x35264]
call fcn.0049d49b
mov eax, dword [esp + 0x6c]
pop ecx
call fcn.0049caa9
mov eax, esi
call fcn.0049caa9
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
push 0x4bcbe0
call fcn.00496242
pop ecx
push eax
lea eax, [esp + 0x351e4]
push eax
call fcn.00401ba0
push str._n_n_THE_REPORT_HAS_BEEN_OPENED_ON_YOUR_WINDOWS_TASK_BAR__n_n
call fcn.00496925
lea eax, [esp + 0x351ec]
add esp, 0xc
push eax
call fcn.00496242
mov dword [esp], 0x3a98
call fcn.004895a4
pop ecx
push ebx
push 0xffffffffffffffff
call fcn.004977fe
pop ecx
pop ecx
cmp dword [esp + 0x40], ebx
jne 0x4827ee
cmp dword [esp + 0x4c], ebx
jne 0x482985
cmp dword [esp + 0x3c], ebx
jne 0x482985
cmp dword [esp + 0x30], ebx
jne 0x482985
cmp dword [esp + 0x20], ebx
je 0x4827ee
mov dword [esp + 0x40], 1
jmp 0x4827ee
cmp dword [esp + 0x58], ebx
jne 0x482955
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 ecx
call fcn.0041d263
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.004557a2
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.004394bf
mov esi, dword [esp + 0x94]
add esp, 0x2c
push 1
lea eax, [esp + 0x35474]
call fcn.0049d49b
mov esi, dword [esp + 0x14]
pop ecx
push 1
lea eax, [esp + 0x35474]
call fcn.0049d49b
pop ecx
call fcn.004957af
test eax, eax
je 0x482a3b
mov dword [0x5d696c], 1
cmp dword [esp + 0x351a8], ebx
jne 0x482955
mov eax, dword [0x5d6958]
cmp eax, 0xa
jne 0x482a72
mov edi, dword [edi + 0x214c]
cmp dword [0x5d6928], edi
je 0x482955
cmp edi, ebx
jle 0x482955
mov dword [0x5d6928], edi
cmp eax, 0x64
jb 0x482a7c
cmp eax, 0x6e
jbe 0x482a85
cmp eax, 0xb
jne 0x482955
push ebx
push 0xffffffffffffffff
call fcn.004977fe
pop ecx
pop ecx
cmp dword [esp + 0x54], ebx
jne 0x4814fe
jmp 0x481632