Function at 0x43b698
Capabilities:
Write file on windows

Disassembly:
push 0x46c
push 0x506a48
call fcn.004c6a30
mov edi, dword [ebp + 8]
mov dword [ebp - 0x454], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x468], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x458], 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 dword [ebp - 0x448], ebx
mov dword [ebp - 0x440], ebx
mov byte [ebp - 0x328], bl
push esi
push ebx
lea eax, [ebp - 0x327]
push eax
call fcn.00401f80
mov dword [ebp - 0x478], ebx
mov dword [ebp - 0x470], ebx
lea ebx, [ebp - 0x440]
lea esi, [ebp - 0x448]
call fcn.004ab898
call fcn.004accd7
mov dword [ebp - 0x44c], eax
call fcn.004adea3
xor ebx, ebx
push ebx
push ebx
call fcn.004acd0b
xor esi, esi
inc esi
push esi
push 7
call fcn.004af5f1
add esp, 0x28
call fcn.004ad6f4
test eax, eax
jne 0x43b7d7
cmp edi, ebx
je 0x43b7ab
cmp dword [ebp - 0x468], ebx
jge 0x43b76d
mov ecx, edi
call fcn.0047f818
mov dword [ebp - 0x468], eax
mov edx, dword [ebp - 0x468]
mov ecx, edi
call fcn.0047fee5
test eax, eax
je 0x43b7ab
cmp dword [edi + 0x2140], ebx
je 0x43b7df
mov dword [ebp - 0x46c], esi
mov ecx, dword [edi + 0x688]
mov dword [ebp - 0x444], ecx
or eax, 0xffffffff
sub eax, dword [edi + 0x2144]
mov dword [ebp - 0x470], eax
cmp ecx, ebx
jne 0x43b803
push ebx
push 0xffffffffffffffff
call fcn.004af5f1
push dword [ebp - 0x440]
push dword [ebp - 0x448]
call fcn.004acd0b
add esp, 0x10
cmp dword [ebp - 0x44c], ebx
je 0x43b7d7
push 0x64
pop eax
call fcn.004adda0
xor eax, eax
call fcn.004c6a78
ret
mov dword [ebp - 0x46c], ebx
mov eax, dword [ebp - 0x468]
mov eax, dword [edi + eax*4 + 0x4f4]
mov dword [ebp - 0x444], eax
cmp eax, ebx
je 0x43b7ab
cmp dword [eax + 8], ebx
jle 0x43b7ab
mov ecx, eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x474], eax
mov ecx, edi
call fcn.0047f818
mov dword [ebp - 0x464], eax
cmp eax, ebx
jge 0x43b829
mov eax, dword [ebp - 0x468]
mov dword [ebp - 0x464], eax
push ebx
push ebx
call fcn.0046209e
pop ecx
pop ecx
mov edi, eax
call fcn.004a142a
test eax, eax
jne 0x43b84f
push ebx
push ebx
push ebx
call fcn.0046209e
pop ecx
pop ecx
mov ecx, eax
call fcn.004a1173
pop ecx
call fcn.0047b1dc
mov dword [ebp - 0x47c], ebx
mov edx, dword [ebp - 0x458]
call fcn.00445b2f
test eax, eax
je 0x43b8b7
cmp dword [ebp - 0x458], ebx
jne 0x43b87b
mov dword [ebp - 0x47c], 1
mov edx, dword [ebp - 0x468]
lea esi, [ebp - 0x42c]
mov ecx, dword [ebp - 0x454]
call fcn.00437e05
cmp dword [ebp - 0x46c], ebx
je 0x43b8ab
mov edx, dword [ebp - 0x470]
mov ecx, dword [ebp - 0x454]
call fcn.00437e05
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x458], eax
push dword [ebp - 0x458]
mov ecx, 0x104
lea eax, [ebp - 0x328]
call fcn.00444961
mov esi, eax
call fcn.00444789
push ebx
push ebx
call fcn.004623aa
mov edx, eax
mov ecx, esi
call fcn.00446954
mov dword [ebp - 0x46c], ebx
mov edi, 0x989
push edi
push str.TillSheet.c
mov esi, 0x4cc8b8
mov edx, esi
lea ecx, [ebp - 0x328]
call fcn.004a0001
add esp, 0x14
jmp 0x43b93b
cmp dword [ebp - 0x46c], 3
jg 0x43b945
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x46c]
push edi
push str.TillSheet.c
mov edx, esi
lea ecx, [ebp - 0x328]
call fcn.004a0001
pop ecx
pop ecx
cmp eax, ebx
mov dword [ebp - 0x430], eax
je 0x43b90c
cmp dword [ebp - 0x430], ebx
jne 0x43b9a4
push 0x4ce1b0
mov eax, dword [ebp - 0x464]
mov ecx, dword [ebp - 0x454]
mov edx, dword [ecx + eax*4 + 0x198]
call fcn.00446039
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.0049aacd
push ebx
push 0xffffffffffffffff
call fcn.004af5f1
push dword [ebp - 0x440]
push dword [ebp - 0x448]
call fcn.004acd0b
add esp, 0x30
jmp 0x43b7c7
call fcn.00461dee
mov esi, dword [ebp - 0x474]
cmp eax, ebx
jne 0x43b9ba
mov eax, 0x110
jmp 0x43b9c2
dec eax
neg eax
sbb eax, eax
add eax, 0x20
cmp esi, eax
mov dword [ebp - 0x434], eax
jg 0x43b9d2
mov dword [ebp - 0x434], esi
cmp dword [ebp - 0x434], esi
jge 0x43ba25
xor edx, edx
lea eax, [esi - 1]
cmp eax, ebx
jl 0x43ba08
mov ecx, eax
imul ecx, ecx, 0x1234
mov edi, dword [ebp - 0x444]
lea ecx, [ecx + edi + 0x8dc]
cmp dword [ecx], ebx
jne 0x43ba08
inc edx
dec eax
sub ecx, 0x1234
cmp eax, ebx
jge 0x43b9f8
cmp edx, dword [ebp - 0x434]
jle 0x43ba25
mov dword [ebp - 0x434], edx
mov eax, 0x20a
cmp edx, eax
jle 0x43ba25
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x43c], ebx
cmp esi, ebx
jle 0x43ba4c
mov eax, dword [ebp - 0x444]
add eax, 0x1040
mov ecx, esi
mov dword [ebp - 0x43c], esi
mov dword [eax], ebx
add eax, 0x1234
dec ecx
jne 0x43ba42
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 0x43ba9a
mov dword [ebp - 0x43c], ebx
cmp esi, ebx
jle 0x43ba9a
mov eax, dword [ebp - 0x444]
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 0x43ba7a
mov dword [ebp - 4], ebx
mov dword [ebp - 0x43c], ebx
cmp dword [ebp - 0x43c], esi
jge 0x43baf6
mov esi, dword [ebp - 0x43c]
imul esi, esi, 0x1234
add esi, dword [ebp - 0x444]
mov ebx, dword [esi + 0x11b0]
call fcn.00444a70
mov dword [esi + 0x11b8], eax
mov ecx, dword [esi + 0x11bc]
call fcn.00444a5a
lea eax, [eax*4 + 4]
mov dword [esi + 0x11c0], eax
inc dword [ebp - 0x43c]
xor ebx, ebx
mov esi, dword [ebp - 0x474]
jmp 0x43baa3
mov dword [ebp - 4], 0xfffffffe
jmp 0x43bb35
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 - 0x444]
push eax
call fcn.0040257f
add esp, 0x2c
mov dword [ebp - 0x470], eax
cmp dword [ebp - 0x438], ebx
je 0x43bbd0
xor eax, eax
cmp esi, ebx
jle 0x43bbbe
mov ecx, dword [ebp - 0x444]
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 0x43bba8
push dword [ebp - 0x438]
call fcn.00401a00
pop ecx
mov dword [ebp - 0x438], ebx
xor eax, eax
inc eax
cmp edi, eax
jne 0x43c1d2
mov ecx, dword [ebp - 0x434]
cmp dword [ebp - 0x470], ecx
jne 0x43c1d2
mov dword [ebp - 4], eax
mov dword [ebp - 0x460], ebx
mov dword [ebp - 0x45c], ebx
mov dword [ebp - 0x450], ebx
cmp dword [ebp - 0x450], ecx
jge 0x43bc5b
mov eax, dword [ebp - 0x450]
sub eax, ecx
add eax, esi
imul eax, eax, 0x1234
add eax, dword [ebp - 0x444]
mov ecx, dword [eax + 0x11b8]
cmp ecx, ebx
jbe 0x43bc4d
inc dword [ebp - 0x45c]
push dword [ebp - 0x430]
push 1
push ecx
push dword [eax + 0x11b0]
call fcn.0040257f
add esp, 0x10
add dword [ebp - 0x460], eax
inc dword [ebp - 0x450]
mov ecx, dword [ebp - 0x434]
jmp 0x43bc02
mov eax, dword [ebp - 0x45c]
cmp dword [ebp - 0x460], eax
jge 0x43bd09
cmp dword [ebp - 0x430], ebx
je 0x43bc86
mov ecx, dword [ebp - 0x430]
call fcn.004a2aec
mov dword [ebp - 0x430], ebx
mov ecx, dword [ebp - 0x464]
mov eax, dword [ebp - 0x454]
mov edx, dword [eax + ecx*4 + 0x198]
call fcn.00446039
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.0049aacd
push ebx
push 0xffffffffffffffff
call fcn.004af5f1
push dword [ebp - 0x440]
push dword [ebp - 0x448]
call fcn.004acd0b
add esp, 0x2c
cmp dword [ebp - 0x438], ebx
je 0x43bced
push dword [ebp - 0x438]
call fcn.00401a00
pop ecx
mov dword [ebp - 0x438], ebx
cmp dword [ebp - 0x44c], ebx
je 0x43bcfd
push 0x64
pop eax
call fcn.004adda0
mov dword [ebp - 4], 0xfffffffe
jmp 0x43b7d7
mov dword [ebp - 0x460], ebx
mov dword [ebp - 0x45c], ebx
mov dword [ebp - 0x450], ebx
cmp dword [ebp - 0x450], ecx
jge 0x43bd74
mov eax, dword [ebp - 0x450]
sub eax, ecx
add eax, esi
imul eax, eax, 0x1234
add eax, dword [ebp - 0x444]
mov ecx, dword [eax + 0x11c0]
cmp ecx, ebx
jbe 0x43bd66
inc dword [ebp - 0x45c]
push dword [ebp - 0x430]
push 1
push ecx
push dword [eax + 0x11bc]
call fcn.0040257f
add esp, 0x10
add dword [ebp - 0x460], eax
inc dword [ebp - 0x450]
mov ecx, dword [ebp - 0x434]
jmp 0x43bd1b
mov eax, dword [ebp - 0x45c]
cmp dword [ebp - 0x460], eax
jl 0x43bc6d
mov dword [ebp - 4], 0xfffffffe
cmp dword [ebp - 0x430], ebx
je 0x43bda0
mov ecx, dword [ebp - 0x430]
call fcn.004a2aec
call fcn.004ad6f4
test eax, eax
jne 0x43b7d7
push 0xa25
mov esi, str.TillSheet.c
push esi
push 1
call fcn.0047a356
add esp, 0xc
call fcn.004ad6f4
test eax, eax
je 0x43bdd8
push 1
call fcn.00476372
pop ecx
jmp 0x43b7d7
call fcn.0041df75
mov dword [ebp - 0x470], eax
xor edi, edi
push dword [ebp - 0x458]
lea eax, [ebp - 0x328]
push eax
call fcn.004b23bf
pop ecx
pop ecx
test eax, eax
jg 0x43be40
call fcn.0041df75
sub eax, dword [ebp - 0x470]
cmp eax, 0x3a98
ja 0x43be4a
push 1
call fcn.00476372
pop ecx
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa38
push esi
push 1
call fcn.0047a356
add esp, 0xc
mov dword [ebp - 0x478], ebx
inc edi
cmp edi, 7
jl 0x43bde5
jmp 0x43be4a
mov dword [ebp - 0x478], 1
push 1
call fcn.00476372
pop ecx
cmp dword [ebp - 0x478], ebx
jne 0x43bf66
mov esi, dword [ebp - 0x454]
lea eax, [esi + 0x1094]
push eax
push dword [ebp - 0x458]
call fcn.004454c3
pop ecx
pop ecx
test eax, eax
je 0x43bf28
mov byte [ebp - 0x120], bl
mov edi, 0x103
push edi
push ebx
lea eax, [ebp - 0x11f]
push eax
call fcn.00401f80
mov byte [ebp - 0x224], bl
push edi
push ebx
lea eax, [ebp - 0x223]
push eax
call fcn.00401f80
add esp, 0x18
cmp dword [0x61bfac], ebx
jne 0x43bf28
push dword [ebp - 0x458]
inc edi
mov ecx, edi
lea eax, [ebp - 0x224]
call fcn.00444961
pop ecx
mov esi, eax
call fcn.00444789
mov eax, esi
push eax
push str.ServerSync_
push ebx
push ebx
call fcn.0046209e
pop ecx
pop ecx
push eax
push 0x4d48e0
push edi
lea eax, [ebp - 0x120]
push eax
call fcn.004451a8
mov dword [0x61bfac], 1
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x468]
push dword [ebp - 0x454]
call fcn.0043b698
add esp, 0x24
mov dword [0x61bfac], ebx
jmp 0x43b7d9
push 0x4ce1b0
mov eax, dword [ebp - 0x464]
mov edx, dword [esi + eax*4 + 0x198]
call fcn.00446039
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.0049aacd
add esp, 0x20
mov dword [ebp - 0x434], ebx
jmp 0x43c100
call fcn.00461dee
test eax, eax
jne 0x43c100
cmp dword [ebp - 0x47c], ebx
je 0x43c100
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 - 0x458]
lea ecx, [esi + 1]
lea eax, [ebp - 0x224]
call fcn.00444961
add esp, 0x1c
mov esi, eax
call fcn.00444789
push str._tmpP2_NODEL_tills_
call fcn.004757fe
push eax
mov edi, str._s_s
push edi
push 0x104
lea eax, [ebp - 0x120]
push eax
call fcn.004451a8
lea eax, [ebp - 0x120]
push eax
call fcn.0049f690
add esp, 0x18
test eax, eax
jne 0x43c00c
push ebx
lea ecx, [ebp - 0x120]
call fcn.004a1173
pop ecx
lea eax, [ebp - 0x224]
push eax
mov eax, 0x104
lea esi, [ebp - 0x120]
call fcn.00445aee
mov eax, esi
push eax
lea eax, [ebp - 0x328]
push eax
call fcn.004b23bf
push str._nBacking_up_invoice_registrar...
call fcn.004adb65
push 0xa72
mov esi, str.TillSheet.c
push esi
push 0x10
call fcn.0047a356
add esp, 0x1c
push str._tmpP2_NODEL_tills_
call fcn.004757fe
push eax
push edi
push 0x104
lea eax, [ebp - 0x120]
push eax
call fcn.004451a8
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x224]
call fcn.004a16a8
push 0x10
call fcn.00476372
push str.DONE_
call fcn.004adb65
push str._nBacking_up_sales_data...
call fcn.004adb65
push 0xa7b
push esi
push 0x40
call fcn.0047a356
add esp, 0x30
push str._tmpP2_NODEL_tills_
call fcn.004757fe
push eax
push edi
push 0x104
lea eax, [ebp - 0x120]
push eax
call fcn.004451a8
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x224]
call fcn.004a16a8
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x224]
call fcn.004a16a8
push 0x40
call fcn.00476372
push str.DONE__n
call fcn.004adb65
add esp, 0x24
lea eax, [ebp - 0x328]
call fcn.004a14db
push ebx
push 0xffffffffffffffff
call fcn.004af5f1
push dword [ebp - 0x440]
push dword [ebp - 0x448]
call fcn.004acd0b
add esp, 0x10
cmp dword [ebp - 0x44c], ebx
je 0x43c137
push 0x64
pop eax
call fcn.004adda0
mov eax, dword [ebp - 0x434]
jmp 0x43b7d9
cmp dword [ebp - 0x430], ebx
je 0x43c1e5
mov ecx, dword [ebp - 0x430]
call fcn.004a2aec
mov eax, dword [ebp - 0x454]
mov ecx, dword [ebp - 0x464]
mov edx, dword [eax + ecx*4 + 0x198]
call fcn.00446039
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.0049aacd
push ebx
push 0xffffffffffffffff
call fcn.004af5f1
push dword [ebp - 0x440]
push dword [ebp - 0x448]
call fcn.004acd0b
add esp, 0x2c
cmp dword [ebp - 0x438], ebx
je 0x43b7c7
push dword [ebp - 0x438]
call fcn.00401a00
pop ecx
jmp 0x43b7c7