Function at 0x42d84a
Capabilities:
Write file on windows

Disassembly:
push 0x460
push 0x4b0408
call fcn.00487850
mov edi, dword [ebp + 8]
mov dword [ebp - 0x448], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x460], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44c], eax
xor ebx, ebx
mov byte [ebp - 0x42c], bl
mov esi, 0x103
push esi
push ebx
lea eax, [ebp - 0x42b]
push eax
call fcn.00401f80
mov dword [ebp - 0x434], ebx
mov byte [ebp - 0x328], bl
push esi
push ebx
lea eax, [ebp - 0x327]
push eax
call fcn.00401f80
add esp, 0x18
mov dword [ebp - 0x46c], ebx
mov dword [ebp - 0x468], ebx
cmp edi, ebx
je 0x42e283
mov esi, dword [ebp - 0x460]
cmp esi, ebx
jge 0x42d8d9
mov ecx, edi
call fcn.00464371
mov dword [ebp - 0x460], eax
mov esi, eax
mov edx, esi
mov ecx, edi
call fcn.004643b5
test eax, eax
je 0x42e283
cmp dword [edi + 0x2140], ebx
je 0x42d920
mov dword [ebp - 0x45c], 1
mov eax, dword [edi + 0x688]
mov dword [ebp - 0x440], eax
or ecx, 0xffffffff
sub ecx, dword [edi + 0x2144]
mov dword [ebp - 0x468], ecx
cmp eax, ebx
jne 0x42d944
jmp 0x42e283
mov dword [ebp - 0x45c], ebx
mov eax, dword [edi + esi*4 + 0x4f4]
mov dword [ebp - 0x440], eax
cmp eax, ebx
je 0x42e283
cmp dword [eax + 8], ebx
jle 0x42e283
mov eax, dword [eax + 8]
mov dword [ebp - 0x464], eax
mov ecx, edi
call fcn.00464371
mov dword [ebp - 0x450], eax
cmp eax, ebx
jge 0x42d964
mov dword [ebp - 0x450], esi
push ebx
push ebx
call fcn.0044bd82
pop ecx
pop ecx
mov edi, eax
call fcn.00474f3d
test eax, eax
jne 0x42d98a
push ebx
push ebx
push ebx
call fcn.0044bd82
pop ecx
pop ecx
mov ecx, eax
call fcn.00474c86
pop ecx
call fcn.0046018e
mov dword [ebp - 0x470], ebx
mov edx, dword [ebp - 0x44c]
call fcn.00436c5d
test eax, eax
je 0x42d9f2
cmp dword [ebp - 0x44c], ebx
jne 0x42d9b6
mov dword [ebp - 0x470], 1
mov edx, dword [ebp - 0x460]
lea esi, [ebp - 0x42c]
mov ecx, dword [ebp - 0x448]
call fcn.00429366
cmp dword [ebp - 0x45c], ebx
je 0x42d9e6
mov edx, dword [ebp - 0x468]
mov ecx, dword [ebp - 0x448]
call fcn.00429366
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x44c], eax
push dword [ebp - 0x44c]
mov ecx, 0x104
lea eax, [ebp - 0x328]
call fcn.00435b27
mov esi, eax
call fcn.004359d7
push ebx
push ebx
call fcn.0044bf6e
mov edx, eax
mov ecx, esi
call fcn.0043794f
mov dword [ebp - 0x45c], ebx
mov edi, 0x989
push edi
push str.TillSheet.c
mov esi, 0x48d22c
mov edx, esi
lea ecx, [ebp - 0x328]
call fcn.00473c34
add esp, 0x14
jmp 0x42da76
cmp dword [ebp - 0x45c], 3
jg 0x42da80
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x45c]
push edi
push str.TillSheet.c
mov edx, esi
lea ecx, [ebp - 0x328]
call fcn.00473c34
pop ecx
pop ecx
cmp eax, ebx
mov dword [ebp - 0x430], eax
je 0x42da47
cmp dword [ebp - 0x430], ebx
jne 0x42dac6
push str._360_545_6605
mov eax, dword [ebp - 0x448]
mov ecx, dword [ebp - 0x450]
mov edx, dword [eax + ecx*4 + 0x198]
call fcn.00437114
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.0047129f
add esp, 0x20
jmp 0x42e283
call fcn.0044bad2
mov esi, dword [ebp - 0x464]
cmp eax, ebx
jne 0x42dadc
mov eax, 0x110
jmp 0x42dae4
dec eax
neg eax
sbb eax, eax
add eax, 0x20
cmp esi, eax
mov dword [ebp - 0x434], eax
jg 0x42daf4
mov dword [ebp - 0x434], esi
cmp dword [ebp - 0x434], esi
jge 0x42db47
xor edx, edx
lea eax, [esi - 1]
cmp eax, ebx
jl 0x42db2a
mov ecx, eax
imul ecx, ecx, 0x1234
mov edi, dword [ebp - 0x440]
lea ecx, [ecx + edi + 0x8dc]
cmp dword [ecx], ebx
jne 0x42db2a
inc edx
dec eax
sub ecx, 0x1234
cmp eax, ebx
jge 0x42db1a
cmp edx, dword [ebp - 0x434]
jle 0x42db47
mov dword [ebp - 0x434], edx
mov eax, 0x20a
cmp edx, eax
jle 0x42db47
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x43c], ebx
cmp esi, ebx
jle 0x42db6e
mov eax, dword [ebp - 0x440]
add eax, 0x1040
mov ecx, esi
mov dword [ebp - 0x43c], esi
mov dword [eax], ebx
add eax, 0x1234
dec ecx
jne 0x42db64
push 4
lea eax, [esi + 1]
push eax
call fcn.00401a3a
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x438], ecx
cmp ecx, ebx
je 0x42dbbc
mov dword [ebp - 0x43c], ebx
cmp esi, ebx
jle 0x42dbbc
mov eax, dword [ebp - 0x440]
add eax, 0x104c
mov edx, dword [eax]
mov edi, dword [ebp - 0x43c]
mov dword [ecx + edi*4], edx
mov dword [eax], ebx
inc dword [ebp - 0x43c]
add eax, 0x1234
cmp dword [ebp - 0x43c], esi
jl 0x42db9c
mov dword [ebp - 4], ebx
mov dword [ebp - 0x43c], ebx
cmp dword [ebp - 0x43c], esi
jge 0x42dc18
mov esi, dword [ebp - 0x43c]
imul esi, esi, 0x1234
add esi, dword [ebp - 0x440]
mov ebx, dword [esi + 0x11b0]
call fcn.00435bbf
mov dword [esi + 0x11b8], eax
mov ecx, dword [esi + 0x11bc]
call fcn.00435ba9
lea eax, [eax*4 + 4]
mov dword [esi + 0x11c0], eax
inc dword [ebp - 0x43c]
xor ebx, ebx
mov esi, dword [ebp - 0x464]
jmp 0x42dbc5
mov dword [ebp - 4], 0xfffffffe
jmp 0x42dc57
push ebx
push ebx
push dword [ebp - 0x430]
call fcn.0040287c
push dword [ebp - 0x430]
push 1
push 4
lea eax, [ebp - 0x434]
push eax
call fcn.0040257f
mov edi, eax
push dword [ebp - 0x430]
push dword [ebp - 0x434]
push 0x1234
mov eax, esi
sub eax, dword [ebp - 0x434]
imul eax, eax, 0x1234
add eax, dword [ebp - 0x440]
push eax
call fcn.0040257f
add esp, 0x2c
mov dword [ebp - 0x468], eax
cmp dword [ebp - 0x438], ebx
je 0x42dcf2
xor eax, eax
cmp esi, ebx
jle 0x42dce0
mov ecx, dword [ebp - 0x440]
add ecx, 0x104c
mov edx, dword [ebp - 0x438]
mov edx, dword [edx + eax*4]
mov dword [ecx], edx
inc eax
add ecx, 0x1234
cmp eax, esi
jl 0x42dcca
push dword [ebp - 0x438]
call fcn.00401a00
pop ecx
mov dword [ebp - 0x438], ebx
xor eax, eax
inc eax
cmp edi, eax
jne 0x42e228
mov ecx, dword [ebp - 0x434]
cmp dword [ebp - 0x468], ecx
jne 0x42e228
mov dword [ebp - 4], eax
mov dword [ebp - 0x458], ebx
mov dword [ebp - 0x454], ebx
mov dword [ebp - 0x444], ebx
cmp dword [ebp - 0x444], ecx
jge 0x42dd7d
mov eax, dword [ebp - 0x444]
sub eax, ecx
add eax, esi
imul eax, eax, 0x1234
add eax, dword [ebp - 0x440]
mov ecx, dword [eax + 0x11b8]
cmp ecx, ebx
jbe 0x42dd6f
inc dword [ebp - 0x454]
push dword [ebp - 0x430]
push 1
push ecx
push dword [eax + 0x11b0]
call fcn.0040257f
add esp, 0x10
add dword [ebp - 0x458], eax
inc dword [ebp - 0x444]
mov ecx, dword [ebp - 0x434]
jmp 0x42dd24
mov eax, dword [ebp - 0x454]
cmp dword [ebp - 0x458], eax
jge 0x42ddfe
cmp dword [ebp - 0x430], ebx
je 0x42dda4
mov ecx, dword [ebp - 0x430]
call fcn.00475e84
mov dword [ebp - 0x430], ebx
mov eax, dword [ebp - 0x448]
mov ecx, dword [ebp - 0x450]
mov edx, dword [eax + ecx*4 + 0x198]
call fcn.00437114
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.0047129f
add esp, 0x1c
cmp dword [ebp - 0x438], ebx
je 0x42ddf2
push dword [ebp - 0x438]
call fcn.00401a00
mov dword [ebp - 0x438], ebx
pop ecx
mov dword [ebp - 4], 0xfffffffe
jmp 0x42e283
mov dword [ebp - 0x458], ebx
mov dword [ebp - 0x454], ebx
mov dword [ebp - 0x444], ebx
cmp dword [ebp - 0x444], ecx
jge 0x42de69
mov eax, dword [ebp - 0x444]
sub eax, ecx
add eax, esi
imul eax, eax, 0x1234
add eax, dword [ebp - 0x440]
mov ecx, dword [eax + 0x11c0]
cmp ecx, ebx
jbe 0x42de5b
inc dword [ebp - 0x454]
push dword [ebp - 0x430]
push 1
push ecx
push dword [eax + 0x11bc]
call fcn.0040257f
add esp, 0x10
add dword [ebp - 0x458], eax
inc dword [ebp - 0x444]
mov ecx, dword [ebp - 0x434]
jmp 0x42de10
mov eax, dword [ebp - 0x454]
cmp dword [ebp - 0x458], eax
jl 0x42dd8b
mov dword [ebp - 4], 0xfffffffe
cmp dword [ebp - 0x430], ebx
je 0x42de95
mov ecx, dword [ebp - 0x430]
call fcn.00475e84
push 0xa25
push str.TillSheet.c
push 1
call fcn.0045f6b5
add esp, 0xc
call fcn.00419a8b
mov edi, eax
xor esi, esi
push dword [ebp - 0x44c]
lea eax, [ebp - 0x328]
push eax
call fcn.0047ed42
pop ecx
pop ecx
test eax, eax
jg 0x42df0d
call fcn.00419a8b
sub eax, edi
cmp eax, 0x3a98
ja 0x42df17
push 1
call fcn.0045c4f7
pop ecx
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa38
push str.TillSheet.c
push 1
call fcn.0045f6b5
add esp, 0xc
mov dword [ebp - 0x46c], ebx
inc esi
cmp esi, 7
jl 0x42deb2
jmp 0x42df17
mov dword [ebp - 0x46c], 1
push 1
call fcn.0045c4f7
pop ecx
cmp dword [ebp - 0x46c], ebx
jne 0x42e032
mov edi, dword [ebp - 0x448]
lea eax, [edi + 0x1094]
push eax
push dword [ebp - 0x44c]
call fcn.004365f4
pop ecx
pop ecx
test eax, eax
je 0x42dff7
mov byte [ebp - 0x120], bl
mov esi, 0x103
push esi
push ebx
lea eax, [ebp - 0x11f]
push eax
call fcn.00401f80
mov byte [ebp - 0x224], bl
push esi
push ebx
lea eax, [ebp - 0x223]
push eax
call fcn.00401f80
add esp, 0x18
cmp dword [0x5bad68], ebx
jne 0x42dff7
push dword [ebp - 0x44c]
lea edi, [esi + 1]
mov ecx, edi
lea eax, [ebp - 0x224]
call fcn.00435b27
pop ecx
mov esi, eax
call fcn.004359d7
mov eax, esi
push eax
push str.ServerSync_
push ebx
push ebx
call fcn.0044bd82
pop ecx
pop ecx
push eax
push str._s_s_s
push edi
lea eax, [ebp - 0x120]
push eax
call fcn.004362e2
mov dword [0x5bad68], 1
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x460]
push dword [ebp - 0x448]
call fcn.0042d84a
add esp, 0x24
mov dword [0x5bad68], ebx
jmp 0x42e285
push str._360_545_6605
mov eax, dword [ebp - 0x450]
mov edx, dword [edi + eax*4 + 0x198]
call fcn.00437114
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.0047129f
mov dword [ebp - 0x434], ebx
jmp 0x42e19b
call fcn.0044bad2
test eax, eax
jne 0x42e19e
cmp dword [ebp - 0x470], ebx
je 0x42e19e
mov byte [ebp - 0x224], bl
mov esi, 0x103
push esi
push ebx
lea eax, [ebp - 0x223]
push eax
call fcn.00401f80
mov byte [ebp - 0x120], bl
push esi
push ebx
lea eax, [ebp - 0x11f]
push eax
call fcn.00401f80
push dword [ebp - 0x44c]
lea ecx, [esi + 1]
lea eax, [ebp - 0x224]
call fcn.00435b27
add esp, 0x1c
mov esi, eax
call fcn.004359d7
push str._tmpP2_NODEL_tills_
call fcn.0045bba0
push eax
mov edi, str._s_s
push edi
push 0x104
lea eax, [ebp - 0x120]
push eax
call fcn.004362e2
lea eax, [ebp - 0x120]
push eax
call fcn.004732c3
add esp, 0x18
test eax, eax
jne 0x42e0d8
push ebx
lea ecx, [ebp - 0x120]
call fcn.00474c86
pop ecx
lea eax, [ebp - 0x224]
push eax
mov ebx, 0x104
mov eax, ebx
lea esi, [ebp - 0x120]
call fcn.00436c1c
mov eax, esi
push eax
lea eax, [ebp - 0x328]
push eax
call fcn.0047ed42
push 0xa72
mov esi, str.TillSheet.c
push esi
push 0x10
call fcn.0045f6b5
add esp, 0x18
push str._tmpP2_NODEL_tills_
call fcn.0045bba0
push eax
push edi
push ebx
lea eax, [ebp - 0x120]
push eax
call fcn.004362e2
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x224]
call fcn.004751bb
push 0x10
call fcn.0045c4f7
push 0xa7b
push esi
push 0x40
call fcn.0045f6b5
add esp, 0x28
push str._tmpP2_NODEL_tills_
call fcn.0045bba0
push eax
push edi
push ebx
lea eax, [ebp - 0x120]
push eax
call fcn.004362e2
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x224]
call fcn.004751bb
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x224]
call fcn.004751bb
push 0x40
call fcn.0045c4f7
add esp, 0x20
lea eax, [ebp - 0x328]
call fcn.00474fee
mov eax, dword [ebp - 0x434]
jmp 0x42e285
cmp dword [ebp - 0x430], ebx
je 0x42e23b
mov ecx, dword [ebp - 0x430]
call fcn.00475e84
mov eax, dword [ebp - 0x448]
mov ecx, dword [ebp - 0x450]
mov edx, dword [eax + ecx*4 + 0x198]
call fcn.00437114
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.0047129f
add esp, 0x1c
cmp dword [ebp - 0x438], ebx
je 0x42e283
push dword [ebp - 0x438]
call fcn.00401a00
pop ecx
xor eax, eax
call fcn.00487898
ret