Function at 0x47b769
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a0
mov eax, dword [0x5005d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x31
mov dword [ebp - 0x364], eax
lea eax, [ebp - 0x3b]
push ebx
push eax
mov dword [ebp - 0x368], edi
mov dword [ebp - 0x358], ebx
mov dword [ebp - 0x388], ebx
mov byte [ebp - 0x3c], bl
call fcn.004a7110
add esp, 0xc
mov esi, 0x103
push esi
lea eax, [ebp - 0x24b]
push ebx
push eax
mov byte [ebp - 0x24c], bl
call fcn.004a7110
add esp, 0xc
push esi
lea eax, [ebp - 0x353]
push ebx
push eax
mov byte [ebp - 0x354], bl
call fcn.004a7110
add esp, 0xc
cmp edi, ebx
mov dword [ebp - 0x38c], ebx
je 0x47bb52
mov eax, dword [ebp + 0xc]
cmp eax, ebx
jl 0x47b801
cmp eax, dword [edi]
jge 0x47bb52
mov ecx, edi
call fcn.0043673b
cmp eax, ebx
mov dword [ebp - 0x370], eax
jge 0x47b819
push 0x4e7cb0
jmp 0x47b826
mov edx, dword [edi + eax*4 + 0x198]
call fcn.0047757f
push eax
push 0x32
pop ecx
lea eax, [ebp - 0x3c]
call fcn.00475883
pop ecx
call fcn.0040a605
test eax, eax
jne 0x47bb52
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x35c], ebx
mov dword [ebp - 0x374], ebx
call fcn.004757d4
lea eax, [ebp - 0x354]
call fcn.004757d4
mov ecx, dword [ebp - 0x364]
push 0x2710
call fcn.00418f36
test eax, eax
pop ecx
mov edi, 0x104
je 0x47b9fa
push dword [ebp - 0x364]
mov ecx, edi
lea eax, [ebp - 0x354]
call fcn.00475883
pop ecx
mov esi, eax
call fcn.00475b80
mov eax, esi
push eax
mov ecx, edi
lea eax, [ebp - 0x24c]
call fcn.00475883
pop ecx
push ebx
push ebx
call fcn.00459ede
pop ecx
pop ecx
mov edx, eax
lea ecx, [ebp - 0x24c]
call fcn.00475e0d
mov eax, esi
push eax
push ebx
push ebx
call fcn.00459ede
pop ecx
pop ecx
push eax
push dword [ebp - 0x364]
call fcn.004013b5
add esp, 0xc
cmp eax, ebx
jg 0x47b9cc
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x19
call esi
lea eax, [ebp - 0x24c]
call fcn.004189f3
lea ecx, [ebp - 0x24c]
call fcn.0041814a
push 0xf
call esi
lea eax, [ebp - 0x354]
push eax
push ebx
push ebx
call fcn.00459ede
pop ecx
pop ecx
push eax
push dword [ebp - 0x364]
call fcn.004013b5
add esp, 0xc
cmp eax, ebx
jg 0x47b9cc
xor eax, eax
mov word [ebp - 0x39c], bx
lea edi, [ebp - 0x39a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x478
stosw word es:[edi], ax
lea eax, [ebp - 0x39c]
push str..TillSheet.c
push eax
call fcn.004998ed
add esp, 0xc
push 1
lea eax, [ebp - 0x24c]
push eax
sub esp, 0x10
lea esi, [ebp - 0x39c]
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.00498877
add esp, 0x10
push eax
push str._s__s__Up2Ld__.dat
push ebx
call fcn.00476e51
add esp, 0x10
push eax
push dword [ebp - 0x364]
call fcn.0041887a
mov ecx, dword [ebp - 0x364]
add esp, 0xc
push 0x47e
push str..TillSheet.c
mov edx, 0x4c520c
call fcn.0041a89d
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x35c], eax
je 0x47b9fa
mov dword [ebp - 0x374], 1
jmp 0x47b9ee
push 0x484
push str..TillSheet.c
mov edx, 0x4c520c
lea ecx, [ebp - 0x24c]
call fcn.0041a89d
pop ecx
pop ecx
mov dword [ebp - 0x35c], eax
cmp dword [ebp - 0x35c], ebx
jne 0x47bb2f
mov edx, dword [ebp - 0x364]
call fcn.00475851
test eax, eax
jne 0x47bb2f
cmp dword [0x61094c], ebx
jne 0x47bb2f
push 0x103
lea eax, [ebp - 0x143]
push ebx
push eax
mov byte [ebp - 0x144], bl
call fcn.004a7110
add esp, 0xc
push ebx
lea edi, [ebp - 0x144]
call fcn.004412cb
pop ecx
mov eax, edi
push eax
push dword [ebp - 0x364]
call fcn.00476422
test eax, eax
pop ecx
pop ecx
je 0x47bac6
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x368]
call fcn.0047f035
mov esi, edi
call fcn.00475b80
mov eax, edi
push eax
push dword [ebp - 0x364]
call fcn.00476422
test eax, eax
pop ecx
pop ecx
je 0x47bb2f
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x368]
call fcn.0047f035
call fcn.00418e6b
test eax, eax
je 0x47bb2f
mov eax, edi
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x368]
mov dword [0x61094c], 1
call fcn.0047b769
add esp, 0xc
mov dword [0x61094c], ebx
jmp 0x47bb54
mov eax, dword [ebp - 0x370]
cmp dword [ebp + 0xc], eax
jne 0x47bb2f
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x368]
lea eax, [ebp - 0x144]
call fcn.0047efcf
lea esi, [ebp - 0x144]
call fcn.00475b80
mov eax, esi
push eax
push dword [ebp - 0x364]
call fcn.00476422
test eax, eax
pop ecx
pop ecx
je 0x47bb2f
mov edx, dword [ebp + 0xc]
mov eax, esi
mov esi, dword [ebp - 0x368]
call fcn.0047efcf
lea edi, [ebp - 0x144]
call fcn.00418e6b
test eax, eax
je 0x47bb2f
mov eax, edi
push eax
push dword [ebp + 0xc]
push esi
jmp 0x47baa9
call fcn.0040a605
test eax, eax
je 0x47bb63
mov ecx, dword [ebp - 0x35c]
cmp ecx, ebx
je 0x47bb52
call fcn.0041acca
lea eax, [ebp - 0x24c]
call fcn.004189f3
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a69f5
leave
ret
cmp dword [ebp - 0x35c], ebx
mov esi, 0x1388
je 0x47bc0c
push dword [ebp - 0x35c]
lea eax, [ebp - 0x358]
push 1
push 4
push eax
call fcn.004a7455
add esp, 0x10
cmp eax, 1
jne 0x47bba6
cmp dword [ebp - 0x358], ebx
jl 0x47bba6
cmp dword [ebp - 0x358], 0x8000
jl 0x47bc12
mov ecx, dword [ebp - 0x35c]
call fcn.0041acca
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x35c], ebx
call fcn.004189f3
call fcn.00498efc
sub eax, dword [0x611b84]
cmp eax, esi
jbe 0x47bc02
call fcn.0040ef2e
test eax, eax
jne 0x47bc02
lea eax, [ebp - 0x3c]
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.0041e261
add esp, 0x14
test eax, eax
jne 0x47bc02
push 3
call fcn.004339a5
call fcn.00498efc
mov dword [0x611b84], eax
mov dword [ebp - 0x358], ebx
mov eax, dword [ebp - 0x358]
mov edi, 0x1234
add eax, 0xa
push edi
push eax
call fcn.004a5f90
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x36c], eax
jne 0x47bc99
mov ecx, dword [ebp - 0x35c]
cmp ecx, ebx
je 0x47bc4d
call fcn.0041acca
lea eax, [ebp - 0x24c]
call fcn.004189f3
call fcn.00498efc
sub eax, dword [0x611b88]
cmp eax, esi
jbe 0x47bc8a
lea eax, [ebp - 0x3c]
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.0041e261
add esp, 0x14
test eax, eax
jne 0x47bc8a
call fcn.0040ef2e
test eax, eax
je 0x47bbfb
call fcn.00498efc
mov dword [0x611b88], eax
jmp 0x47bb52
cmp dword [ebp - 0x35c], ebx
je 0x47c03f
cmp dword [ebp - 0x358], ebx
mov dword [ebp - 0x360], ebx
jle 0x47bf3a
mov ebx, dword [ebp - 0x36c]
lea eax, [ebx + 0xdeb]
mov dword [ebp - 0x378], eax
lea eax, [ebx + 4]
mov dword [ebp - 0x37c], eax
push dword [ebp - 0x35c]
lea eax, [ebp - 0x388]
push 1
push 4
push eax
call fcn.004a7455
mov dword [ebp - 0x370], eax
mov eax, dword [ebp - 0x388]
add esp, 0x10
xor esi, esi
cmp eax, edi
jbe 0x47bd12
and dword [ebp - 0x374], 0
lea esi, [eax - 0x1234]
mov eax, edi
mov dword [ebp - 0x388], eax
push dword [ebp - 0x35c]
add eax, 0xfffffffc
push 1
push eax
push dword [ebp - 0x37c]
call fcn.004a7455
add esp, 0x10
test esi, esi
mov dword [ebp - 0x384], eax
mov dword [ebx], edi
jle 0x47bd49
push 1
push esi
push dword [ebp - 0x35c]
call fcn.004a665f
add esp, 0xc
cmp dword [ebp - 0x370], 1
jne 0x47be3f
cmp dword [ebp - 0x384], 1
jne 0x47be3f
cmp dword [ebp - 0x374], 0
je 0x47be16
cmp dword [ebp - 0x38c], 0
jne 0x47bd83
mov dword [ebp - 0x38c], 1
mov eax, dword [ebx]
mov esi, 0xe19
jmp 0x47bdaa
cmp eax, 0xe59
mov cl, byte [ebx + eax]
jl 0x47bd9f
mov byte [ebx + eax + 0x100], cl
jmp 0x47bda6
mov byte [ebx + eax + 0xfe], cl
mov byte [ebx + eax], 0
dec eax
cmp eax, esi
jge 0x47bd8c
mov eax, dword [ebp - 0x378]
mov dword [ebp - 0x380], 4
cmp dword [ebp - 0x380], 1
mov dword [ebp - 0x384], eax
jl 0x47be00
mov esi, dword [ebp - 0x384]
mov eax, dword [ebp - 0x380]
lea edi, [esi + 1]
mov dword [ebp - 0x370], eax
movzx eax, byte [esi]
push eax
xor eax, eax
call fcn.004765d4
mov byte [esi], 0
dec esi
dec dword [ebp - 0x370]
pop ecx
jne 0x47bde3
mov edi, 0x1234
dec dword [ebp - 0x380]
sub dword [ebp - 0x384], 0x32
cmp dword [ebp - 0x380], 1
jge 0x47bdce
cmp dword [ebx + 0x2c], 0
jg 0x47bf12
dec dword [ebp - 0x360]
sub dword [ebp - 0x37c], edi
sub dword [ebp - 0x378], edi
sub ebx, edi
dec dword [ebp - 0x358]
jmp 0x47bf12
mov ecx, dword [ebp - 0x35c]
and dword [ebp - 0x374], 0
call fcn.0041acca
and dword [ebp - 0x35c], 0
lea eax, [ebp - 0x24c]
call fcn.004189f3
call fcn.00498efc
sub eax, dword [0x611b8c]
cmp eax, 0x1388
jbe 0x47bee1
push 0x103
lea eax, [ebp - 0x143]
push 0
push eax
mov byte [ebp - 0x144], 0
call fcn.004a7110
add esp, 0xc
push dword [ebp - 0x364]
mov ecx, 0x104
lea eax, [ebp - 0x144]
call fcn.00475883
pop ecx
mov esi, eax
call fcn.00475b80
mov eax, esi
push eax
lea eax, [ebp - 0x3c]
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.0041e261
add esp, 0x18
test eax, eax
jne 0x47bee1
call fcn.0040ef2e
test eax, eax
je 0x47c0f1
call fcn.00498efc
mov dword [0x611b8c], eax
mov eax, dword [ebp - 0x358]
add eax, 0xa
imul eax, eax, 0x1234
push eax
push 0
push dword [ebp - 0x36c]
call fcn.004a7110
add esp, 0xc
and dword [ebp - 0x358], 0
inc dword [ebp - 0x360]
mov eax, dword [ebp - 0x360]
add dword [ebp - 0x37c], edi
add dword [ebp - 0x378], edi
add ebx, edi
cmp eax, dword [ebp - 0x358]
jl 0x47bcd2
xor ebx, ebx
cmp dword [ebp - 0x358], ebx
mov dword [ebp - 0x360], ebx
jle 0x47bfa8
mov esi, dword [ebp - 0x36c]
add esi, 0x11b8
mov eax, dword [esi]
cmp eax, ebx
jbe 0x47bf92
inc eax
push 1
push eax
call fcn.004a5f90
cmp eax, ebx
pop ecx
pop ecx
mov dword [esi - 8], eax
je 0x47bf90
push dword [ebp - 0x35c]
push 1
push dword [esi]
push eax
call fcn.004a7455
add esp, 0x10
cmp eax, 1
je 0x47bf92
push dword [esi - 8]
call fcn.004a5de4
pop ecx
mov dword [esi - 8], ebx
mov dword [esi], ebx
inc dword [ebp - 0x360]
mov eax, dword [ebp - 0x360]
add esi, edi
cmp eax, dword [ebp - 0x358]
jl 0x47bf54
cmp dword [ebp - 0x358], ebx
mov dword [ebp - 0x360], ebx
jle 0x47c021
mov esi, dword [ebp - 0x36c]
add esi, 0x11c0
mov eax, dword [esi]
cmp eax, ebx
jbe 0x47c00b
add eax, 8
mov dword [esi + 0x24], eax
add eax, 8
push 1
push eax
call fcn.004a5f90
cmp eax, ebx
pop ecx
pop ecx
mov dword [esi - 4], eax
je 0x47c006
push dword [ebp - 0x35c]
push 1
push dword [esi]
push eax
call fcn.004a7455
add esp, 0x10
cmp eax, 1
je 0x47c00b
push dword [esi - 4]
call fcn.004a5de4
pop ecx
mov dword [esi - 4], ebx
mov dword [esi + 0x24], ebx
mov dword [esi], ebx
inc dword [ebp - 0x360]
mov eax, dword [ebp - 0x360]
add esi, edi
cmp eax, dword [ebp - 0x358]
jl 0x47bfc2
cmp dword [ebp - 0x35c], ebx
je 0x47c03f
mov ecx, dword [ebp - 0x35c]
call fcn.0041acca
lea eax, [ebp - 0x24c]
call fcn.004189f3
xor esi, esi
cmp dword [ebp - 0x358], ebx
jle 0x47c07b
mov ebx, dword [ebp - 0x36c]
mov eax, dword [ebp - 0x358]
add eax, 0xa
push eax
push dword [ebp - 0x358]
push dword [ebp + 0xc]
push dword [ebp - 0x368]
call fcn.0047c17c
add esp, 0x10
inc esi
add ebx, edi
cmp esi, dword [ebp - 0x358]
jl 0x47c04f
mov edx, dword [ebp - 0x36c]
xor eax, eax
mov ecx, dword [ebp - 0x358]
lea esi, [eax + ecx]
imul esi, esi, 0x1234
mov dword [esi + edx + 8], ecx
mov ecx, dword [ebp - 0x358]
lea esi, [ecx + 0xa]
add ecx, eax
imul ecx, ecx, 0x1234
inc eax
cmp eax, 0xa
mov dword [ecx + edx + 0xc], esi
jl 0x47c083
mov esi, dword [ebp + 0xc]
test esi, esi
mov ebx, dword [ebp - 0x368]
jge 0x47c102
cmp esi, 0xfffffffe
jl 0x47c11f
mov eax, 0x1b314
sub eax, esi
lea edi, [ebx + eax*4]
mov esi, dword [edi]
call fcn.0047e302
mov eax, dword [ebp - 0x36c]
mov dword [edi], eax
mov eax, dword [ebx + 0x2144]
mov eax, dword [ebx + eax*4 + 0x6cc54]
mov dword [ebx + 0x688], eax
jmp 0x47c11c
push dword [ebp - 0x36c]
call fcn.004a5de4
pop ecx
jmp 0x47bbfb
cmp esi, dword [ebx]
jge 0x47c11f
lea edi, [ebx + esi*4 + 0x4f4]
mov esi, dword [edi]
call fcn.0047e302
mov eax, dword [ebp - 0x36c]
mov dword [edi], eax
mov esi, dword [ebp + 0xc]
xor eax, eax
cmp dword [ebp - 0x374], eax
je 0x47c171
cmp dword [ebp - 0x358], eax
jle 0x47c171
xor edi, edi
push eax
inc edi
push edi
call fcn.00444314
test eax, eax
pop ecx
pop ecx
jne 0x47c145
xor edi, edi
jmp 0x47c14d
push 1
call fcn.00444ff3
pop ecx
push 0
push esi
push ebx
call fcn.0047d6bf
add esp, 0xc
test edi, edi
je 0x47c171
push 0x5af
push str..TillSheet.c
push 1
call fcn.004443bf
add esp, 0xc
mov eax, dword [ebp - 0x358]
jmp 0x47bb54