Function at 0x480e1e
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 0x5d6918
stosb byte es:[edi], al
mov dword [esp + 0x44], ebx
call fcn.00401f80
add esp, 0xc
push esi
call fcn.0041afab
add esp, 4
test eax, eax
jne 0x481034
cmp dword [esp + 0x34], ebx
je 0x481034
push 4
push ebx
call fcn.0049620a
push 1
push 0xc
call fcn.004976b8
push 0x35148
lea eax, [esp + 0x8c]
push ebx
push eax
call fcn.00401f80
add esp, 0x1c
call fcn.00495492
test eax, eax
je 0x480fd3
push ebx
push ebx
call fcn.0045531b
push eax
mov edi, 0x104
mov ecx, edi
lea eax, [esp + 0x3526c]
call fcn.00438aa8
add esp, 0xc
push str.PAULA_Report____________PUI_____.log
mov eax, edi
lea esi, [esp + 0x35264]
call fcn.00439c34
pop ecx
mov eax, esi
push ebx
push eax
call fcn.0048f312
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.0045531b
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.004392ef
add esp, 0x20
jmp 0x480fdf
lea eax, [esp + 0x35260]
call fcn.00438b22
push str._n_nLoading_employee_descriptions...
call fcn.00496619
pop ecx
push ebx
push 0xffffffffffffffff
call fcn.004976b8
mov eax, dword [esp + 0x3c]
push ebx
push 0xffffffffffffffff
push 0xffededee
push dword [eax + 0xd90]
push str.PaulaEmpConfig.cfg
push eax
call fcn.0047f43f
add esp, 0x20
test eax, eax
jne 0x48104c
cmp dword [esp + 0x58], ebx
jne 0x481034
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.0048a381
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.0049620a
push 1
push 0xc
call fcn.004976b8
mov esi, str._n_nLoading_employee_descriptions...DONE.
push esi
call fcn.00496619
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.00470d9a
pop ecx
test eax, eax
jne 0x4810b1
mov dword [esp + 0x3519c], 1
push str._nParsing_invoices__please_wait...
call fcn.00496619
pop ecx
push 0xffffffffffffffff
push dword [esp + 0x38]
lea eax, [esp + 0x80]
call fcn.0045fcbe
pop ecx
pop ecx
test eax, eax
je 0x481170
push dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
call fcn.00470d9a
pop ecx
test eax, eax
jne 0x4810f5
mov dword [esp + 0x3519c], 1
push str._n_nSA12_PARSING_FAILED___Trying_one_more_time...
call fcn.00496619
pop ecx
push 0xffffffffffffffff
push dword [esp + 0x38]
lea eax, [esp + 0x80]
mov dword [esp + 0x3519c], edi
call fcn.0045fcbe
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x481170
push edi
push str._n_nTAMS_invoice_parsing_has_failed___err_d
call fcn.00496619
pop ecx
pop ecx
call fcn.00495492
test eax, eax
je 0x481155
cmp dword [esp + 0x58], ebx
jne 0x481155
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.0048a381
add esp, 0x1c
push ebx
push 0xffffffffffffffff
call fcn.004976b8
pop ecx
pop ecx
mov eax, dword [esp + 0x351ac]
call fcn.00456a35
jmp 0x481034
push 4
push ebx
call fcn.0049620a
push 1
push 0xc
call fcn.004976b8
push esi
call fcn.00496619
add esp, 0x14
push str._nParsing_invoices__please_wait...
call fcn.00496619
mov dword [esp], 0x3a98
call fcn.0045aa78
pop ecx
test eax, eax
je 0x4811ac
push 0x4bc1dc
jmp 0x4811b1
push str.FAILED_
call fcn.00496619
pop ecx
push str._nGenerating_report...
call fcn.00496619
mov esi, dword [esp + 0x58]
pop ecx
cmp esi, ebx
je 0x4811d5
lea eax, [esp + 0x78]
push eax
call fcn.0045aac3
pop ecx
mov edi, str.MainPAULA.c
push edi
push 0x232e
xor ecx, ecx
call fcn.0049c7e1
mov esi, eax
push str.__Missing_Invoice_Report__
push esi
mov dword [esp + 0x78], esi
call fcn.0049d11e
push 0x4bc218
push esi
call fcn.0049d11e
movzx eax, byte [esp + 0x93]
movzx ecx, word [esp + 0x90]
push eax
movzx eax, byte [esp + 0x96]
call fcn.0041ae14
add esp, 0x1c
call fcn.004383c9
push eax
push str._n____s_will_NOT_balance__
push esi
call fcn.0049d11e
add esp, 0xc
push 0x4bc258
push esi
call fcn.0049d11e
pop ecx
xor esi, esi
xor edx, edx
pop ecx
mov dword [esp + 0x64], ebx
cmp dword [esp + 0x7c], ebx
jle 0x48128e
lea ecx, [esp + 0xb5]
cmp word [ecx + 7], bx
jg 0x481281
movzx eax, byte [ecx]
push eax
call fcn.00455654
add esp, 4
test eax, eax
je 0x481281
cmp dword [ecx - 0x2d], ebx
je 0x481281
xor eax, eax
inc esi
inc eax
cmp esi, eax
jg 0x48131f
inc edx
add ecx, 0x90
cmp edx, dword [esp + 0x7c]
jl 0x48125a
push str._n_nAn_unregistered_invoice_was_found.
call fcn.00496619
pop ecx
push 0x4b5ff4
call fcn.00496619
pop ecx
call fcn.00444328
mov dword [esp + 0x50], eax
call fcn.00444328
mov dword [esp + 0x1c], eax
call fcn.00444328
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x7c], ebx
jle 0x4813c5
lea esi, [esp + 0xb8]
mov ecx, dword [esi - 0x30]
cmp ecx, ebx
je 0x4813ad
movzx eax, byte [esi - 3]
push eax
call fcn.00455654
add esp, 4
test eax, eax
je 0x4813ad
movzx eax, word [esi + 4]
push 1
push ecx
cmp ax, bx
jle 0x48132d
mov edi, dword [esp + 0x58]
cwde
call fcn.00444658
push dword [esi - 0x34]
push str.Inv_06d_
call fcn.00496619
add esp, 0x10
jmp 0x4813a8
mov dword [esp + 0x64], eax
push str._n_nMultiple_unregistered_invoices_found.
jmp 0x481293
movsx eax, word [esi]
mov edi, dword [esp + 0x24]
call fcn.00444658
cmp byte [esi - 2], bl
mov edi, dword [esp + 0x30]
movsx ebx, word [esi]
pop ecx
pop ecx
je 0x48136e
call fcn.004444ba
test eax, eax
jne 0x48135e
push 1
movsx eax, word [esi]
push 1
call fcn.00444658
jmp 0x481395
movsx ebx, word [esi]
call fcn.00444405
test eax, eax
je 0x481397
push 0
jmp 0x481352
call fcn.004444ba
test eax, eax
jne 0x48138a
push 1
push eax
movsx eax, word [esi]
push eax
mov ebx, edi
call fcn.004442ce
add esp, 0xc
jmp 0x481397
movsx ebx, word [esi]
push 0
push edi
call fcn.0044445c
pop ecx
pop ecx
push dword [esi - 0x34]
push str.Bad_06d_
call fcn.00496619
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 0x4812d4
push dword [esp + 0x7c]
push str._n_nSearched__d_invoices.
call fcn.00496619
push edi
push 0x2376
xor ecx, ecx
call fcn.0049c7e1
mov esi, eax
add esp, 0x10
mov dword [esp + 0x10], esi
cmp esi, ebx
jne 0x481446
push ebx
push 0xffffffffffffffff
call fcn.004976b8
pop ecx
pop ecx
cmp dword [esp + 0x54], ebx
jne 0x481410
mov eax, dword [esp + 0x351ac]
call fcn.00456a35
mov dword [esp + 0x351ac], ebx
cmp dword [esp + 0x50], ebx
je 0x48141f
mov esi, dword [esp + 0x50]
call fcn.004442eb
cmp dword [esp + 0x1c], ebx
je 0x48142e
mov esi, dword [esp + 0x1c]
call fcn.004442eb
cmp dword [esp + 0x28], ebx
je 0x481034
mov esi, dword [esp + 0x28]
call fcn.004442eb
jmp 0x481034
push str.___PLEASE_GIVE_THIS_REPORT_TO_THE_MANAGER.___n
push esi
call fcn.0049d11e
pop ecx
pop ecx
cmp dword [esp + 0x64], ebx
jne 0x481460
push str.This_INV_has_NOT_been_registered_with_PAULA:
jmp 0x481465
push str.These_INV_have_NOT_been_registered_with_PAULA:
push esi
call fcn.0049d11e
pop ecx
pop ecx
push 0x2389
mov ecx, edi
call fcn.004370ba
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.004392ef
push 0x238b
push edi
push 0x10
call fcn.0046b9b6
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0x351e4]
add esp, 0x24
push eax
lea edx, [esp + 0x3536c]
call fcn.00437c7a
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 0x481672
lea esi, [esp + 0xb8]
mov dword [esp + 0x20], esi
mov ecx, dword [esi - 0x30]
cmp ecx, ebx
je 0x481656
movzx eax, byte [esi - 3]
push eax
call fcn.00455654
add esp, 4
test eax, eax
je 0x481656
cmp word [esi + 4], bx
jg 0x481a3f
movsx ebx, word [esi]
mov edi, dword [esp + 0x28]
inc dword [esp + 0x40]
add dword [esp + 0x48], ecx
call fcn.00444405
cmp eax, 7
jb 0x4819ab
movsx ebx, word [esi]
mov edi, dword [esp + 0x50]
call fcn.00444405
test eax, eax
jne 0x481982
movsx ebx, word [esi]
mov edi, dword [esp + 0x1c]
call fcn.00444405
test eax, eax
je 0x481654
movsx ebx, word [esi]
inc dword [esp + 0x44]
call fcn.00444405
push eax
call fcn.004706b0
movsx ebx, word [esi]
mov edi, dword [esp + 0x2c]
pop ecx
push eax
call fcn.00444405
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.0049d11e
add esp, 0x24
push str._____Note_that_ROAs_may_be_entered_in_PAULA_without_a_till_by
push edi
call fcn.0049d11e
mov eax, dword [esp + 0x3c]
cmp dword [eax + 0x2198], 0
pop ecx
pop ecx
jne 0x4815ef
push str.preceding_your_employee_number_n
push edi
call fcn.0049d11e
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.0049d11e
add esp, 0x14
jmp 0x4815fc
push str.entering_0_for_your_till_number._n
push edi
call fcn.0049d11e
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.0049d11e
movsx ebx, word [esi]
mov edi, dword [esp + 0x28]
add esp, 0xc
call fcn.00444405
push eax
call fcn.004706b0
movsx ebx, word [esi]
mov edi, dword [esp + 0x2c]
pop ecx
push eax
call fcn.00444405
push eax
movsx eax, word [esi]
push eax
push str._nEmp__d_ran__d_UNREGISTERED_ROAs:__s
push dword [esp + 0x20]
call fcn.0049d11e
movsx ebx, word [esi]
add esp, 0x14
push 0
push dword [esp + 0x20]
call fcn.0044445c
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 0x4814fd
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x48167f
call fcn.004442eb
mov esi, dword [esp + 0x28]
cmp esi, ebx
je 0x48168c
call fcn.004442eb
cmp dword [esp + 0x38], ebx
jne 0x481698
cmp dword [esp + 0x30], ebx
jle 0x4816fa
cmp dword [esp + 0x30], ebx
jge 0x4816cd
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x351c0]
push eax
lea edx, [esp + 0x3536c]
call fcn.00437c7a
pop ecx
test eax, eax
jns 0x4816cd
push 0x1c36
lea ecx, [esp + 0x3536c]
call fcn.0048e6b5
pop ecx
mov esi, dword [esp + 0x3c]
push dword [esp + 0x2c]
mov ecx, esi
call fcn.00473933
pop ecx
push ebx
push 1
lea eax, [esp + 0x35370]
push eax
push esi
call fcn.00437cbe
add esp, 0x10
test eax, eax
jg 0x4816fa
call fcn.0043749f
mov eax, dword [esp + 0x3c]
call fcn.0043725b
push 0x10
call fcn.00467de9
cmp dword [esp + 0x48], 0x4b
pop ecx
jle 0x48175a
call fcn.00495492
test eax, eax
jne 0x48175a
mov esi, dword [esp + 0x10]
call fcn.0049ca28
push str.___PLEASE_GIVE_THIS_REPORT_TO_THE_MANAGER.__
push esi
call fcn.0049d11e
push dword [esp + 0x48]
push str._nThere_are__d_unregistered_invoices.
push esi
call fcn.0049d11e
add esp, 0x14
push str._nThis_is_more_than_can_be_printed_here.
push esi
call fcn.0049d11e
push str._nFor_a_complete_list__run_the_report_manually.
push esi
call fcn.0049d11e
add esp, 0x10
cmp dword [esp + 0x44], 2
jl 0x481796
push dword [esp + 0x48]
call fcn.004706b0
pop ecx
push eax
mov esi, str._nUnregistered_Invoice_Total___s
push esi
push dword [esp + 0x18]
call fcn.0049d11e
add esp, 0xc
push dword [esp + 0x48]
call fcn.004706b0
pop ecx
push eax
push esi
push dword [esp + 0x20]
call fcn.0049d11e
add esp, 0xc
push dword [esp + 0x58]
mov ecx, dword [esp + 0x38]
push ebx
push dword [esp + 0x34]
call fcn.0048029d
add esp, 0xc
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x48188f
mov edi, dword [eax]
mov dword [esp + 0x3c], edi
call fcn.0041b5fa
mov esi, 0x4b4404
push esi
push dword [esp + 0x14]
mov dword [esp + 0x38], eax
call fcn.0049d11e
push esi
push dword [esp + 0x24]
call fcn.0049d11e
add esp, 0x10
mov esi, str.EXCLUDED__F10__invoices_that_were_never_INCLUDED:
cmp edi, 2
jge 0x4817f1
mov esi, str.EXCLUDED__F10__invoice_that_was_never_INCLUDED:
push esi
push dword [esp + 0x14]
call fcn.0049d11e
push esi
push dword [esp + 0x24]
call fcn.0049d11e
add esp, 0x10
mov esi, 0x4afe8c
push esi
push dword [esp + 0x14]
call fcn.0049d11e
push esi
push dword [esp + 0x24]
call fcn.0049d11e
add esp, 0x10
xor esi, esi
cmp edi, ebx
jle 0x481885
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.0041bdf1
pop ecx
pop ecx
cmp eax, 0xc
jl 0x48185b
push str.__Final_Warning_
push dword [esp + 0x1c]
call fcn.0049d11e
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.004734b9
add dword [esp + 0x48], 0x90
mov esi, edi
add esp, 0x10
cmp esi, dword [esp + 0x3c]
jl 0x481835
push dword [esp + 0x20]
call fcn.00401a00
pop ecx
mov edi, str.MainPAULA.c
push edi
push 0x241e
xor ecx, ecx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x30], ebx
call fcn.0049c7e1
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x84]
pop ecx
pop ecx
mov dword [esp + 0x14], ebx
cmp eax, ebx
jle 0x481a4e
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 0x48191f
movzx eax, byte [esi + 0x2d]
push eax
call fcn.00455654
add esp, 4
test eax, eax
je 0x48191f
mov eax, dword [esi]
cmp eax, ebx
je 0x48191f
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.004734b9
add esp, 0x10
inc dword [esp + 0x14]
mov eax, dword [esp + 0x7c]
add esi, 0x90
cmp dword [esp + 0x14], eax
jl 0x4818c9
cmp dword [esp + 0x28], 2
jl 0x481a48
cmp dword [esp + 0x60], ebx
je 0x481a4e
push dword [esp + 0x60]
call fcn.004706b0
pop ecx
push eax
mov esi, str._nLate_Invoice_Total___s
push esi
push dword [esp + 0x38]
call fcn.0049d11e
add esp, 0xc
push dword [esp + 0x60]
call fcn.004706b0
pop ecx
push eax
push esi
push dword [esp + 0x54]
call fcn.0049d11e
add esp, 0xc
jmp 0x481a5b
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.004734b9
add esp, 0x10
jmp 0x481654
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.004734b9
lea eax, [esp + 0x48]
add esp, 0x10
push eax
call fcn.00465ee9
push eax
push 9
lea eax, [esp + 0x35584]
push 0x400
push eax
add esi, 0xffffffc8
call fcn.00457440
mov esi, dword [esp + 0x50]
add esp, 0x14
push dword [esp + 0x38]
lea eax, [esp + 0x3557c]
push eax
call fcn.0043787c
mov esi, dword [esp + 0x28]
pop ecx
pop ecx
mov dword [esp + 0x38], 1
jmp 0x481654
inc dword [esp + 0x64]
jmp 0x481656
cmp dword [esp + 0x60], ebx
jne 0x481a5b
mov esi, dword [esp + 0x30]
call fcn.0049ca28
mov dword [esp + 0x28], ebx
push edi
push 0x243c
xor ecx, ecx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x24], ebx
call fcn.0049c7e1
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x84]
pop ecx
pop ecx
mov dword [esp + 0x14], ebx
cmp eax, ebx
jle 0x481b44
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 0x481ae6
movzx eax, byte [esi + 0x2d]
push eax
call fcn.00455654
add esp, 4
test eax, eax
je 0x481ae6
mov eax, dword [esi]
cmp eax, ebx
je 0x481ae6
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.004734b9
add esp, 0x10
inc dword [esp + 0x14]
mov eax, dword [esp + 0x7c]
add esi, 0x90
cmp dword [esp + 0x14], eax
jl 0x481a90
cmp dword [esp + 0x1c], 2
jl 0x481b3e
cmp dword [esp + 0x5c], ebx
je 0x481b44
push dword [esp + 0x5c]
call fcn.004706b0
pop ecx
push eax
mov esi, str._nPrev_Day_Invoice_Total___s
push esi
push dword [esp + 0x28]
call fcn.0049d11e
add esp, 0xc
push dword [esp + 0x5c]
call fcn.004706b0
pop ecx
push eax
push esi
push dword [esp + 0x78]
call fcn.0049d11e
add esp, 0xc
jmp 0x481b51
cmp dword [esp + 0x5c], ebx
jne 0x481b51
mov esi, dword [esp + 0x20]
call fcn.0049ca28
mov dword [esp + 0x1c], ebx
push edi
push 0x245b
xor ecx, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.0049c7e1
mov dword [esp + 0x40], eax
lea eax, [esp + 0x74]
push eax
mov eax, dword [esp + 0x351b8]
call fcn.00456b79
add esp, 0xc
mov dword [esp + 0x70], eax
cmp eax, ebx
je 0x482094
push dword [esp + 0x78]
call fcn.0041b05a
pop ecx
test eax, eax
je 0x481c2f
mov edi, dword [esp + 0x6c]
dec edi
cmp edi, ebx
jl 0x481c2f
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.0041bdf1
pop ecx
pop ecx
cmp eax, ebx
jle 0x481c24
cmp eax, 2
jg 0x481c2f
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 0x481c24
movzx eax, byte [esi - 2]
push eax
call fcn.00455654
add esp, 4
test eax, eax
je 0x481c24
mov eax, dword [esi - 0x2f]
cmp eax, ebx
je 0x481c24
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.004734b9
add esp, 0x10
dec edi
sub esi, 0x90
cmp edi, ebx
jge 0x481bb9
mov eax, dword [esp + 0x351ac]
call fcn.00456b47
cmp dword [esp + 0x18], 2
jl 0x48208a
cmp dword [esp + 0x14], ebx
je 0x482094
push dword [esp + 0x14]
call fcn.004706b0
pop ecx
push eax
mov esi, str._nEarly_Invoice_Total___s
push esi
push dword [esp + 0x40]
call fcn.0049d11e
add esp, 0xc
push dword [esp + 0x14]
call fcn.004706b0
pop ecx
push eax
push esi
push dword [esp + 0x2c]
call fcn.0049d11e
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 0x4bbdfc
mov esi, 0x5d68f8
push esi
call fcn.00401954
mov dword [0x5d6938], esi
mov dword [0x5d6934], 0x4e3938
mov eax, dword [edi + 0x206c]
mov dword [0x5d6924], eax
mov eax, dword [edi + 0x2150]
mov dword [0x5d6918], eax
mov eax, dword [edi + 0x215c]
mov dword [0x5d691c], eax
mov eax, dword [edi + 0x2160]
mov dword [0x5d6920], eax
lea eax, [edi + 0x1094]
mov dword [0x5d6928], eax
lea eax, [edi + 0x149c]
mov dword [0x5d692c], eax
mov eax, dword [esp + 0x7c]
mov dword [0x5d6930], eax
mov eax, dword [esp + 0x24]
add esp, 0x14
push dword [esp + 0x74]
mov dword [0x5d693c], eax
lea eax, [esp + 0x7c]
push eax
mov ecx, edi
mov dword [0x5d694c], 1
call fcn.00479078
pop ecx
pop ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x4c], ebx
cmp eax, ebx
je 0x481daa
mov esi, eax
call fcn.0049cf28
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x481da1
cmp dword [esp + 0x40], ebx
jle 0x481d58
cmp dword [esp + 0x48], ebx
jne 0x481d7a
mov esi, dword [esp + 0x10]
call fcn.0049ca28
push str.___PLEASE_GIVE_THIS_REPORT_TO_THE_MANAGER.___n
push esi
call fcn.0049d11e
push str.The_issue_below_needs_attention:
push esi
call fcn.0049d11e
add esp, 0x10
push dword [esp + 0x24]
push 0x4b06bc
push dword [esp + 0x18]
call fcn.0049d11e
add esp, 0xc
push dword [esp + 0x24]
call fcn.00401a00
pop ecx
mov dword [esp + 0x4c], 1
mov eax, dword [esp + 0x6c]
call fcn.0049c95e
mov dword [esp + 0x3c], ebx
cmp dword [esp + 0x28], ebx
jle 0x481e33
cmp dword [esp + 0x60], ebx
je 0x481e33
mov esi, dword [esp + 0x30]
call fcn.0049cf28
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x481e33
cmp dword [esp + 0x40], ebx
jle 0x481dd7
cmp dword [esp + 0x48], ebx
jne 0x481df3
cmp dword [esp + 0x4c], ebx
jne 0x481df3
mov esi, dword [esp + 0x10]
call fcn.0049ca28
push str.___PLEASE_GIVE_THIS_REPORT_TO_THE_MANAGER.__
push esi
call fcn.0049d11e
pop ecx
pop ecx
xor esi, esi
inc esi
cmp dword [esp + 0x28], esi
jne 0x4820aa
push str._nThis_invoice_was_billed_after_TAMS_shutdown:
push dword [esp + 0x14]
call fcn.0049d11e
pop ecx
pop ecx
push dword [esp + 0x24]
push 0x4b06bc
push dword [esp + 0x18]
call fcn.0049d11e
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 0x481e40
call fcn.0049c95e
mov dword [esp + 0x30], ebx
cmp dword [esp + 0x1c], ebx
jle 0x481ed3
cmp dword [esp + 0x5c], ebx
je 0x481ed3
mov esi, dword [esp + 0x20]
call fcn.0049cf28
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x481ed3
cmp dword [esp + 0x40], ebx
jle 0x481e71
cmp dword [esp + 0x48], ebx
jne 0x481e93
cmp dword [esp + 0x4c], ebx
jne 0x481e93
cmp dword [esp + 0x3c], ebx
jne 0x481e93
mov esi, dword [esp + 0x10]
call fcn.0049ca28
push str.___PLEASE_GIVE_THIS_REPORT_TO_THE_MANAGER.__
push esi
call fcn.0049d11e
pop ecx
pop ecx
xor esi, esi
inc esi
cmp dword [esp + 0x1c], esi
jne 0x4820f7
push str._nThis_invoice_belongs_to_previous_accnting_day:
push dword [esp + 0x14]
call fcn.0049d11e
pop ecx
pop ecx
push dword [esp + 0x24]
push 0x4b06bc
push dword [esp + 0x18]
call fcn.0049d11e
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 0x481ee0
call fcn.0049c95e
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x18], ebx
jle 0x481f7d
cmp dword [esp + 0x14], ebx
je 0x481f7d
mov esi, dword [esp + 0x38]
call fcn.0049cf28
mov dword [esp + 0x24], eax
cmp eax, ebx
je 0x481f7d
cmp dword [esp + 0x40], ebx
jle 0x481f15
cmp dword [esp + 0x48], ebx
jne 0x481f3d
cmp dword [esp + 0x4c], ebx
jne 0x481f3d
cmp dword [esp + 0x3c], ebx
jne 0x481f3d
cmp dword [esp + 0x30], ebx
jne 0x481f3d
mov esi, dword [esp + 0x10]
call fcn.0049ca28
push str.___PLEASE_GIVE_THIS_REPORT_TO_THE_MANAGER.__
push esi
call fcn.0049d11e
pop ecx
pop ecx
xor esi, esi
inc esi
cmp dword [esp + 0x18], esi
jne 0x482144
push str._nThis_invoice_was_billed_before_new_day_started:
push dword [esp + 0x14]
call fcn.0049d11e
pop ecx
pop ecx
push dword [esp + 0x24]
push 0x4b06bc
push dword [esp + 0x18]
call fcn.0049d11e
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 0x481f8a
call fcn.0049c95e
cmp dword [esp + 0x40], ebx
jle 0x481f9a
cmp dword [esp + 0x48], ebx
jne 0x482272
cmp dword [esp + 0x4c], ebx
jne 0x482272
cmp dword [esp + 0x3c], ebx
jne 0x482272
cmp dword [esp + 0x30], ebx
jne 0x482272
cmp dword [esp + 0x20], ebx
jne 0x482272
mov eax, dword [esp + 0x68]
call fcn.0049c95e
mov eax, dword [esp + 0x10]
call fcn.0049c95e
push str._n_nThe_day_is_in_balance_
call fcn.00496619
pop ecx
call fcn.00495492
test eax, eax
je 0x482242
cmp dword [esp + 0x58], ebx
jne 0x482242
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.0044419c
mov dword [esp + 0x24], eax
mov eax, edi
call fcn.004446eb
mov esi, eax
cmp esi, ebx
jle 0x4821ba
mov edi, 0x800
mov eax, dword [esp + 0x34]
mov ecx, esi
call fcn.00470ca4
mov ecx, dword [esp + 0x34]
call fcn.00470c78
mov edx, eax
call fcn.00439c75
push esi
test eax, eax
jne 0x482191
mov eax, dword [esp + 0x38]
mov ecx, esi
call fcn.00470ca4
mov ecx, dword [esp + 0x38]
call fcn.00470c78
push eax
push str._n_r______s__d
lea eax, [esp + 0x35584]
push edi
push eax
call fcn.00439336
add esp, 0x14
jmp 0x4821a7
cmp dword [esp + 0x14], ebx
jne 0x481c85
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
call fcn.0049ca28
mov dword [esp + 0x18], ebx
jmp 0x481c89
push str._nThese_invoices_were_billed_after_TAMS_shutdown:
push dword [esp + 0x14]
call fcn.0049d11e
cmp dword [esp + 0x30], 0x16
pop ecx
pop ecx
jle 0x481e10
push str._nThere_are_too_many_invoices_to_list.
push dword [esp + 0x14]
call fcn.0049d11e
push str._nTAMS_End_Of_Day_was_run_mid_day.
push dword [esp + 0x1c]
call fcn.0049d11e
push str._nYour_day_will_not_balance.
push dword [esp + 0x24]
call fcn.0049d11e
add esp, 0x18
jmp 0x481e25
push str._nThese_invoices_belong_to_previous_accnting_day:
push dword [esp + 0x14]
call fcn.0049d11e
cmp dword [esp + 0x24], 0x16
pop ecx
pop ecx
jle 0x481eb0
push str._nThere_are_too_many_invoices_to_list.
push dword [esp + 0x14]
call fcn.0049d11e
push str._nTAMS_End_Of_Day_was_run_mid_day.
push dword [esp + 0x1c]
call fcn.0049d11e
push str._nYour_day_will_not_balance.
push dword [esp + 0x24]
call fcn.0049d11e
add esp, 0x18
jmp 0x481ec5
push str._nThese_invoices_were_billed_before_start_of_day:
push dword [esp + 0x14]
call fcn.0049d11e
cmp dword [esp + 0x20], 0x16
pop ecx
pop ecx
jle 0x481f5a
push str._nThere_are_too_many_invoices_to_list.
push dword [esp + 0x14]
call fcn.0049d11e
push str._nTAMS_End_Of_Day_was_not_run_yesterday.
push dword [esp + 0x1c]
call fcn.0049d11e
push str._nYour_day_will_not_balance.
push dword [esp + 0x24]
call fcn.0049d11e
add esp, 0x18
jmp 0x481f6f
push str._n_r_____UNKNOWN_EMP__d
lea eax, [esp + 0x35580]
push edi
push eax
call fcn.00439336
add esp, 0x10
mov eax, dword [esp + 0x50]
call fcn.004446eb
mov esi, eax
cmp esi, ebx
jg 0x482036
cmp dword [esp + 0x24], 1
jle 0x4821e9
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.0048a381
add esp, 0x20
jmp 0x482237
lea edx, [esp + 0x35578]
call fcn.00439c75
test eax, eax
jne 0x48221d
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.0048a381
add esp, 0x1c
jmp 0x482237
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.0048a381
add esp, 0x18
push 0x7d0
call fcn.00489893
pop ecx
mov esi, dword [esp + 0x50]
cmp esi, ebx
je 0x48224f
call fcn.004442eb
push ebx
push 0xffffffffffffffff
call fcn.004976b8
pop ecx
pop ecx
cmp dword [esp + 0x54], ebx
jne 0x48226b
mov eax, dword [esp + 0x351ac]
call fcn.00456a35
xor eax, eax
jmp 0x481037
mov esi, dword [esp + 0x50]
cmp esi, ebx
je 0x48227f
call fcn.004442eb
call fcn.00495492
mov esi, eax
cmp esi, ebx
jne 0x48235a
mov ecx, dword [esp + 0x44]
cmp ecx, ebx
jle 0x482321
mov edx, dword [esp + 0x64]
fild dword [esp + 0x64]
lea eax, [edx + ecx]
mov dword [esp + 0x74], eax
fidiv dword [esp + 0x74]
fcomp qword [0x4dee90]
fnstsw ax
test ah, 5
jp 0x482321
cmp edx, 2
jl 0x4822c4
cmp ecx, 0xa
jle 0x482321
mov eax, dword [esp + 0x68]
call fcn.0049c95e
mov eax, dword [esp + 0x10]
call fcn.0049c95e
call fcn.00495492
test eax, eax
je 0x4822fc
cmp dword [esp + 0x58], ebx
jne 0x4822fc
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.0048a381
add esp, 0x18
push ebx
push 0xffffffffffffffff
call fcn.004976b8
pop ecx
pop ecx
cmp dword [esp + 0x54], ebx
jne 0x482318
mov eax, dword [esp + 0x351ac]
call fcn.00456a35
mov eax, dword [esp + 0x40]
jmp 0x481037
cmp ecx, 0x4b
jl 0x482352
cmp dword [esp + 0x4c], ebx
jne 0x482352
cmp dword [esp + 0x3c], ebx
jne 0x482352
cmp dword [esp + 0x30], ebx
jne 0x482352
cmp dword [esp + 0x20], ebx
jne 0x482352
mov eax, dword [esp + 0x68]
call fcn.0049c95e
mov eax, dword [esp + 0x10]
call fcn.0049c95e
jmp 0x4822fc
cmp esi, ebx
je 0x482498
cmp dword [esp + 0x58], ebx
jne 0x48245b
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 0x4bbe18
push esi
call fcn.0049d11e
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.0049d11e
add esp, 0x1c
cmp dword [esp + 0x40], 1
jg 0x4823c3
push 0x4ae7fc
push esi
call fcn.0049d11e
pop ecx
pop ecx
jmp 0x4823dc
push dword [esp + 0x48]
call fcn.004706b0
pop ecx
push eax
push str.s_totaling__s.
push esi
call fcn.0049d11e
add esp, 0xc
mov esi, dword [esp + 0x10]
push ebx
lea eax, [esp + 0x35264]
call fcn.0049d350
mov eax, dword [esp + 0x6c]
pop ecx
call fcn.0049c95e
mov eax, esi
call fcn.0049c95e
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 0x4bcca0
call fcn.00496060
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.00496619
lea eax, [esp + 0x351ec]
add esp, 0xc
push eax
call fcn.00496060
mov dword [esp], 0x3a98
call fcn.00489893
pop ecx
push ebx
push 0xffffffffffffffff
call fcn.004976b8
pop ecx
pop ecx
cmp dword [esp + 0x40], ebx
jne 0x482306
cmp dword [esp + 0x4c], ebx
jne 0x48248b
cmp dword [esp + 0x3c], ebx
jne 0x48248b
cmp dword [esp + 0x30], ebx
jne 0x48248b
cmp dword [esp + 0x20], ebx
je 0x482306
mov dword [esp + 0x40], 1
jmp 0x482306
cmp dword [esp + 0x58], ebx
jne 0x48245b
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.00469e9a
pop ecx
pop ecx
push eax
push ecx
call fcn.0041d1b8
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.0045531b
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.004392ef
mov esi, dword [esp + 0x94]
add esp, 0x2c
push 1
lea eax, [esp + 0x35474]
call fcn.0049d350
mov esi, dword [esp + 0x14]
pop ecx
push 1
lea eax, [esp + 0x35474]
call fcn.0049d350
pop ecx
cmp dword [esp + 0x351a8], ebx
jne 0x48245b
mov eax, dword [0x5d6948]
cmp eax, 0xa
jne 0x48256e
mov edi, dword [edi + 0x214c]
cmp dword [0x5d6918], edi
je 0x48245b
cmp edi, ebx
jle 0x48245b
mov dword [0x5d6918], edi
cmp eax, 0x64
jb 0x482578
cmp eax, 0x6e
jbe 0x482581
cmp eax, 0xb
jne 0x48245b
push ebx
push 0xffffffffffffffff
call fcn.004976b8
pop ecx
pop ecx
cmp dword [esp + 0x54], ebx
jne 0x481034
jmp 0x48115f