Function at 0x4985c4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x39c
mov eax, dword [0x55f900]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x35c], eax
xor eax, eax
push 0x32
push eax
mov dword [ebp - 0x358], eax
mov dword [ebp - 0x378], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x390], ebx
mov dword [ebp - 0x394], edi
call fcn.004c37f0
push 0x104
xor esi, esi
lea eax, [ebp - 0x240]
push esi
push eax
call fcn.004c37f0
push 0x104
lea eax, [ebp - 0x344]
push esi
push eax
call fcn.004c37f0
add esp, 0x24
mov dword [ebp - 0x39c], esi
test ebx, ebx
je 0x498a23
test edi, edi
js 0x498652
cmp edi, dword [ebx]
jge 0x498a23
push ebx
call fcn.0043be8a
mov dword [ebp - 0x364], eax
pop ecx
test eax, eax
jns 0x49866a
mov eax, 0x52c4d8
jmp 0x498677
push dword [ebx + eax*4 + 0x198]
call fcn.0048b724
pop ecx
push 0x32
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0048dd2a
add esp, 0xc
call fcn.0040b9bd
test eax, eax
jne 0x498a23
lea eax, [ebp - 0x240]
xor esi, esi
and dword [ebp - 0x388], esi
push eax
mov dword [ebp - 0x368], esi
call fcn.0048b21b
lea eax, [ebp - 0x344]
push eax
call fcn.0048b21b
push 0x2710
push dword [ebp - 0x35c]
call fcn.0041fcaf
add esp, 0x10
test eax, eax
je 0x498892
mov esi, dword [ebp - 0x35c]
lea eax, [ebp - 0x344]
push 0x104
push esi
push eax
call fcn.0048dd2a
lea eax, [ebp - 0x344]
push eax
call fcn.0048ce46
push 0x104
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0048dd2a
push 0
push 0
call fcn.0046aa0e
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0048c896
add esp, 0x2c
lea eax, [ebp - 0x344]
push eax
push 0
push 0
call fcn.0046aa0e
pop ecx
pop ecx
push eax
push esi
call fcn.00403819
add esp, 0xc
test eax, eax
jg 0x49884a
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x19
call esi
lea eax, [ebp - 0x240]
push eax
call fcn.004208fc
lea eax, [ebp - 0x240]
push eax
call fcn.0041f8c8
pop ecx
pop ecx
push 0xf
call esi
lea eax, [ebp - 0x344]
push eax
push 0
push 0
call fcn.0046aa0e
pop ecx
pop ecx
push eax
push dword [ebp - 0x35c]
call fcn.00403819
add esp, 0xc
test eax, eax
jg 0x49884a
xor eax, eax
lea edi, [ebp - 0x354]
stosd dword es:[edi], eax
push 0x478
push str.C:UsersOfficeDocumentsVisual_StudioPAULATillSheet.c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x354]
push eax
call fcn.004b5bf0
add esp, 0xc
lea eax, [ebp - 0x240]
lea esi, [ebp - 0x354]
push 1
push eax
push 1
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004b643d
add esp, 0x14
push eax
push str._s__s__Up2Ld__.dat
push 0
call fcn.0048b25d
mov edi, dword [ebp - 0x35c]
add esp, 0x10
push eax
push edi
call fcn.0042078a
push 0x47e
push str.C:UsersOfficeDocumentsVisual_StudioPAULATillSheet.c
push 0x4e75e0
push edi
call fcn.00422a3e
mov esi, eax
push edi
push str.:5:LoadTillSheets___could_not_expand___s_.__It_is_assumed_that_this_file_is_not_an_archive.
mov dword [ebp - 0x368], esi
call fcn.0041cce9
xor eax, eax
add esp, 0x24
test esi, esi
setne al
mov dword [ebp - 0x388], eax
test esi, esi
jne 0x498a02
mov edi, dword [ebp - 0x394]
jmp 0x498892
push 0x484
push str.C:UsersOfficeDocumentsVisual_StudioPAULATillSheet.c
lea eax, [ebp - 0x240]
push 0x4e75e0
push eax
call fcn.00422a3e
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x368], esi
test esi, esi
jne 0x4989fc
push dword [ebp - 0x35c]
lea eax, [ebp - 0x240]
push eax
push str.:8:LoadTillSheets___encountered_an_impossible_exception:_The_file___s__could_not_be_opened_after_expanding_from___s___
call fcn.0041c80a
add esp, 0xc
push dword [ebp - 0x35c]
call fcn.0048c30a
pop ecx
test eax, eax
jne 0x4989fc
cmp dword [0x65fad4], eax
jne 0x4989fc
push 0x104
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.004c37f0
lea eax, [ebp - 0x13c]
push 0
push eax
call fcn.00451b3e
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0x35c]
call fcn.0048dada
add esp, 0x1c
test eax, eax
je 0x498989
push edi
lea eax, [ebp - 0x13c]
push eax
push ebx
call fcn.0049afd6
lea eax, [ebp - 0x13c]
push eax
call fcn.0048ce46
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0x35c]
call fcn.0048dada
add esp, 0x18
test eax, eax
je 0x4989fc
push edi
lea eax, [ebp - 0x13c]
push eax
push ebx
call fcn.0049afd6
lea eax, [ebp - 0x13c]
push eax
call fcn.0041fc00
add esp, 0x10
test eax, eax
je 0x4989fc
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0x35c]
push str.:8:LoadTillSheets___FAILED:___s__could_not_be_found__Trying_again_with___s_.
call fcn.0041c80a
lea eax, [ebp - 0x13c]
mov dword [0x65fad4], 1
push eax
push edi
push ebx
call fcn.004985c4
add esp, 0x18
and dword [0x65fad4], 0
jmp 0x498a25
cmp edi, dword [ebp - 0x364]
jne 0x4989fc
push edi
lea eax, [ebp - 0x13c]
push eax
push ebx
call fcn.0049b027
lea eax, [ebp - 0x13c]
push eax
call fcn.0048ce46
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0x35c]
call fcn.0048dada
add esp, 0x18
test eax, eax
je 0x4989fc
push edi
lea eax, [ebp - 0x13c]
push eax
push ebx
call fcn.0049b027
lea eax, [ebp - 0x13c]
push eax
call fcn.0041fc00
add esp, 0x10
test eax, eax
je 0x4989fc
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0x35c]
push str.:8:LoadTillSheets___FAILED:___s__could_not_be_found__Trying_again_from_server_with___s_.
jmp 0x49895d
mov edi, dword [ebp - 0x35c]
call fcn.0040b9bd
test eax, eax
je 0x498a34
test esi, esi
je 0x498a23
push esi
call fcn.004228b3
lea eax, [ebp - 0x240]
push eax
call fcn.004208fc
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2120
leave
ret
test esi, esi
je 0x498af2
push esi
push 1
lea eax, [ebp - 0x358]
push 4
push eax
call fcn.004c7617
add esp, 0x10
cmp eax, 1
jne 0x498a6a
mov eax, dword [ebp - 0x358]
test eax, eax
js 0x498a6a
cmp eax, 0x8000
jl 0x498af8
push esi
call fcn.004228b3
lea eax, [ebp - 0x240]
xor esi, esi
push eax
mov dword [ebp - 0x368], esi
call fcn.004208fc
push dword [ebp - 0x358]
push edi
push str.:9:ERROR_775427:_LoadTillSheets___could_not_fread___from__s_after_opening._Could_not_load_till_sheets.__numFileEntries___d
call fcn.0041c80a
add esp, 0x14
call fcn.004b729a
sub eax, dword [0x65fad8]
cmp eax, 0x1388
jbe 0x498ade
call fcn.0040d344
test eax, eax
jne 0x498ade
lea eax, [ebp - 0x38]
push eax
push str._s__a_problem_has_occurred_and_I_cannot_load_your_till_sheets._nIt_is_recommended_that_you_shutdown_and_restart_this_computer._nDoing_this_may_fix_the_problem.__Otherwise__continue_anyway._n_nWould_you_like_to_try_to_continue_anyway___Y_N__n_nYes___No
push str.________CRITICAL_ERROR_775427________
push str.NotGood.wav
push 1
call fcn.0042beeb
add esp, 0x14
test eax, eax
jne 0x498ade
push 3
push ebx
call fcn.00442165
pop ecx
pop ecx
call fcn.004b729a
mov dword [0x65fad8], eax
xor eax, eax
mov dword [ebp - 0x358], eax
jmp 0x498af8
mov eax, dword [ebp - 0x358]
add eax, 0xa
push 0x1234
push eax
call fcn.004ccef4
mov dword [ebp - 0x36c], eax
pop ecx
pop ecx
test eax, eax
jne 0x498ba1
test esi, esi
je 0x498b2e
push esi
call fcn.004228b3
lea eax, [ebp - 0x240]
push eax
call fcn.004208fc
pop ecx
pop ecx
mov eax, dword [ebp - 0x358]
push eax
add eax, 0xa
imul eax, eax, 0x1234
push eax
push str.:9:ERROR_7764275:_OUT_OF_MEMORY:_LoadTillSheets___could_not_allocate__ld_bytes_of_memory_for_till_sheets._Could_not_load__ld_till_sheets
call fcn.0041c80a
add esp, 0xc
call fcn.004b729a
sub eax, dword [0x65fadc]
cmp eax, 0x1388
jbe 0x498b92
lea eax, [ebp - 0x38]
push eax
push str._s__a_problem_has_occurred_and_I_cannot_load_your_till_sheets._nThe_system_is_out_of_memory._nIt_is_recommended_that_you_shutdown_and_restart_this_computer._nDoing_this_may_fix_the_problem.__Otherwise__continue_anyway._n_nWould_you_like_to_try_to_continue_anyway___Y_N__n_nYes___No
push str.________CRITICAL_ERROR_7764275________
push str.NotGood.wav
push 1
call fcn.0042beeb
add esp, 0x14
test eax, eax
jne 0x498b92
call fcn.0040d344
test eax, eax
jne 0x498b92
push 3
push ebx
call fcn.00442165
pop ecx
pop ecx
call fcn.004b729a
mov dword [0x65fadc], eax
jmp 0x498a23
mov ecx, dword [ebp - 0x358]
test esi, esi
je 0x49912a
and dword [ebp - 0x398], 0
and dword [ebp - 0x370], 0
test ecx, ecx
jle 0x498f87
lea ecx, [eax + 0xdeb]
mov dword [ebp - 0x374], eax
mov dword [ebp - 0x384], ecx
lea ecx, [eax + 4]
add eax, 0x1c
mov dword [ebp - 0x380], ecx
mov dword [ebp - 0x37c], eax
push esi
push 1
lea eax, [ebp - 0x378]
push 4
push eax
call fcn.004c7617
mov dword [ebp - 0x364], eax
mov edx, 0x1234
xor eax, eax
add esp, 0x10
mov dword [ebp - 0x38c], eax
mov eax, dword [ebp - 0x378]
cmp eax, edx
jbe 0x498c61
mov ecx, dword [ebp - 0x398]
inc ecx
mov dword [ebp - 0x398], ecx
cmp ecx, 0x1b
jge 0x498c47
push edi
push eax
push edx
push str.:7:LoadTillSheets__:_TillSheet_size_has_increased_from__d_to__d:_The_till_sheet_cannot_be_properly_loaded:__s
call fcn.0041cce9
mov eax, dword [ebp - 0x378]
add esp, 0x10
mov edx, 0x1234
add eax, 0xffffedcc
and dword [ebp - 0x388], 0
mov dword [ebp - 0x38c], eax
mov eax, edx
mov dword [ebp - 0x378], eax
push esi
push 1
add eax, 0xfffffffc
push eax
push dword [ebp - 0x380]
call fcn.004c7617
mov ecx, dword [ebp - 0x374]
mov edx, eax
mov eax, dword [ebp - 0x38c]
add esp, 0x10
mov dword [ebp - 0x360], edx
mov dword [ecx], 0x1234
test eax, eax
jle 0x498ca6
push 1
push eax
push esi
call fcn.004c7a3b
mov edx, dword [ebp - 0x360]
add esp, 0xc
cmp dword [ebp - 0x364], 1
jne 0x498e34
cmp edx, 1
jne 0x498e34
cmp dword [ebp - 0x388], 0
je 0x498d80
cmp dword [ebp - 0x39c], 0
jne 0x498ce9
push edi
push str.:7:LoadTillSheets___is_converting_the_old_style_till_sheet_to_the_new_style:___s_
call fcn.0041cce9
pop ecx
pop ecx
mov dword [ebp - 0x39c], 1
mov ecx, dword [ebp - 0x374]
mov eax, dword [ecx]
jmp 0x498d11
mov dl, byte [ecx + eax]
cmp eax, 0xe59
jb 0x498d06
mov byte [ecx + eax + 0x100], dl
jmp 0x498d0d
mov byte [ecx + eax + 0xfe], dl
mov byte [ecx + eax], 0
dec eax
cmp eax, 0xe19
jge 0x498cf3
mov eax, dword [ebp - 0x384]
push 4
pop ecx
mov dword [ebp - 0x38c], ecx
mov dword [ebp - 0x360], eax
lea edi, [eax + 1]
mov ebx, eax
mov esi, ecx
movzx eax, byte [ebx]
push 0
push eax
push edi
call fcn.0048c19c
add esp, 0xc
mov byte [ebx], 0
dec ebx
sub esi, 1
jne 0x498d35
mov ecx, dword [ebp - 0x38c]
mov eax, dword [ebp - 0x360]
dec ecx
add eax, 0xffffffce
mov dword [ebp - 0x38c], ecx
mov dword [ebp - 0x360], eax
cmp ecx, 1
jge 0x498d2e
mov ebx, dword [ebp - 0x390]
mov esi, dword [ebp - 0x368]
mov edi, dword [ebp - 0x35c]
mov eax, dword [ebp - 0x374]
mov edx, dword [ebp - 0x370]
cmp dword [eax + 0x2c], 0
jg 0x498e24
test edx, edx
je 0x498dfe
cmp dword [eax + 0x1198], 0
jne 0x498dfe
mov esi, dword [ebp - 0x37c]
push edi
push 1
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004b639c
mov ecx, dword [ebp - 0x374]
add esp, 0x14
push eax
movzx eax, word [ecx + 0x18]
push eax
movzx eax, byte [ecx + 0x1b]
push eax
movzx eax, byte [ecx + 0x1a]
push eax
push dword [ebp - 0x358]
push dword [ebp - 0x370]
push str.:5:LoadTillSheets___EAP:_An_uncounted_till_was_encountered___:_till__d_of__d:_Accnt_Date__d__02d__04d:_TimeStamp__s:___s_
call fcn.0041c80a
mov esi, dword [ebp - 0x368]
add esp, 0x20
mov eax, dword [ebp - 0x374]
mov edx, dword [ebp - 0x370]
mov ecx, dword [ebp - 0x358]
mov edi, 0x1234
sub dword [ebp - 0x37c], edi
dec edx
sub dword [ebp - 0x380], edi
sub eax, edi
sub dword [ebp - 0x384], edi
dec ecx
jmp 0x498f4c
mov ecx, dword [ebp - 0x358]
mov edi, 0x1234
jmp 0x498f52
and dword [ebp - 0x388], 0
push esi
call fcn.004228b3
lea eax, [ebp - 0x240]
xor esi, esi
push eax
mov dword [ebp - 0x368], esi
call fcn.004208fc
push 0x1234
push dword [ebp - 0x378]
push dword [ebp - 0x360]
push dword [ebp - 0x364]
push dword [ebp - 0x370]
push edi
push dword [ebp - 0x358]
push str.:9:ERROR_776428:_LoadTillSheets___could_not_fread____ld_tills_from__s._Could_not_load_till_sheets.__Only__d_tills_were_read:_result1___d__result2___d__iTillSize___d___d
call fcn.0041c80a
add esp, 0x28
call fcn.004b729a
sub eax, dword [0x65fae0]
cmp eax, 0x1388
jbe 0x498f0f
push 0x104
lea eax, [ebp - 0x13c]
push esi
push eax
call fcn.004c37f0
push 0x104
lea eax, [ebp - 0x13c]
push edi
push eax
call fcn.0048dd2a
lea eax, [ebp - 0x13c]
push eax
call fcn.0048ce46
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x38]
push eax
push str._s__a_problem_has_occurred_and_I_cannot_load_your_till_sheets._nFAILED_TO_LOAD:__s_nIt_is_recommended_that_you_shutdown_and_restart_this_computer._nDoing_this_may_fix_the_problem.__Otherwise__continue_anyway._n_nWould_you_like_to_try_to_continue_anyway___Y_N__n_nYes___No
push str.__ERROR_776428__
push str.NotGood.wav
push 1
call fcn.0042beeb
add esp, 0x34
test eax, eax
jne 0x498f0f
call fcn.0040d344
test eax, eax
jne 0x498f0f
push dword [ebp - 0x36c]
call fcn.004cceff
push 3
push ebx
call fcn.00442165
add esp, 0xc
call fcn.004b729a
mov dword [0x65fae0], eax
mov eax, dword [ebp - 0x358]
add eax, 0xa
imul eax, eax, 0x1234
push eax
push 0
push dword [ebp - 0x36c]
call fcn.004c37f0
mov eax, dword [ebp - 0x374]
add esp, 0xc
mov edx, dword [ebp - 0x370]
xor ecx, ecx
mov edi, 0x1234
mov dword [ebp - 0x358], ecx
add dword [ebp - 0x37c], edi
inc edx
add dword [ebp - 0x380], edi
add eax, edi
add dword [ebp - 0x384], edi
mov edi, dword [ebp - 0x35c]
mov dword [ebp - 0x370], edx
mov dword [ebp - 0x374], eax
cmp edx, ecx
jl 0x498be9
mov eax, dword [ebp - 0x36c]
xor edi, edi
mov dword [ebp - 0x364], edi
test ecx, ecx
jle 0x499038
lea ebx, [eax + 0x11b0]
mov dword [ebp - 0x360], ebx
mov eax, dword [ebx + 8]
test eax, eax
je 0x499017
inc eax
push 1
push eax
call fcn.004ccef4
mov dword [ebx], eax
pop ecx
pop ecx
test eax, eax
je 0x49900d
push esi
push 1
push dword [ebx + 8]
push eax
call fcn.004c7617
add esp, 0x10
cmp eax, 1
je 0x499011
push 0
sub esp, 0x10
add ebx, 0xffffee88
mov edi, esp
lea esi, [ebx - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004b639c
push eax
push ebx
push str.:9:LoadTillSheets___FAILED:_FAILED_to_load_the_Paid_Out_descriptions_for__s__s
call fcn.0041c80a
mov ebx, dword [ebp - 0x360]
push dword [ebx]
call fcn.004cceff
mov edi, dword [ebp - 0x364]
add esp, 0x24
and dword [ebx], 0
and dword [ebx + 8], 0
mov ecx, dword [ebp - 0x358]
mov esi, dword [ebp - 0x368]
inc edi
add ebx, 0x1234
mov dword [ebp - 0x364], edi
mov dword [ebp - 0x360], ebx
cmp edi, ecx
jl 0x498fa3
xor esi, esi
mov dword [ebp - 0x364], esi
test ecx, ecx
jle 0x4990fa
mov ebx, dword [ebp - 0x36c]
add ebx, 0x11bc
mov dword [ebp - 0x360], ebx
mov eax, dword [ebx + 4]
test eax, eax
je 0x4990df
add eax, 8
mov dword [ebx + 0x28], eax
add eax, 8
push 1
push eax
call fcn.004ccef4
mov dword [ebx], eax
pop ecx
pop ecx
test eax, eax
je 0x4990d1
push dword [ebp - 0x368]
push 1
push dword [ebx + 4]
push eax
call fcn.004c7617
add esp, 0x10
cmp eax, 1
je 0x4990d9
push 0
sub esp, 0x10
add ebx, 0xffffee7c
mov edi, esp
lea esi, [ebx - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004b639c
push eax
push ebx
push str.:9:LoadTillSheets___FAILED:_FAILED_to_load_the_Applied_Invoice_List_for__s__s
call fcn.0041c80a
mov ebx, dword [ebp - 0x360]
push dword [ebx]
call fcn.004cceff
mov esi, dword [ebp - 0x364]
add esp, 0x24
and dword [ebx], 0
and dword [ebx + 4], 0
and dword [ebx + 0x28], 0
mov ecx, dword [ebp - 0x358]
inc esi
add ebx, 0x1234
mov dword [ebp - 0x364], esi
mov dword [ebp - 0x360], ebx
cmp esi, ecx
jl 0x49905a
mov eax, dword [ebp - 0x368]
test eax, eax
je 0x49911e
push eax
call fcn.004228b3
lea eax, [ebp - 0x240]
push eax
call fcn.004208fc
pop ecx
pop ecx
mov ecx, dword [ebp - 0x358]
mov eax, dword [ebp - 0x36c]
mov ebx, dword [ebp - 0x390]
and dword [ebp - 0x364], 0
mov edi, dword [ebp - 0x394]
test ecx, ecx
jle 0x49916a
mov esi, eax
lea eax, [ecx + 0xa]
push eax
push ecx
push edi
push esi
push ebx
call fcn.004971c9
mov eax, dword [ebp - 0x364]
add esp, 0x14
mov ecx, dword [ebp - 0x358]
inc eax
add esi, 0x1234
mov dword [ebp - 0x364], eax
cmp eax, ecx
jl 0x49913d
mov esi, dword [ebp - 0x36c]
xor edx, edx
lea eax, [edx + ecx]
imul eax, eax, 0x1234
mov dword [eax + esi + 8], ecx
mov eax, dword [ebp - 0x358]
lea ecx, [eax + 0xa]
add eax, edx
imul eax, eax, 0x1234
inc edx
mov dword [eax + esi + 0xc], ecx
cmp edx, 0xa
jge 0x4991a2
mov ecx, dword [ebp - 0x358]
jmp 0x499172
test edi, edi
jns 0x4991d8
cmp edi, 0xfffffffe
jl 0x4991f0
mov esi, 0x1b314
sub esi, edi
push dword [ebx + esi*4]
call fcn.0049589d
mov eax, dword [ebp - 0x36c]
mov dword [ebx + esi*4], eax
mov eax, dword [ebx + 0x2144]
mov eax, dword [ebx + eax*4 + 0x6cc54]
mov dword [ebx + 0x688], eax
jmp 0x4991ef
cmp edi, dword [ebx]
jge 0x4991f0
push dword [ebx + edi*4 + 0x4f4]
call fcn.0049589d
mov dword [ebx + edi*4 + 0x4f4], esi
pop ecx
cmp dword [ebp - 0x388], 0
je 0x49924f
cmp dword [ebp - 0x358], 0
jle 0x49924f
push 0
push 1
call fcn.0044f324
pop ecx
xor esi, esi
pop ecx
test eax, eax
je 0x49921c
push 1
inc esi
call fcn.004552b3
pop ecx
push 0
push edi
push ebx
call fcn.0049c1c1
add esp, 0xc
test eax, eax
jne 0x499237
push str.:8:LoadTillSheets___FAILED_to_convert_the_till_sheet_to_the_new_style:_SaveTillSheets___FAILED.
call fcn.0041c80a
pop ecx
test esi, esi
je 0x49924f
push 0x5af
push str.C:UsersOfficeDocumentsVisual_StudioPAULATillSheet.c
push 1
call fcn.0044f4b7
add esp, 0xc
mov eax, dword [ebp - 0x358]
jmp 0x498a25