Function at 0x47f8bf
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x4ff8c8
push 0x4aec40
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5025d0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 0x41c]
mov dword [ebp - 0x40], edi
mov eax, dword [ebp + 0x424]
mov dword [ebp - 0x44], eax
xor ebx, ebx
mov byte [ebp], bl
mov esi, 0x103
push esi
push ebx
lea eax, [ebp + 1]
push eax
call fcn.004a8c80
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov byte [ebp + 0x104], bl
push esi
push ebx
lea eax, [ebp + 0x105]
push eax
call fcn.004a8c80
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x48], ebx
lea ebx, [ebp - 0x28]
lea esi, [ebp - 0x30]
call fcn.0040cd5f
call fcn.0040d13b
mov dword [ebp - 0x38], eax
call fcn.0040d199
xor ebx, ebx
push ebx
push ebx
call fcn.0040ccb7
xor esi, esi
inc esi
push esi
push 7
call fcn.0040f3f9
add esp, 0x28
call fcn.0040afc9
test eax, eax
jne 0x47f9f6
cmp edi, ebx
je 0x47f9d3
cmp dword [ebp + 0x420], ebx
jge 0x47f99e
mov ecx, edi
call fcn.00437f4c
mov dword [ebp + 0x420], eax
mov edx, dword [ebp + 0x420]
mov ecx, edi
call fcn.0042eec4
test eax, eax
je 0x47f9d3
cmp dword [edi + 0x2140], ebx
je 0x47fa1b
mov dword [ebp - 0x4c], esi
mov ecx, dword [edi + 0x688]
mov dword [ebp - 0x2c], ecx
or eax, 0xffffffff
sub eax, dword [edi + 0x2144]
mov dword [ebp - 0x48], eax
cmp ecx, ebx
jne 0x47fa39
push ebx
push 0xffffffffffffffff
call fcn.0040f3f9
push dword [ebp - 0x28]
push dword [ebp - 0x30]
call fcn.0040ccb7
add esp, 0x10
cmp dword [ebp - 0x38], ebx
je 0x47f9f6
push 0x64
pop eax
call fcn.0040d28d
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.004a8565
add ebp, 0x414
leave
ret
mov dword [ebp - 0x4c], ebx
mov eax, dword [ebp + 0x420]
mov eax, dword [edi + eax*4 + 0x4f4]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x47f9d3
cmp dword [eax + 8], ebx
jle 0x47f9d3
mov ecx, eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x5c], eax
mov ecx, edi
call fcn.00437f4c
mov dword [ebp - 0x58], eax
cmp eax, ebx
jge 0x47fa56
mov eax, dword [ebp + 0x420]
mov dword [ebp - 0x58], eax
push ebx
push ebx
call fcn.0045ba18
pop ecx
pop ecx
mov edi, eax
call fcn.00419e19
test eax, eax
jne 0x47fa7c
push ebx
push ebx
push ebx
call fcn.0045ba18
pop ecx
pop ecx
mov ecx, eax
call fcn.0041a1a7
pop ecx
push 0x970
push str..TillSheet.c
xor esi, esi
inc esi
push esi
call fcn.0044337f
add esp, 0xc
call fcn.00449b58
mov dword [ebp - 0x64], ebx
mov edx, dword [ebp - 0x44]
call fcn.00477a16
test eax, eax
je 0x47fad5
cmp dword [ebp - 0x44], ebx
jne 0x47faae
mov dword [ebp - 0x64], esi
mov edx, dword [ebp + 0x420]
lea eax, [ebp]
mov esi, dword [ebp - 0x40]
call fcn.004811cf
cmp dword [ebp - 0x4c], ebx
je 0x47facf
mov edx, dword [ebp - 0x48]
lea eax, [ebp]
call fcn.004811cf
lea eax, [ebp]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x44]
mov ecx, 0x104
lea eax, [ebp + 0x104]
call fcn.00477a48
mov esi, eax
call fcn.00477d45
push ebx
push ebx
call fcn.0045bc06
mov edx, eax
mov ecx, esi
call fcn.00477fd2
mov dword [ebp - 0x4c], ebx
mov edi, 0x989
push edi
push str..TillSheet.c
mov esi, 0x4c7368
mov edx, esi
lea ecx, [ebp + 0x104]
call fcn.0041bb64
add esp, 0x14
jmp 0x47fb4d
cmp dword [ebp - 0x4c], 3
jg 0x47fb54
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x4c]
push edi
push str..TillSheet.c
mov edx, esi
lea ecx, [ebp + 0x104]
call fcn.0041bb64
pop ecx
pop ecx
cmp eax, ebx
mov dword [ebp - 0x34], eax
je 0x47fb24
cmp dword [ebp - 0x34], ebx
jne 0x47fba4
push 0x4c8c90
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + eax*4 + 0x198]
call fcn.00479744
push eax
push str._s__your_till_cannot_be_saved._nPlease_call__s_to_report_this_problem._nLeave_your_name__your_store_number__and_error_7723327._n_nPress_any_key_to_exit...
push str.___________FAILED___________
push str.NotGood.wav
push ebx
push ebx
push 1
call fcn.0041fbbe
push ebx
push 0xffffffffffffffff
call fcn.0040f3f9
push dword [ebp - 0x28]
push dword [ebp - 0x30]
call fcn.0040ccb7
add esp, 0x30
jmp 0x47f9e9
call fcn.0045be71
test eax, eax
jne 0x47fcad
mov eax, 0x110
mov esi, dword [ebp - 0x5c]
cmp esi, eax
jg 0x47fbbf
mov eax, esi
mov dword [ebp - 0x20], eax
cmp eax, esi
jge 0x47fc06
xor edi, edi
lea ecx, [esi - 1]
cmp ecx, ebx
jl 0x47fbf3
mov edx, ecx
imul edx, edx, 0x1234
mov edi, dword [ebp - 0x2c]
lea edx, [edx + edi + 0x8dc]
mov edi, ebx
cmp dword [edx], ebx
jne 0x47fbf3
inc edi
dec ecx
sub edx, 0x1234
cmp ecx, ebx
jge 0x47fbe3
cmp edi, eax
jle 0x47fc06
mov dword [ebp - 0x20], edi
mov eax, 0x20a
cmp edi, eax
jle 0x47fc06
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ebx
cmp esi, ebx
jle 0x47fc24
mov eax, dword [ebp - 0x2c]
add eax, 0x1040
mov ecx, esi
mov dword [ebp - 0x24], esi
mov dword [eax], ebx
add eax, 0x1234
dec ecx
jne 0x47fc1a
push 4
lea eax, [esi + 1]
push eax
call fcn.004a7b08
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x1c], ecx
cmp ecx, ebx
je 0x47fc60
mov dword [ebp - 0x24], ebx
cmp esi, ebx
jle 0x47fc60
mov eax, dword [ebp - 0x2c]
add eax, 0x104c
mov edx, dword [eax]
mov edi, dword [ebp - 0x24]
mov dword [ecx + edi*4], edx
mov dword [eax], ebx
inc dword [ebp - 0x24]
add eax, 0x1234
cmp dword [ebp - 0x24], esi
jl 0x47fc49
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x24], esi
jge 0x47fcd7
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x1234
mov ecx, dword [ebp - 0x2c]
lea esi, [eax + ecx]
mov ebx, dword [esi + 0x11b0]
call fcn.004778e1
mov dword [esi + 0x11b8], eax
mov ecx, dword [esi + 0x11bc]
call fcn.0047790c
lea eax, [eax*4 + 4]
mov dword [esi + 0x11c0], eax
inc dword [ebp - 0x24]
xor ebx, ebx
mov esi, dword [ebp - 0x5c]
jmp 0x47fc66
call fcn.0045be71
dec eax
neg eax
sbb eax, eax
add eax, 0x20
mov esi, dword [ebp - 0x5c]
cmp esi, eax
jle 0x47fbbd
call fcn.0045be71
dec eax
neg eax
sbb eax, eax
add eax, 0x20
jmp 0x47fbbf
mov dword [ebp - 4], 0xfffffffe
jmp 0x47fd0f
push ebx
push ebx
push dword [ebp - 0x34]
call fcn.004a81cf
push dword [ebp - 0x34]
push 1
push 4
lea eax, [ebp - 0x20]
push eax
call fcn.004a7ca6
mov dword [ebp - 0x48], eax
push dword [ebp - 0x34]
push dword [ebp - 0x20]
mov edi, 0x1234
push edi
mov eax, esi
sub eax, dword [ebp - 0x20]
imul eax, eax, 0x1234
add eax, dword [ebp - 0x2c]
push eax
call fcn.004a7ca6
add esp, 0x2c
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x1c], ebx
je 0x47fd81
xor eax, eax
cmp esi, ebx
jle 0x47fd75
mov ecx, dword [ebp - 0x2c]
add ecx, 0x104c
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + eax*4]
mov dword [ecx], edx
inc eax
add ecx, edi
cmp eax, esi
jl 0x47fd66
push dword [ebp - 0x1c]
call fcn.004a795c
pop ecx
mov dword [ebp - 0x1c], ebx
xor eax, eax
inc eax
cmp dword [ebp - 0x48], eax
jne 0x4802b1
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [ebp - 0x20]
jne 0x4802b1
mov dword [ebp - 4], eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x3c], ebx
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x20]
cmp dword [ebp - 0x3c], ecx
jge 0x47fde7
mov eax, dword [ebp - 0x3c]
sub eax, ecx
add eax, esi
imul eax, eax, 0x1234
add eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x11b8]
cmp ecx, ebx
jbe 0x47fde2
inc dword [ebp - 0x50]
push edi
push 1
push ecx
push dword [eax + 0x11b0]
call fcn.004a7ca6
add esp, 0x10
add dword [ebp - 0x54], eax
inc dword [ebp - 0x3c]
jmp 0x47fda8
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0x54], eax
jge 0x47fe68
cmp edi, ebx
je 0x47fdfd
mov ecx, edi
call fcn.0041bf91
mov dword [ebp - 0x34], ebx
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + ecx*4 + 0x198]
call fcn.00479744
push eax
push str._s__your_till_cannot_be_saved._nA_file_access_error_has_occurred._n_nPress_any_key_to_exit...
push str.___________FAILED___________
push str.NotGood.wav
push ebx
push ebx
push 1
call fcn.0041fbbe
push ebx
push 0xffffffffffffffff
call fcn.0040f3f9
push dword [ebp - 0x28]
push dword [ebp - 0x30]
call fcn.0040ccb7
add esp, 0x2c
cmp dword [ebp - 0x1c], ebx
je 0x47fe4f
push dword [ebp - 0x1c]
call fcn.004a795c
pop ecx
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x38], ebx
je 0x47fe5c
push 0x64
pop eax
call fcn.0040d28d
mov dword [ebp - 4], 0xfffffffe
jmp 0x47f9f6
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x3c], ebx
mov ecx, dword [ebp - 0x20]
cmp dword [ebp - 0x3c], ecx
jge 0x47feb0
mov eax, dword [ebp - 0x3c]
sub eax, ecx
add eax, esi
imul eax, eax, 0x1234
add eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x11c0]
cmp ecx, ebx
jbe 0x47feab
inc dword [ebp - 0x50]
push edi
push 1
push ecx
push dword [eax + 0x11bc]
call fcn.004a7ca6
add esp, 0x10
add dword [ebp - 0x54], eax
inc dword [ebp - 0x3c]
jmp 0x47fe71
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0x54], eax
jl 0x47fdef
mov dword [ebp - 4], 0xfffffffe
cmp edi, ebx
je 0x47fece
mov ecx, edi
call fcn.0041bf91
call fcn.0040afc9
test eax, eax
jne 0x47f9f6
push 0xa25
mov esi, str..TillSheet.c
push esi
push 1
call fcn.00445dad
add esp, 0xc
call fcn.0040afc9
test eax, eax
je 0x47ff06
push 1
call fcn.004469e1
pop ecx
jmp 0x47f9f6
call fcn.0049a965
mov dword [ebp - 0x48], eax
xor edi, edi
push dword [ebp - 0x44]
lea eax, [ebp + 0x104]
push eax
call fcn.0040135d
pop ecx
pop ecx
test eax, eax
jg 0x47ff62
call fcn.0049a965
sub eax, dword [ebp - 0x48]
cmp eax, 0x3a98
ja 0x47ff69
push 1
call fcn.004469e1
pop ecx
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa38
push esi
push 1
call fcn.00445dad
add esp, 0xc
mov dword [ebp - 0x60], ebx
inc edi
cmp edi, 7
jl 0x47ff10
jmp 0x47ff69
mov dword [ebp - 0x60], 1
push 1
call fcn.004469e1
pop ecx
cmp dword [ebp - 0x60], ebx
jne 0x480070
mov esi, dword [ebp - 0x40]
lea eax, [esi + 0x1094]
push eax
push dword [ebp - 0x44]
call fcn.004785e7
pop ecx
pop ecx
test eax, eax
je 0x480038
mov byte [ebp + 0x30c], bl
mov edi, 0x103
push edi
push ebx
lea eax, [ebp + 0x30d]
push eax
call fcn.004a8c80
mov byte [ebp + 0x208], bl
push edi
push ebx
lea eax, [ebp + 0x209]
push eax
call fcn.004a8c80
add esp, 0x18
cmp dword [0x61473c], ebx
jne 0x480038
push dword [ebp - 0x44]
inc edi
mov ecx, edi
lea eax, [ebp + 0x208]
call fcn.00477a48
pop ecx
mov esi, eax
call fcn.00477d45
mov eax, esi
push eax
push str.ServerSync_
push ebx
push ebx
call fcn.0045ba18
pop ecx
pop ecx
push eax
push 0x4ceab8
push edi
lea eax, [ebp + 0x30c]
push eax
call fcn.00478fcf
mov dword [0x61473c], 1
lea eax, [ebp + 0x30c]
push eax
push dword [ebp + 0x420]
push dword [ebp - 0x40]
call fcn.0047f8bf
add esp, 0x24
mov dword [0x61473c], ebx
jmp 0x47f9f8
push 0x4c8c90
mov eax, dword [ebp - 0x58]
mov edx, dword [esi + eax*4 + 0x198]
call fcn.00479744
push eax
push str._s__your_till_cannot_be_saved._nThe_TAMS_server_cannot_be_accessed._nPlease_call__s_to_report_this_problem._nLeave_your_name__your_store_number__and_error_7722427._n_nPress_any_key_to_exit...
push str.___________FAILED___________
push str.NotGood.wav
push ebx
push ebx
push 1
call fcn.0041fbbe
add esp, 0x20
mov dword [ebp - 0x20], ebx
jmp 0x480209
call fcn.0045be71
test eax, eax
jne 0x480209
cmp dword [ebp - 0x64], ebx
je 0x480209
mov byte [ebp + 0x208], bl
mov esi, 0x103
push esi
push ebx
lea eax, [ebp + 0x209]
push eax
call fcn.004a8c80
mov byte [ebp + 0x30c], bl
push esi
push ebx
lea eax, [ebp + 0x30d]
push eax
call fcn.004a8c80
push dword [ebp - 0x44]
lea edi, [esi + 1]
mov ecx, edi
lea eax, [ebp + 0x208]
call fcn.00477a48
add esp, 0x1c
mov esi, eax
call fcn.00477d45
push str._tmpP2_NODEL_tills_
call fcn.0043e019
push eax
push str._s_s
push edi
lea eax, [ebp + 0x30c]
push eax
call fcn.00478fcf
lea eax, [ebp + 0x30c]
push eax
call fcn.00419eca
add esp, 0x18
test eax, eax
jne 0x48010d
push ebx
lea ecx, [ebp + 0x30c]
call fcn.0041a1a7
pop ecx
lea eax, [ebp + 0x208]
push eax
mov eax, edi
lea esi, [ebp + 0x30c]
call fcn.00477b18
mov eax, esi
push eax
lea eax, [ebp + 0x104]
push eax
call fcn.0040135d
push str._nBacking_up_invoice_registrar...
call fcn.0040ee23
push 0xa72
push str..TillSheet.c
push 0x10
call fcn.00445dad
add esp, 0x1c
push str._tmpP2_NODEL_tills_
call fcn.0043e019
push eax
push str._s_s
push edi
mov eax, esi
push eax
call fcn.00478fcf
push str.s_inv.dat
lea edi, [ebp + 0x208]
call fcn.00442baf
mov eax, esi
push eax
mov ecx, edi
call fcn.00419694
push 0x10
call fcn.004469e1
push str.DONE_
call fcn.0040ee23
push str._nBacking_up_sales_data...
call fcn.0040ee23
push 0xa7b
push str..TillSheet.c
push 0x40
call fcn.00445dad
add esp, 0x34
push str._tmpP2_NODEL_tills_
call fcn.0043e019
push eax
push str._s_s
push 0x104
mov eax, esi
push eax
call fcn.00478fcf
push str.s_cur.sls
call fcn.00442baf
mov eax, esi
push eax
mov ecx, edi
call fcn.00419694
push str.s_eod.sls
call fcn.00442baf
mov eax, esi
push eax
mov ecx, edi
call fcn.00419694
push 0x40
call fcn.004469e1
push str.DONE__n
call fcn.0040ee23
add esp, 0x2c
lea eax, [ebp + 0x104]
call fcn.004199a1
push ebx
push 0xffffffffffffffff
call fcn.0040f3f9
push dword [ebp - 0x28]
push dword [ebp - 0x30]
call fcn.0040ccb7
add esp, 0x10
cmp dword [ebp - 0x38], ebx
je 0x480237
push 0x64
pop eax
call fcn.0040d28d
mov eax, dword [ebp - 0x20]
jmp 0x47f9f8
mov ecx, dword [ebp - 0x34]
cmp ecx, ebx
je 0x4802bd
call fcn.0041bf91
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x58]
mov edx, dword [eax + ecx*4 + 0x198]
call fcn.00479744
push eax
push str._s__your_till_cannot_be_saved._nA_file_access_error_has_occurred._n_nPress_any_key_to_exit...
push str.___________FAILED___________
push str.NotGood.wav
push ebx
push ebx
push 1
call fcn.0041fbbe
push ebx
push 0xffffffffffffffff
call fcn.0040f3f9
push dword [ebp - 0x28]
push dword [ebp - 0x30]
call fcn.0040ccb7
add esp, 0x2c
cmp dword [ebp - 0x1c], ebx
je 0x47f9e9
push dword [ebp - 0x1c]
call fcn.004a795c
pop ecx
jmp 0x47f9e9