Function at 0x4220e7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a0
mov eax, dword [0x4832e4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x364], eax
mov eax, dword [ebp + 0x10]
xor edi, edi
push 0x31
mov dword [ebp - 0x36c], eax
lea eax, [ebp - 0x3b]
push edi
push eax
mov dword [ebp - 0x374], ebx
mov dword [ebp - 0x358], edi
mov dword [ebp - 0x38c], edi
mov byte [ebp - 0x3c], 0
call fcn.00401f80
add esp, 0xc
mov esi, 0x103
push esi
lea eax, [ebp - 0x24b]
push edi
push eax
mov byte [ebp - 0x24c], 0
call fcn.00401f80
add esp, 0xc
push esi
lea eax, [ebp - 0x353]
push edi
push eax
mov byte [ebp - 0x354], 0
call fcn.00401f80
add esp, 0xc
mov dword [ebp - 0x390], edi
cmp ebx, edi
je 0x4224a8
mov eax, dword [ebp - 0x364]
cmp eax, edi
jl 0x42218e
cmp eax, dword [ebx]
jge 0x4224a8
mov ecx, ebx
call fcn.0044fa08
mov dword [ebp - 0x370], eax
cmp eax, edi
jge 0x4221a6
push 0x47af08
jmp 0x4221b3
mov edx, dword [ebx + eax*4 + 0x198]
call fcn.00429f7a
push eax
push 0x32
pop ecx
lea eax, [ebp - 0x3c]
call fcn.00428a08
pop ecx
call fcn.0045e7f2
test eax, eax
jne 0x4224a8
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x35c], edi
mov dword [ebp - 0x384], edi
call fcn.00428a82
lea eax, [ebp - 0x354]
call fcn.00428a82
mov ecx, dword [ebp - 0x36c]
push 0x2710
call fcn.00459268
pop ecx
test eax, eax
je 0x42238e
push dword [ebp - 0x36c]
mov edi, 0x104
mov ecx, edi
lea eax, [ebp - 0x354]
call fcn.00428a08
pop ecx
mov esi, eax
call fcn.004288d0
mov eax, esi
push eax
mov ecx, edi
lea eax, [ebp - 0x24c]
call fcn.00428a08
pop ecx
xor edi, edi
push edi
push edi
call fcn.0043b3a3
pop ecx
pop ecx
mov edx, eax
lea ecx, [ebp - 0x24c]
call fcn.0042a78c
mov eax, esi
push eax
push edi
push edi
call fcn.0043b3a3
pop ecx
pop ecx
push eax
push dword [ebp - 0x36c]
call fcn.00461cba
add esp, 0xc
cmp eax, edi
jg 0x422359
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x19
call esi
lea eax, [ebp - 0x24c]
call fcn.0045946a
lea ecx, [ebp - 0x24c]
call fcn.00459dff
push 0xf
call esi
lea eax, [ebp - 0x354]
push eax
push edi
push edi
call fcn.0043b3a3
pop ecx
pop ecx
push eax
push dword [ebp - 0x36c]
call fcn.00461cba
add esp, 0xc
cmp eax, edi
jg 0x422359
xor eax, eax
mov word [ebp - 0x3a0], ax
lea edi, [ebp - 0x39e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x478
stosw word es:[edi], ax
mov ebx, str.TillSheet.c
lea eax, [ebp - 0x3a0]
push ebx
push eax
call fcn.0041a2fd
add esp, 0xc
push 1
lea eax, [ebp - 0x24c]
push eax
sub esp, 0x10
lea esi, [ebp - 0x3a0]
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.00419336
add esp, 0x10
push eax
push str._s__s__Up2Ld__.dat
push 0
call fcn.00429100
add esp, 0x10
push eax
push dword [ebp - 0x36c]
call fcn.004594be
mov ecx, dword [ebp - 0x36c]
add esp, 0xc
push 0x47e
push ebx
mov edx, 0x46f5ac
call fcn.004580b0
pop ecx
pop ecx
mov dword [ebp - 0x35c], eax
test eax, eax
je 0x422388
mov dword [ebp - 0x384], 1
jmp 0x42237b
push 0x484
push str.TillSheet.c
mov edx, 0x46f5ac
lea ecx, [ebp - 0x24c]
call fcn.004580b0
pop ecx
pop ecx
mov dword [ebp - 0x35c], eax
cmp dword [ebp - 0x35c], 0
jne 0x422485
mov ebx, dword [ebp - 0x374]
mov edi, dword [ebp - 0x36c]
mov edx, edi
call fcn.00429ac3
test eax, eax
jne 0x422485
cmp dword [0x58eda4], eax
jne 0x422485
push 0x103
push eax
mov byte [ebp - 0x144], al
lea eax, [ebp - 0x143]
push eax
call fcn.00401f80
add esp, 0xc
lea eax, [ebp - 0x144]
push eax
push edi
call fcn.004294c0
mov edx, dword [ebp - 0x364]
pop ecx
pop ecx
test eax, eax
je 0x42244d
lea eax, [ebp - 0x144]
mov ecx, ebx
call fcn.00420a40
lea esi, [ebp - 0x144]
call fcn.004288d0
mov eax, esi
push eax
push edi
call fcn.004294c0
pop ecx
pop ecx
test eax, eax
je 0x422485
mov edx, dword [ebp - 0x364]
mov eax, esi
mov ecx, ebx
call fcn.00420a40
lea edi, [ebp - 0x144]
call fcn.004593b9
test eax, eax
je 0x422485
mov eax, edi
push eax
push dword [ebp - 0x364]
mov dword [0x58eda4], 1
push ebx
call fcn.004220e7
add esp, 0xc
and dword [0x58eda4], 0
jmp 0x4224aa
cmp edx, dword [ebp - 0x370]
jne 0x422485
lea esi, [ebp - 0x144]
mov ecx, ebx
call fcn.0041f42d
call fcn.004288d0
mov eax, esi
push eax
push edi
call fcn.004294c0
pop ecx
pop ecx
test eax, eax
je 0x422485
mov edx, dword [ebp - 0x364]
mov ecx, ebx
call fcn.0041f42d
jmp 0x422419
call fcn.0045e7f2
test eax, eax
je 0x4224b9
mov ecx, dword [ebp - 0x35c]
test ecx, ecx
je 0x4224a8
call fcn.0045a2fe
lea eax, [ebp - 0x24c]
call fcn.0045946a
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
xor edi, edi
mov esi, 0x1388
mov ebx, str.NotGood.wav
cmp dword [ebp - 0x35c], edi
je 0x422563
push dword [ebp - 0x35c]
lea eax, [ebp - 0x358]
push 1
push 4
push eax
call fcn.00402244
add esp, 0x10
cmp eax, 1
jne 0x422503
cmp dword [ebp - 0x358], edi
jl 0x422503
cmp dword [ebp - 0x358], 0x8000
jl 0x422569
mov ecx, dword [ebp - 0x35c]
call fcn.0045a2fe
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x35c], edi
call fcn.0045946a
call fcn.004182de
sub eax, dword [0x58eda8]
cmp eax, esi
jbe 0x422559
call fcn.0045dc4a
test eax, eax
jne 0x422559
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 ebx
push 1
call fcn.0045684b
add esp, 0x14
test eax, eax
jne 0x422559
call fcn.0045408a
call fcn.004182de
mov dword [0x58eda8], eax
mov dword [ebp - 0x358], edi
mov eax, dword [ebp - 0x358]
mov edi, 0x1234
add eax, 0xa
push edi
push eax
call fcn.00401a3a
pop ecx
pop ecx
mov dword [ebp - 0x368], eax
test eax, eax
jne 0x4225ec
mov ecx, dword [ebp - 0x35c]
test ecx, ecx
je 0x4225a4
call fcn.0045a2fe
lea eax, [ebp - 0x24c]
call fcn.0045946a
call fcn.004182de
sub eax, dword [0x58edac]
cmp eax, esi
jbe 0x4225dd
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 ebx
push 1
call fcn.0045684b
add esp, 0x14
test eax, eax
jne 0x4225dd
call fcn.0045dc4a
test eax, eax
je 0x422554
call fcn.004182de
mov dword [0x58edac], eax
jmp 0x4224a8
cmp dword [ebp - 0x35c], 0
je 0x4229b5
and dword [ebp - 0x360], 0
cmp dword [ebp - 0x358], 0
jle 0x42288e
mov ebx, dword [ebp - 0x368]
lea eax, [ebx + 0xdeb]
mov dword [ebp - 0x380], eax
lea eax, [ebx + 4]
mov dword [ebp - 0x37c], eax
push dword [ebp - 0x35c]
lea eax, [ebp - 0x38c]
push 1
push 4
push eax
call fcn.00402244
mov dword [ebp - 0x370], eax
mov eax, dword [ebp - 0x38c]
add esp, 0x10
xor esi, esi
cmp eax, edi
jbe 0x422668
and dword [ebp - 0x384], 0
lea esi, [eax - 0x1234]
mov eax, edi
mov dword [ebp - 0x38c], eax
push dword [ebp - 0x35c]
add eax, 0xfffffffc
push 1
push eax
push dword [ebp - 0x37c]
call fcn.00402244
add esp, 0x10
mov dword [ebp - 0x378], eax
mov dword [ebx], edi
test esi, esi
jle 0x42269f
push 1
push esi
push dword [ebp - 0x35c]
call fcn.0040287c
add esp, 0xc
cmp dword [ebp - 0x370], 1
jne 0x422795
cmp dword [ebp - 0x378], 1
jne 0x422795
cmp dword [ebp - 0x384], 0
je 0x42276c
cmp dword [ebp - 0x390], 0
jne 0x4226d9
mov dword [ebp - 0x390], 1
mov eax, dword [ebx]
mov esi, 0xe19
jmp 0x422700
mov cl, byte [ebx + eax]
cmp eax, 0xe59
jl 0x4226f5
mov byte [ebx + eax + 0x100], cl
jmp 0x4226fc
mov byte [ebx + eax + 0xfe], cl
mov byte [ebx + eax], 0
dec eax
cmp eax, esi
jge 0x4226e2
mov eax, dword [ebp - 0x380]
mov dword [ebp - 0x388], 4
cmp dword [ebp - 0x388], 1
mov dword [ebp - 0x378], eax
jl 0x422756
mov esi, dword [ebp - 0x378]
mov eax, dword [ebp - 0x388]
lea edi, [esi + 1]
mov dword [ebp - 0x370], eax
movzx eax, byte [esi]
push eax
xor eax, eax
call fcn.004286af
mov byte [esi], 0
dec esi
dec dword [ebp - 0x370]
pop ecx
jne 0x422739
mov edi, 0x1234
dec dword [ebp - 0x388]
sub dword [ebp - 0x378], 0x32
cmp dword [ebp - 0x388], 1
jge 0x422724
cmp dword [ebx + 0x2c], 0
jg 0x422868
dec dword [ebp - 0x360]
sub dword [ebp - 0x37c], edi
sub dword [ebp - 0x380], edi
sub ebx, edi
dec dword [ebp - 0x358]
jmp 0x422868
mov ecx, dword [ebp - 0x35c]
and dword [ebp - 0x384], 0
call fcn.0045a2fe
and dword [ebp - 0x35c], 0
lea eax, [ebp - 0x24c]
call fcn.0045946a
call fcn.004182de
sub eax, dword [0x58edb0]
cmp eax, 0x1388
jbe 0x422837
push 0x103
lea eax, [ebp - 0x143]
push 0
push eax
mov byte [ebp - 0x144], 0
call fcn.00401f80
add esp, 0xc
push dword [ebp - 0x36c]
mov ecx, 0x104
lea eax, [ebp - 0x144]
call fcn.00428a08
pop ecx
mov esi, eax
call fcn.004288d0
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.0045684b
add esp, 0x18
test eax, eax
jne 0x422837
call fcn.0045dc4a
test eax, eax
je 0x42296d
call fcn.004182de
mov dword [0x58edb0], eax
mov eax, dword [ebp - 0x358]
add eax, 0xa
imul eax, eax, 0x1234
push eax
push 0
push dword [ebp - 0x368]
call fcn.00401f80
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 - 0x380], edi
add ebx, edi
cmp eax, dword [ebp - 0x358]
jl 0x422628
and dword [ebp - 0x360], 0
cmp dword [ebp - 0x358], 0
jle 0x422901
mov esi, dword [ebp - 0x368]
add esi, 0x11b8
mov ebx, dword [esi]
test ebx, ebx
je 0x4228eb
lea eax, [ebx + 1]
push 1
push eax
call fcn.00401a3a
pop ecx
pop ecx
mov dword [esi - 8], eax
test eax, eax
je 0x4228e8
push dword [ebp - 0x35c]
push 1
push ebx
push eax
call fcn.00402244
add esp, 0x10
cmp eax, 1
je 0x4228eb
push dword [esi - 8]
call fcn.00401a00
and dword [esi - 8], 0
pop ecx
and dword [esi], 0
inc dword [ebp - 0x360]
mov eax, dword [ebp - 0x360]
add esi, edi
cmp eax, dword [ebp - 0x358]
jl 0x4228aa
and dword [ebp - 0x360], 0
cmp dword [ebp - 0x358], 0
jle 0x42299b
mov esi, dword [ebp - 0x368]
add esi, 0x11c0
mov ebx, dword [esi]
test ebx, ebx
je 0x422985
lea eax, [ebx + 8]
mov dword [esi + 0x24], eax
add eax, 8
push 1
push eax
call fcn.00401a3a
pop ecx
pop ecx
mov dword [esi - 4], eax
test eax, eax
je 0x42297e
push dword [ebp - 0x35c]
push 1
push ebx
push eax
call fcn.00402244
add esp, 0x10
cmp eax, 1
je 0x422985
push dword [esi - 4]
call fcn.00401a00
xor eax, eax
pop ecx
mov dword [esi - 4], eax
mov dword [esi], eax
mov dword [esi + 0x24], eax
jmp 0x422985
push dword [ebp - 0x368]
call fcn.00401a00
pop ecx
jmp 0x422554
and dword [esi], 0
and dword [esi + 0x24], 0
inc dword [ebp - 0x360]
mov eax, dword [ebp - 0x360]
add esi, edi
cmp eax, dword [ebp - 0x358]
jl 0x422921
mov ecx, dword [ebp - 0x35c]
test ecx, ecx
je 0x4229b5
call fcn.0045a2fe
lea eax, [ebp - 0x24c]
call fcn.0045946a
xor esi, esi
cmp dword [ebp - 0x358], esi
jle 0x4229ef
mov ebx, dword [ebp - 0x368]
mov eax, dword [ebp - 0x358]
lea ecx, [eax + 0xa]
push ecx
push eax
push dword [ebp - 0x364]
push dword [ebp - 0x374]
call fcn.0041fb57
add esp, 0x10
inc esi
add ebx, edi
cmp esi, dword [ebp - 0x358]
jl 0x4229c5
mov edx, dword [ebp - 0x368]
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
mov dword [ecx + edx + 0xc], esi
cmp eax, 0xa
jl 0x4229f7
mov eax, dword [ebp - 0x364]
mov edi, dword [ebp - 0x374]
test eax, eax
jns 0x422a68
cmp eax, 0xfffffffe
jl 0x422a88
mov ecx, 0x1b314
sub ecx, eax
lea ebx, [edi + ecx*4]
mov esi, dword [ebx]
call fcn.00420a0e
mov eax, dword [ebp - 0x368]
mov dword [ebx], eax
mov eax, dword [edi + 0x2144]
mov eax, dword [edi + eax*4 + 0x6cc54]
mov dword [edi + 0x688], eax
jmp 0x422a82
cmp eax, dword [edi]
jge 0x422a88
lea ebx, [edi + eax*4 + 0x4f4]
mov esi, dword [ebx]
call fcn.00420a0e
mov eax, dword [ebp - 0x368]
mov dword [ebx], eax
mov eax, dword [ebp - 0x364]
xor ecx, ecx
cmp dword [ebp - 0x384], ecx
je 0x422aa5
cmp dword [ebp - 0x358], ecx
jle 0x422aa5
push ecx
push eax
push edi
call fcn.00420db5
add esp, 0xc
mov eax, dword [ebp - 0x358]
jmp 0x4224aa