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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x358ec
call fcn.004115d0
mov eax, dword [0x4d82d4]
xor eax, esp
mov dword [esp + 0x358e8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x18]
push ebx
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x20]
push edi
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x24]
mov edi, 0x103
push edi
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x353ed]
mov ebx, ecx
push 0
push eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x5c], esi
mov byte [esp + 0x353f4], 0
call fcn.00401f80
add esp, 0xc
xor eax, eax
push 0x35146
push eax
mov word [esp + 0x78], ax
lea eax, [esp + 0x7a]
push eax
call fcn.00401f80
and dword [esp + 0x74], 0
add esp, 0xc
push edi
lea eax, [esp + 0x351dd]
push 0
push eax
mov byte [esp + 0x351e4], 0
call fcn.00401f80
and dword [esp + 0x34], 0
add esp, 0xc
push 7
pop ecx
mov byte [esp + 0x351b8], 0
xor eax, eax
lea edi, [esp + 0x351b9]
rep stosd dword es:[edi], eax
push 0x50
stosw word es:[edi], ax
push 0
push 0x5c8e68
stosb byte es:[edi], al
call fcn.00401f80
add esp, 0xc
push esi
call fcn.0041bf5e
add esp, 4
test eax, eax
jne 0x47e848
xor edi, edi
cmp ebx, edi
je 0x47e848
push 0x35148
lea eax, [esp + 0x74]
push edi
push eax
call fcn.00401f80
add esp, 0xc
lea eax, [esp + 0x353e8]
call fcn.00438b7b
push edi
push 0xffffffffffffffff
push 0xffededee
push dword [ebx + 0xd90]
push str.PaulaEmpConfig.cfg
push ebx
call fcn.0047ce69
add esp, 0x18
test eax, eax
jne 0x47e860
cmp dword [esp + 0x60], edi
jne 0x47e848
push edi
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 edi
push edi
push edi
push 1
call fcn.0048681d
add esp, 0x1c
or eax, 0xffffffff
mov ecx, dword [esp + 0x358f4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401317
mov esp, ebp
pop ebp
ret
mov al, byte [esp + 0x53]
mov byte [esp + 0x73], al
mov al, byte [esp + 0x52]
mov edi, 0xde
push esi
mov ecx, ebx
mov byte [esp + 0x76], al
mov word [esp + 0x74], si
mov dword [esp + 0x35190], edi
call fcn.0046f340
pop ecx
test eax, eax
jne 0x47e899
mov dword [esp + 0x35194], 1
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x78]
call fcn.0045ea09
pop ecx
pop ecx
test eax, eax
je 0x47e8ed
push esi
mov ecx, ebx
call fcn.0046f340
pop ecx
test eax, eax
jne 0x47e8c3
mov dword [esp + 0x35194], 1
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x78]
mov dword [esp + 0x35194], edi
call fcn.0045ea09
pop ecx
pop ecx
test eax, eax
je 0x47e8ed
mov eax, dword [esp + 0x351a4]
call fcn.004558c9
jmp 0x47e848
push 0x3a98
call fcn.0045990c
mov esi, dword [esp + 0x4c]
pop ecx
test esi, esi
je 0x47e90b
lea eax, [esp + 0x70]
push eax
call fcn.00459957
pop ecx
push str.MainPAULA.c
push 0x2328
xor ecx, ecx
call fcn.0049b040
mov esi, eax
push str.__Missing_Invoice_Report__
push esi
mov dword [esp + 0x6c], esi
call fcn.0049b97d
push 0x4b44c4
push esi
call fcn.0049b97d
movzx eax, byte [esp + 0x8b]
movzx ecx, word [esp + 0x88]
push eax
movzx eax, byte [esp + 0x8e]
call fcn.0041bdc7
add esp, 0x1c
call fcn.00438422
push eax
push str._n____s_will_NOT_balance__
push esi
call fcn.0049b97d
add esp, 0xc
push 0x4b4504
push esi
call fcn.0049b97d
xor ebx, ebx
pop ecx
xor esi, esi
xor edx, edx
pop ecx
mov dword [esp + 0x54], ebx
cmp dword [esp + 0x74], ebx
jle 0x47e9c7
xor edi, edi
lea ecx, [esp + 0xad]
inc edi
cmp word [ecx + 7], bx
jg 0x47e9b4
movzx eax, byte [ecx]
push eax
call fcn.004544e8
add esp, 4
test eax, eax
je 0x47e9b4
cmp dword [ecx - 0x2d], ebx
je 0x47e9b4
inc esi
cmp esi, edi
jg 0x47e9c3
inc edx
add ecx, 0x90
cmp edx, dword [esp + 0x74]
jl 0x47e994
jmp 0x47e9c7
mov dword [esp + 0x54], edi
call fcn.004439f3
mov dword [esp + 0x58], eax
call fcn.004439f3
mov dword [esp + 0x20], eax
call fcn.004439f3
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x74], ebx
jle 0x47eaa9
lea esi, [esp + 0xb0]
mov ecx, dword [esi - 0x30]
test ecx, ecx
je 0x47ea91
movzx eax, byte [esi - 3]
push eax
call fcn.004544e8
add esp, 4
test eax, eax
je 0x47ea91
movzx eax, word [esi + 4]
push 1
push ecx
test ax, ax
jle 0x47ea2b
mov edi, dword [esp + 0x60]
cwde
call fcn.00443d23
jmp 0x47ea8f
movsx eax, word [esi]
mov edi, dword [esp + 0x28]
call fcn.00443d23
cmp byte [esi - 2], 0
movsx ebx, word [esi]
mov edi, dword [esp + 0x2c]
pop ecx
pop ecx
je 0x47ea68
call fcn.00443b85
test eax, eax
jne 0x47ea58
push 1
movsx eax, word [esi]
push 1
jmp 0x47ea24
movsx ebx, word [esi]
call fcn.00443ad0
test eax, eax
je 0x47ea91
push 0
jmp 0x47ea51
call fcn.00443b85
test eax, eax
jne 0x47ea84
push 1
push eax
movsx eax, word [esi]
push eax
mov ebx, edi
call fcn.00443999
add esp, 0xc
jmp 0x47ea91
movsx ebx, word [esi]
push 0
push edi
call fcn.00443b27
pop ecx
pop ecx
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
add esi, 0x90
cmp eax, dword [esp + 0x74]
jl 0x47e9f7
mov esi, str.MainPAULA.c
push esi
push 0x2370
xor ecx, ecx
call fcn.0049b040
mov ebx, eax
xor edi, edi
pop ecx
pop ecx
mov dword [esp + 0xc], ebx
cmp ebx, edi
jne 0x47eb12
cmp dword [esp + 0x48], edi
jne 0x47eae2
mov eax, dword [esp + 0x351a4]
call fcn.004558c9
mov dword [esp + 0x351a4], edi
mov esi, dword [esp + 0x58]
cmp esi, edi
je 0x47eaef
call fcn.004439b6
mov esi, dword [esp + 0x20]
cmp esi, edi
je 0x47eafc
call fcn.004439b6
mov esi, dword [esp + 0x24]
cmp esi, edi
je 0x47e848
call fcn.004439b6
jmp 0x47e848
push str.___PLEASE_GIVE_THIS_REPORT_TO_THE_MANAGER.___n
push ebx
call fcn.0049b97d
pop ecx
pop ecx
cmp dword [esp + 0x54], edi
jne 0x47eb2c
push str.This_INV_has_NOT_been_registered_with_PAULA:
jmp 0x47eb31
push str.These_INV_have_NOT_been_registered_with_PAULA:
push ebx
call fcn.0049b97d
pop ecx
pop ecx
push 0x2383
mov ecx, esi
call fcn.00436c8e
mov dword [esp + 0x34], eax
movzx eax, byte [esp + 0x77]
pop ecx
push eax
movzx eax, byte [esp + 0x76]
push eax
movzx eax, word [esp + 0x78]
push eax
push str._04d_02d_02d
lea eax, [esp + 0x351c8]
push 0x20
push eax
call fcn.004392d1
push 0x2385
push esi
push 0x10
call fcn.0046a2c9
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x351dc]
add esp, 0x24
push eax
lea edx, [esp + 0x351dc]
call fcn.00437ad3
pop ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x14], edi
cmp dword [esp + 0x74], edi
jle 0x47edfd
lea esi, [esp + 0xb0]
mov dword [esp + 0x18], esi
mov ecx, dword [esi - 0x30]
test ecx, ecx
je 0x47ede1
movzx eax, byte [esi - 3]
push eax
call fcn.004544e8
add esp, 4
test eax, eax
je 0x47ede1
cmp word [esi + 4], 0
jg 0x47eddd
movsx ebx, word [esi]
mov edi, dword [esp + 0x24]
inc dword [esp + 0x2c]
add dword [esp + 0x40], ecx
call fcn.00443ad0
cmp eax, 7
jb 0x47ed4c
movsx ebx, word [esi]
mov edi, dword [esp + 0x58]
call fcn.00443ad0
test eax, eax
jne 0x47ed23
movsx ebx, word [esi]
mov edi, dword [esp + 0x20]
call fcn.00443ad0
test eax, eax
je 0x47ede1
movsx ebx, word [esi]
inc dword [esp + 0x34]
call fcn.00443ad0
push eax
call fcn.0046ebd0
movsx ebx, word [esi]
mov edi, dword [esp + 0x28]
pop ecx
push eax
call fcn.00443ad0
push eax
movsx eax, word [esi]
mov edi, dword [esp + 0x18]
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 + 0x4c]
push str._3d__________02d__02d__04d__Employee__d_ran__d_UNREGISTERED_ROAs_totaling__s._n
push edi
call fcn.0049b97d
add esp, 0x24
push str._____Note_that_ROAs_may_be_entered_in_PAULA_without_a_till_by
push edi
call fcn.0049b97d
mov eax, dword [esp + 0x40]
cmp dword [eax + 0x2198], 0
pop ecx
pop ecx
jne 0x47ecb9
push str.preceding_your_employee_number_n
push edi
call fcn.0049b97d
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.0049b97d
add esp, 0x14
jmp 0x47ecc6
push str.entering_0_for_your_till_number._n
push edi
call fcn.0049b97d
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.0049b97d
movsx ebx, word [esi]
mov edi, dword [esp + 0x2c]
add esp, 0xc
call fcn.00443ad0
push eax
call fcn.0046ebd0
movsx ebx, word [esi]
mov edi, dword [esp + 0x28]
pop ecx
push eax
call fcn.00443ad0
push eax
movsx eax, word [esi]
push eax
push str._nEmp__d_ran__d_UNREGISTERED_ROAs:__s
push dword [esp + 0x1c]
call fcn.0049b97d
movsx ebx, word [esi]
add esp, 0x14
push 0
push dword [esp + 0x24]
call fcn.00443b27
pop ecx
pop ecx
jmp 0x47ede1
push dword [esp + 0x10]
inc dword [esp + 0x38]
push dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x3c]
lea eax, [esp + 0x84]
push eax
call fcn.00471a08
add esp, 0x10
jmp 0x47ede1
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x354f5]
push ebx
push eax
mov byte [esp + 0x354fc], bl
call fcn.00401f80
mov ecx, dword [esp + 0x20]
add esp, 0xc
push dword [esp + 0x10]
inc dword [esp + 0x38]
push dword [esp + 0x10]
lea eax, [esp + 0x80]
push dword [esp + 0x3c]
mov dword [esp + 0x34], ebx
push eax
call fcn.00471a08
lea eax, [esp + 0x38]
add esp, 0x10
push eax
call fcn.00464825
push eax
push 9
lea eax, [esp + 0x354fc]
push 0x400
push eax
add esi, 0xffffffc8
call fcn.004562d4
mov esi, dword [esp + 0x44]
add esp, 0x14
push dword [esp + 0x28]
lea eax, [esp + 0x354f4]
push eax
call fcn.00437450
mov esi, dword [esp + 0x20]
pop ecx
pop ecx
mov dword [esp + 0x28], 1
jmp 0x47ede1
inc dword [esp + 0x54]
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
add esi, 0x90
mov dword [esp + 0x18], esi
cmp eax, dword [esp + 0x74]
jl 0x47ebc6
mov esi, dword [esp + 0x20]
xor ebx, ebx
cmp esi, ebx
je 0x47ee0c
call fcn.004439b6
mov esi, dword [esp + 0x24]
cmp esi, ebx
je 0x47ee19
call fcn.004439b6
cmp dword [esp + 0x28], ebx
jne 0x47ee25
cmp dword [esp + 0x1c], ebx
jle 0x47ee87
cmp dword [esp + 0x1c], ebx
jge 0x47ee5a
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x351b8]
push eax
lea edx, [esp + 0x351dc]
call fcn.00437ad3
pop ecx
test eax, eax
jns 0x47ee5a
push 0x1c36
lea ecx, [esp + 0x351dc]
call fcn.0048c0f2
pop ecx
mov esi, dword [esp + 0x30]
push dword [esp + 0x50]
mov ecx, esi
call fcn.00471f36
pop ecx
push ebx
push 1
lea eax, [esp + 0x351e0]
push eax
push esi
call fcn.00437b22
add esp, 0x10
test eax, eax
jg 0x47ee87
call fcn.00437073
mov eax, dword [esp + 0x30]
call fcn.00436e2f
push 0x10
call fcn.00466725
cmp dword [esp + 0x38], 0x4b
mov edi, dword [esp + 0x10]
pop ecx
jle 0x47eee0
mov esi, edi
call fcn.0049b287
push str.___PLEASE_GIVE_THIS_REPORT_TO_THE_MANAGER.__
push edi
call fcn.0049b97d
push dword [esp + 0x34]
push str._nThere_are__d_unregistered_invoices.
push edi
call fcn.0049b97d
add esp, 0x14
push str._nThis_is_more_than_can_be_printed_here.
push edi
call fcn.0049b97d
push str._nFor_a_complete_list__run_the_report_manually.
push edi
call fcn.0049b97d
add esp, 0x10
cmp dword [esp + 0x34], 2
jl 0x47ef19
push dword [esp + 0x40]
call fcn.0046ebd0
pop ecx
push eax
mov esi, str._nUnregistered_Invoice_Total___s
push esi
push edi
call fcn.0049b97d
add esp, 0xc
push dword [esp + 0x40]
call fcn.0046ebd0
pop ecx
push eax
push esi
push dword [esp + 0x18]
call fcn.0049b97d
add esp, 0xc
push dword [esp + 0x60]
mov ecx, dword [esp + 0x3c]
push ebx
push dword [esp + 0x58]
call fcn.0047dbc5
add esp, 0xc
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x47f003
mov ebx, dword [eax]
call fcn.0041c5ad
mov esi, 0x4ae6f0
push esi
push edi
mov dword [esp + 0x24], eax
call fcn.0049b97d
push esi
push dword [esp + 0x1c]
call fcn.0049b97d
add esp, 0x10
mov esi, str.EXCLUDED__F10__invoices_that_were_never_INCLUDED:
cmp ebx, 2
jge 0x47ef6d
mov esi, str.EXCLUDED__F10__invoice_that_was_never_INCLUDED:
push esi
push edi
call fcn.0049b97d
push esi
push dword [esp + 0x1c]
call fcn.0049b97d
add esp, 0x10
mov esi, 0x4a9914
push esi
push edi
call fcn.0049b97d
push esi
push dword [esp + 0x1c]
call fcn.0049b97d
add esp, 0x10
xor esi, esi
test ebx, ebx
jle 0x47eff9
mov eax, dword [esp + 0x18]
add eax, 0x56
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
push dword [eax]
push dword [esp + 0x20]
call fcn.0041cda4
pop ecx
pop ecx
cmp eax, 0xc
jl 0x47efd1
push str.__Final_Warning_
push dword [esp + 0x14]
call fcn.0049b97d
pop ecx
pop ecx
push dword [esp + 0x10]
lea edi, [esi + 1]
push dword [esp + 0x10]
mov ecx, esi
push edi
push dword [esp + 0x24]
call fcn.00471a08
add dword [esp + 0x38], 0x90
mov esi, edi
add esp, 0x10
cmp esi, ebx
jl 0x47efab
push dword [esp + 0x18]
call fcn.00401a00
pop ecx
mov ebx, str.MainPAULA.c
xor edi, edi
push ebx
push 0x2418
xor ecx, ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], edi
call fcn.0049b040
pop ecx
pop ecx
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x74], edi
jle 0x47f0e7
lea esi, [esp + 0x80]
mov eax, dword [esp + 0x74]
mov cl, byte [esi + 0x2f]
cdq
sub eax, edx
sar eax, 1
imul eax, eax, 0x90
cmp cl, byte [esp + eax + 0xaf]
jbe 0x47f08e
movzx eax, byte [esi + 0x2d]
push eax
call fcn.004544e8
add esp, 4
test eax, eax
je 0x47f08e
mov eax, dword [esi]
test eax, eax
je 0x47f08e
push dword [esp + 0x3c]
inc dword [esp + 0x18]
push dword [esp + 0x20]
add dword [esp + 0x2c], eax
push dword [esp + 0x1c]
lea eax, [esp + 0x84]
push eax
mov ecx, edi
call fcn.00471a08
add esp, 0x10
inc edi
add esi, 0x90
cmp edi, dword [esp + 0x74]
jl 0x47f036
cmp dword [esp + 0x14], 2
jl 0x47f0e0
cmp dword [esp + 0x24], 0
je 0x47f0e7
push dword [esp + 0x24]
call fcn.0046ebd0
pop ecx
push eax
mov esi, str._nLate_Invoice_Total___s
push esi
push dword [esp + 0x24]
call fcn.0049b97d
add esp, 0xc
push dword [esp + 0x24]
call fcn.0046ebd0
pop ecx
push eax
push esi
push dword [esp + 0x44]
call fcn.0049b97d
add esp, 0xc
jmp 0x47f0f5
cmp dword [esp + 0x24], 0
jne 0x47f0f5
mov esi, dword [esp + 0x1c]
call fcn.0049b287
and dword [esp + 0x14], 0
xor edi, edi
push ebx
push 0x2436
xor ecx, ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x18], edi
call fcn.0049b040
pop ecx
pop ecx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x74], edi
jle 0x47f1d4
lea esi, [esp + 0x80]
mov eax, dword [esp + 0x74]
mov cl, byte [esi + 0x2f]
cdq
sub eax, edx
sar eax, 1
imul eax, eax, 0x90
cmp cl, byte [esp + eax + 0xaf]
jae 0x47f17b
movzx eax, byte [esi + 0x2d]
push eax
call fcn.004544e8
add esp, 4
test eax, eax
je 0x47f17b
mov eax, dword [esi]
test eax, eax
je 0x47f17b
push dword [esp + 0x6c]
inc dword [esp + 0x14]
push dword [esp + 0x1c]
add dword [esp + 0x54], eax
push dword [esp + 0x18]
lea eax, [esp + 0x84]
push eax
mov ecx, edi
call fcn.00471a08
add esp, 0x10
inc edi
add esi, 0x90
cmp edi, dword [esp + 0x74]
jl 0x47f123
cmp dword [esp + 0x10], 2
jl 0x47f1cd
cmp dword [esp + 0x4c], 0
je 0x47f1d4
push dword [esp + 0x4c]
call fcn.0046ebd0
pop ecx
push eax
mov esi, str._nPrev_Day_Invoice_Total___s
push esi
push dword [esp + 0x20]
call fcn.0049b97d
add esp, 0xc
push dword [esp + 0x4c]
call fcn.0046ebd0
pop ecx
push eax
push esi
push dword [esp + 0x74]
call fcn.0049b97d
add esp, 0xc
jmp 0x47f1e2
cmp dword [esp + 0x4c], 0
jne 0x47f1e2
mov esi, dword [esp + 0x18]
call fcn.0049b287
and dword [esp + 0x10], 0
and dword [esp + 0x3c], 0
and dword [esp + 0x20], 0
push ebx
push 0x2455
xor ecx, ecx
call fcn.0049b040
mov dword [esp + 0x30], eax
lea eax, [esp + 0x70]
push eax
mov eax, dword [esp + 0x351b0]
call fcn.00455a0d
mov edi, eax
add esp, 0xc
test edi, edi
je 0x47f309
push dword [esp + 0x70]
call fcn.0041c00d
pop ecx
test eax, eax
je 0x47f2b1
mov ebx, dword [esp + 0x68]
dec ebx
js 0x47f2b1
mov eax, ebx
imul eax, eax, 0x90
lea esi, [eax + edi + 0x37]
push dword [esi + 0x1f]
push dword [esp + 0x74]
call fcn.0041cda4
pop ecx
pop ecx
test eax, eax
jle 0x47f2a8
cmp eax, 2
jg 0x47f2b1
mov eax, dword [esp + 0x74]
mov cl, byte [esi]
cdq
sub eax, edx
sar eax, 1
imul eax, eax, 0x90
cmp cl, byte [esp + eax + 0xaf]
jne 0x47f2a8
movzx eax, byte [esi - 2]
push eax
call fcn.004544e8
add esp, 4
test eax, eax
je 0x47f2a8
mov eax, dword [esi - 0x2f]
test eax, eax
je 0x47f2a8
push dword [esp + 0x44]
inc dword [esp + 0x24]
push dword [esp + 0x2c]
add dword [esp + 0x44], eax
push dword [esp + 0x28]
mov ecx, ebx
push edi
call fcn.00471a08
add esp, 0x10
sub esi, 0x90
dec ebx
jns 0x47f240
mov eax, dword [esp + 0x351a4]
call fcn.004559db
cmp dword [esp + 0x20], 2
jl 0x47f302
cmp dword [esp + 0x3c], 0
je 0x47f309
push dword [esp + 0x3c]
call fcn.0046ebd0
pop ecx
push eax
mov esi, str._nEarly_Invoice_Total___s
push esi
push dword [esp + 0x30]
call fcn.0049b97d
add esp, 0xc
push dword [esp + 0x3c]
call fcn.0046ebd0
pop ecx
push eax
push esi
push dword [esp + 0x4c]
call fcn.0049b97d
add esp, 0xc
jmp 0x47f317
cmp dword [esp + 0x3c], 0
jne 0x47f317
mov esi, dword [esp + 0x28]
call fcn.0049b287
and dword [esp + 0x20], 0
movzx eax, word [esp + 0x70]
push eax
movzx eax, byte [esp + 0x77]
push eax
movzx eax, byte [esp + 0x7a]
push eax
push 0x4b4344
mov esi, 0x5c8e48
push esi
call fcn.00401954
mov ebx, dword [esp + 0x4c]
mov dword [0x5c8e88], esi
mov dword [0x5c8e84], 0x4d990c
mov eax, dword [ebx + 0x206c]
mov dword [0x5c8e74], eax
mov eax, dword [ebx + 0x2150]
mov dword [0x5c8e68], eax
mov eax, dword [ebx + 0x215c]
mov dword [0x5c8e6c], eax
mov eax, dword [ebx + 0x2160]
mov dword [0x5c8e70], eax
lea eax, [ebx + 0x1094]
mov dword [0x5c8e78], eax
lea eax, [ebx + 0x149c]
mov dword [0x5c8e7c], eax
mov eax, dword [esp + 0x70]
mov dword [0x5c8e80], eax
mov eax, dword [esp + 0x20]
add esp, 0x14
push dword [esp + 0x64]
mov dword [0x5c8e8c], eax
lea eax, [esp + 0x74]
push eax
mov ecx, ebx
mov dword [0x5c8e9c], 1
call fcn.00477349
and dword [esp + 0x40], 0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x47f438
mov esi, edi
call fcn.0049b787
mov dword [esp + 0x44], eax
test eax, eax
je 0x47f431
cmp dword [esp + 0x2c], 0
jle 0x47f3e8
cmp dword [esp + 0x40], 0
jne 0x47f40a
mov esi, dword [esp + 0xc]
call fcn.0049b287
push str.___PLEASE_GIVE_THIS_REPORT_TO_THE_MANAGER.___n
push esi
call fcn.0049b97d
push str.The_issue_below_needs_attention:
push esi
call fcn.0049b97d
add esp, 0x10
push dword [esp + 0x44]
push 0x4a9e64
push dword [esp + 0x14]
call fcn.0049b97d
add esp, 0xc
push dword [esp + 0x44]
call fcn.00401a00
pop ecx
mov dword [esp + 0x38], 1
mov eax, edi
call fcn.0049b1bd
xor edi, edi
mov dword [esp + 0x30], edi
cmp dword [esp + 0x14], edi
jle 0x47f4bf
cmp dword [esp + 0x24], edi
je 0x47f4bf
mov esi, dword [esp + 0x1c]
call fcn.0049b787
mov edi, eax
test edi, edi
je 0x47f4bd
xor eax, eax
cmp dword [esp + 0x2c], eax
jle 0x47f467
cmp dword [esp + 0x40], eax
jne 0x47f483
cmp dword [esp + 0x38], eax
jne 0x47f483
mov esi, dword [esp + 0xc]
call fcn.0049b287
push str.___PLEASE_GIVE_THIS_REPORT_TO_THE_MANAGER.__
push esi
call fcn.0049b97d
pop ecx
pop ecx
xor esi, esi
inc esi
cmp dword [esp + 0x14], esi
jne 0x47f682
push str._nThis_invoice_was_billed_after_TAMS_shutdown:
push dword [esp + 0x10]
call fcn.0049b97d
pop ecx
pop ecx
push edi
push 0x4a9e64
push dword [esp + 0x14]
call fcn.0049b97d
add esp, 0xc
push edi
call fcn.00401a00
pop ecx
mov dword [esp + 0x30], esi
xor edi, edi
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x47f4cc
call fcn.0049b1bd
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x10], edi
jle 0x47f55b
cmp dword [esp + 0x4c], edi
je 0x47f55b
mov esi, dword [esp + 0x18]
call fcn.0049b787
mov edi, eax
test edi, edi
je 0x47f559
xor eax, eax
cmp dword [esp + 0x2c], eax
jle 0x47f4fd
cmp dword [esp + 0x40], eax
jne 0x47f51f
cmp dword [esp + 0x38], eax
jne 0x47f51f
cmp dword [esp + 0x30], eax
jne 0x47f51f
mov esi, dword [esp + 0xc]
call fcn.0049b287
push str.___PLEASE_GIVE_THIS_REPORT_TO_THE_MANAGER.__
push esi
call fcn.0049b97d
pop ecx
pop ecx
xor esi, esi
inc esi
cmp dword [esp + 0x10], esi
jne 0x47f6cf
push str._nThis_invoice_belongs_to_previous_accnting_day:
push dword [esp + 0x10]
call fcn.0049b97d
pop ecx
pop ecx
push edi
push 0x4a9e64
push dword [esp + 0x14]
call fcn.0049b97d
add esp, 0xc
push edi
call fcn.00401a00
pop ecx
mov dword [esp + 0x1c], esi
xor edi, edi
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x47f568
call fcn.0049b1bd
mov dword [esp + 0x18], edi
cmp dword [esp + 0x20], edi
jle 0x47f605
cmp dword [esp + 0x3c], edi
je 0x47f605
mov esi, dword [esp + 0x28]
call fcn.0049b787
mov dword [esp + 0x44], eax
cmp eax, edi
je 0x47f605
cmp dword [esp + 0x2c], edi
jle 0x47f59d
cmp dword [esp + 0x40], edi
jne 0x47f5c5
cmp dword [esp + 0x38], edi
jne 0x47f5c5
cmp dword [esp + 0x30], edi
jne 0x47f5c5
cmp dword [esp + 0x1c], edi
jne 0x47f5c5
mov esi, dword [esp + 0xc]
call fcn.0049b287
push str.___PLEASE_GIVE_THIS_REPORT_TO_THE_MANAGER.__
push esi
call fcn.0049b97d
pop ecx
pop ecx
xor esi, esi
inc esi
cmp dword [esp + 0x20], esi
jne 0x47f71c
push str._nThis_invoice_was_billed_before_new_day_started:
push dword [esp + 0x10]
call fcn.0049b97d
pop ecx
pop ecx
push dword [esp + 0x44]
push 0x4a9e64
push dword [esp + 0x14]
call fcn.0049b97d
add esp, 0xc
push dword [esp + 0x44]
call fcn.00401a00
pop ecx
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x47f612
call fcn.0049b1bd
cmp dword [esp + 0x2c], edi
jle 0x47f622
cmp dword [esp + 0x40], edi
jne 0x47f769
cmp dword [esp + 0x38], edi
jne 0x47f769
cmp dword [esp + 0x30], edi
jne 0x47f769
cmp dword [esp + 0x1c], edi
jne 0x47f769
cmp dword [esp + 0x18], edi
jne 0x47f769
mov eax, dword [esp + 0x5c]
call fcn.0049b1bd
mov eax, dword [esp + 0xc]
call fcn.0049b1bd
mov esi, dword [esp + 0x58]
cmp esi, edi
je 0x47f669
call fcn.004439b6
cmp dword [esp + 0x48], edi
jne 0x47f67b
mov eax, dword [esp + 0x351a4]
call fcn.004558c9
xor eax, eax
jmp 0x47e84b
push str._nThese_invoices_were_billed_after_TAMS_shutdown:
push dword [esp + 0x10]
call fcn.0049b97d
cmp dword [esp + 0x1c], 0x16
pop ecx
pop ecx
jle 0x47f4a0
push str._nThere_are_too_many_invoices_to_list.
push dword [esp + 0x10]
call fcn.0049b97d
push str._nTAMS_End_Of_Day_was_run_mid_day.
push dword [esp + 0x18]
call fcn.0049b97d
push str._nYour_day_will_not_balance.
push dword [esp + 0x20]
call fcn.0049b97d
add esp, 0x18
jmp 0x47f4b2
push str._nThese_invoices_belong_to_previous_accnting_day:
push dword [esp + 0x10]
call fcn.0049b97d
cmp dword [esp + 0x18], 0x16
pop ecx
pop ecx
jle 0x47f53c
push str._nThere_are_too_many_invoices_to_list.
push dword [esp + 0x10]
call fcn.0049b97d
push str._nTAMS_End_Of_Day_was_run_mid_day.
push dword [esp + 0x18]
call fcn.0049b97d
push str._nYour_day_will_not_balance.
push dword [esp + 0x20]
call fcn.0049b97d
add esp, 0x18
jmp 0x47f54e
push str._nThese_invoices_were_billed_before_start_of_day:
push dword [esp + 0x10]
call fcn.0049b97d
cmp dword [esp + 0x28], 0x16
pop ecx
pop ecx
jle 0x47f5e2
push str._nThere_are_too_many_invoices_to_list.
push dword [esp + 0x10]
call fcn.0049b97d
push str._nTAMS_End_Of_Day_was_not_run_yesterday.
push dword [esp + 0x18]
call fcn.0049b97d
push str._nYour_day_will_not_balance.
push dword [esp + 0x20]
call fcn.0049b97d
add esp, 0x18
jmp 0x47f5f7
mov esi, dword [esp + 0x58]
cmp esi, edi
je 0x47f776
call fcn.004439b6
mov ecx, dword [esp + 0x34]
cmp ecx, edi
jle 0x47f7d5
mov edx, dword [esp + 0x54]
fild dword [esp + 0x54]
lea eax, [edx + ecx]
mov dword [esp + 0x64], eax
fidiv dword [esp + 0x64]
fcomp qword [0x4d44c0]
fnstsw ax
test ah, 5
jp 0x47f7d5
cmp edx, 2
jl 0x47f7a8
cmp ecx, 0xa
jle 0x47f7d5
mov eax, dword [esp + 0x5c]
call fcn.0049b1bd
mov eax, dword [esp + 0xc]
call fcn.0049b1bd
cmp dword [esp + 0x48], edi
jne 0x47f7cc
mov eax, dword [esp + 0x351a4]
call fcn.004558c9
mov eax, dword [esp + 0x2c]
jmp 0x47e84b
cmp ecx, 0x4b
jl 0x47f7f2
cmp dword [esp + 0x38], edi
jne 0x47f7f2
cmp dword [esp + 0x30], edi
jne 0x47f7f2
cmp dword [esp + 0x1c], edi
jne 0x47f7f2
cmp dword [esp + 0x18], edi
je 0x47f7a8
cmp dword [esp + 0x60], edi
jne 0x47f8df
push 0x103
lea eax, [esp + 0x352e5]
push edi
push eax
mov byte [esp + 0x352ec], 0
call fcn.00401f80
add esp, 0xc
push str._ProgLog.txt
push dword [ebx + 0x206c]
push edi
push edi
call fcn.004687b0
pop ecx
pop ecx
push eax
push ecx
call fcn.0041e16b
pop ecx
push eax
movzx eax, byte [esp + 0x63]
push eax
movzx eax, byte [esp + 0x66]
push eax
movzx eax, word [esp + 0x68]
push eax
push edi
push edi
call fcn.004541af
pop ecx
pop ecx
push eax
push str._s_04d__02d__02d_UNREGISTERED_INVOICES___s__s___d_s
lea eax, [esp + 0x35304]
push 0x104
push eax
call fcn.004392d1
mov esi, dword [esp + 0x88]
add esp, 0x2c
push 1
lea eax, [esp + 0x352e4]
call fcn.0049bc98
mov esi, dword [esp + 0x10]
pop ecx
push 1
lea eax, [esp + 0x352e4]
call fcn.0049bc98
pop ecx
cmp dword [esp + 0x351a0], edi
jne 0x47f8df
mov ecx, dword [0x5c8e98]
cmp ecx, 0xa
jne 0x47f8c1
mov eax, dword [ebx + 0x214c]
cmp dword [0x5c8e68], eax
je 0x47f8df
cmp eax, edi
jle 0x47f8df
mov dword [0x5c8e68], eax
cmp ecx, 0x64
jb 0x47f8cb
cmp ecx, 0x6e
jbe 0x47f8d0
cmp ecx, 0xb
jne 0x47f8df
cmp dword [esp + 0x48], edi
jne 0x47e848
jmp 0x47e8dc
cmp dword [esp + 0x2c], edi
jne 0x47f7ba
cmp dword [esp + 0x38], edi
jne 0x47f905
cmp dword [esp + 0x30], edi
jne 0x47f905
cmp dword [esp + 0x1c], edi
jne 0x47f905
cmp dword [esp + 0x18], edi
je 0x47f7ba
mov dword [esp + 0x2c], 1
jmp 0x47f7ba