Function at 0x4318ce
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a0
mov eax, dword [0x4e22e4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x364], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
push 0x31
mov dword [ebp - 0x368], eax
lea eax, [ebp - 0x3b]
push ebx
push eax
mov dword [ebp - 0x370], edi
mov dword [ebp - 0x358], ebx
mov dword [ebp - 0x38c], ebx
mov byte [ebp - 0x3c], bl
call fcn.00401f80
add esp, 0xc
mov esi, 0x103
push esi
lea eax, [ebp - 0x24b]
push ebx
push eax
mov byte [ebp - 0x24c], bl
call fcn.00401f80
add esp, 0xc
push esi
lea eax, [ebp - 0x353]
push ebx
push eax
mov byte [ebp - 0x354], bl
call fcn.00401f80
add esp, 0xc
mov dword [ebp - 0x390], ebx
cmp edi, ebx
je 0x431cba
mov eax, dword [ebp - 0x364]
cmp eax, ebx
jl 0x431972
cmp eax, dword [edi]
jge 0x431cba
mov ecx, edi
call fcn.00470d56
mov dword [ebp - 0x374], eax
cmp eax, ebx
jge 0x43198a
push 0x4d1330
jmp 0x431997
mov edx, dword [edi + eax*4 + 0x198]
call fcn.0043a12c
push eax
push 0x32
pop ecx
lea eax, [ebp - 0x3c]
call fcn.00438aa8
pop ecx
call fcn.00496221
test eax, eax
jne 0x431cba
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x35c], ebx
mov dword [ebp - 0x380], ebx
call fcn.00438b22
lea eax, [ebp - 0x354]
call fcn.00438b22
mov ecx, dword [ebp - 0x368]
push 0x2710
call fcn.0048e6b5
pop ecx
test eax, eax
je 0x431b74
push dword [ebp - 0x368]
mov edi, 0x104
mov ecx, edi
lea eax, [ebp - 0x354]
call fcn.00438aa8
pop ecx
mov esi, eax
call fcn.00438922
mov eax, esi
push eax
mov ecx, edi
lea eax, [ebp - 0x24c]
call fcn.00438aa8
pop ecx
push ebx
push ebx
call fcn.0045531b
pop ecx
pop ecx
mov edx, eax
lea ecx, [ebp - 0x24c]
call fcn.0043aa46
mov eax, esi
push eax
push ebx
push ebx
call fcn.0045531b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x368]
push eax
call fcn.0049a768
pop ecx
pop ecx
cmp eax, ebx
jg 0x431b3b
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x19
call esi
lea eax, [ebp - 0x24c]
call fcn.0048e8b7
lea ecx, [ebp - 0x24c]
call fcn.0048f32e
push 0xf
call esi
lea eax, [ebp - 0x354]
push eax
push ebx
push ebx
call fcn.0045531b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x368]
push eax
call fcn.0049a768
pop ecx
pop ecx
cmp eax, ebx
jg 0x431b3b
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
lea eax, [ebp - 0x3a0]
push str.TillSheet.c
push eax
call fcn.0041ced9
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.0041bc48
add esp, 0x10
push eax
push str._s__s__Up2Ld__.dat
push ebx
call fcn.004391c4
add esp, 0x10
push eax
push dword [ebp - 0x368]
call fcn.0048e90b
mov ecx, dword [ebp - 0x368]
add esp, 0xc
push 0x47e
push str.TillSheet.c
mov edx, 0x4ae668
call fcn.0048d3dd
pop ecx
pop ecx
mov dword [ebp - 0x35c], eax
cmp eax, ebx
je 0x431b69
mov dword [ebp - 0x380], 1
jmp 0x431b5d
push 0x484
push str.TillSheet.c
mov edx, 0x4ae668
lea ecx, [ebp - 0x24c]
call fcn.0048d3dd
pop ecx
pop ecx
mov dword [ebp - 0x35c], eax
cmp dword [ebp - 0x35c], ebx
jne 0x431c97
mov edi, dword [ebp - 0x370]
mov esi, 0x103
mov edx, dword [ebp - 0x368]
call fcn.00439c75
test eax, eax
jne 0x431c97
cmp dword [0x5f4034], ebx
jne 0x431c97
push esi
lea eax, [ebp - 0x143]
push ebx
push eax
mov byte [ebp - 0x144], bl
call fcn.00401f80
add esp, 0xc
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x368]
call fcn.00439609
pop ecx
pop ecx
test eax, eax
je 0x431c47
mov edx, dword [ebp - 0x364]
lea eax, [ebp - 0x144]
mov ecx, edi
call fcn.0042e722
lea esi, [ebp - 0x144]
call fcn.00438922
mov eax, esi
push eax
push dword [ebp - 0x368]
call fcn.00439609
pop ecx
pop ecx
test eax, eax
je 0x431c97
mov edx, dword [ebp - 0x364]
mov ecx, dword [ebp - 0x370]
mov eax, esi
call fcn.0042e722
lea edi, [ebp - 0x144]
call fcn.0048e806
test eax, eax
je 0x431c97
mov eax, edi
push eax
push dword [ebp - 0x364]
mov dword [0x5f4034], 1
push dword [ebp - 0x370]
call fcn.004318ce
add esp, 0xc
mov dword [0x5f4034], ebx
jmp 0x431cbc
mov eax, dword [ebp - 0x374]
cmp dword [ebp - 0x364], eax
jne 0x431c97
mov edx, dword [ebp - 0x364]
lea esi, [ebp - 0x144]
mov ecx, edi
call fcn.0042ccb6
call fcn.00438922
mov eax, esi
push eax
push dword [ebp - 0x368]
call fcn.00439609
pop ecx
pop ecx
test eax, eax
je 0x431c97
mov edx, dword [ebp - 0x364]
mov ecx, dword [ebp - 0x370]
call fcn.0042ccb6
jmp 0x431c0f
call fcn.00496221
test eax, eax
je 0x431ccb
mov ecx, dword [ebp - 0x35c]
cmp ecx, ebx
je 0x431cba
call fcn.0048fcf9
lea eax, [ebp - 0x24c]
call fcn.0048e8b7
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401317
leave
ret
cmp dword [ebp - 0x35c], ebx
je 0x431d69
push dword [ebp - 0x35c]
lea eax, [ebp - 0x358]
push 1
push 4
push eax
call fcn.00402244
add esp, 0x10
cmp eax, 1
jne 0x431d09
cmp dword [ebp - 0x358], ebx
jl 0x431d09
cmp dword [ebp - 0x358], 0x8000
jl 0x431d6f
mov ecx, dword [ebp - 0x35c]
call fcn.0048fcf9
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x35c], ebx
call fcn.0048e8b7
call fcn.0041a877
sub eax, dword [0x5f4038]
cmp eax, 0x1388
jbe 0x431d5f
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.0048a747
add esp, 0x14
test eax, eax
jne 0x431d5f
push 3
call fcn.0047bff8
call fcn.0041a877
mov dword [0x5f4038], eax
mov dword [ebp - 0x358], ebx
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 - 0x36c], eax
cmp eax, ebx
jne 0x431df0
mov ecx, dword [ebp - 0x35c]
cmp ecx, ebx
je 0x431daa
call fcn.0048fcf9
lea eax, [ebp - 0x24c]
call fcn.0048e8b7
call fcn.0041a877
sub eax, dword [0x5f403c]
cmp eax, 0x1388
jbe 0x431de1
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.0048a747
add esp, 0x14
test eax, eax
je 0x431d58
call fcn.0041a877
mov dword [0x5f403c], eax
jmp 0x431cba
cmp dword [ebp - 0x35c], ebx
je 0x4321ad
and dword [ebp - 0x360], ebx
cmp dword [ebp - 0x358], ebx
jle 0x432086
mov ebx, dword [ebp - 0x36c]
lea eax, [ebx + 0xdeb]
mov dword [ebp - 0x378], eax
lea eax, [ebx + 4]
mov dword [ebp - 0x384], eax
push dword [ebp - 0x35c]
lea eax, [ebp - 0x38c]
push 1
push 4
push eax
call fcn.00402244
mov dword [ebp - 0x388], eax
mov eax, dword [ebp - 0x38c]
add esp, 0x10
xor esi, esi
cmp eax, edi
jbe 0x431e69
and dword [ebp - 0x380], 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 - 0x384]
call fcn.00402244
add esp, 0x10
mov dword [ebp - 0x374], eax
mov dword [ebx], edi
test esi, esi
jle 0x431ea0
push 1
push esi
push dword [ebp - 0x35c]
call fcn.0040287c
add esp, 0xc
cmp dword [ebp - 0x388], 1
jne 0x431f96
cmp dword [ebp - 0x374], 1
jne 0x431f96
cmp dword [ebp - 0x380], 0
je 0x431f6d
cmp dword [ebp - 0x390], 0
jne 0x431eda
mov dword [ebp - 0x390], 1
mov eax, dword [ebx]
mov esi, 0xe19
jmp 0x431f01
mov cl, byte [ebx + eax]
cmp eax, 0xe59
jl 0x431ef6
mov byte [ebx + eax + 0x100], cl
jmp 0x431efd
mov byte [ebx + eax + 0xfe], cl
mov byte [ebx + eax], 0
dec eax
cmp eax, esi
jge 0x431ee3
mov eax, dword [ebp - 0x378]
mov dword [ebp - 0x37c], 4
cmp dword [ebp - 0x37c], 1
mov dword [ebp - 0x374], eax
jl 0x431f57
mov esi, dword [ebp - 0x374]
mov eax, dword [ebp - 0x37c]
lea edi, [esi + 1]
mov dword [ebp - 0x388], eax
movzx eax, byte [esi]
push eax
xor eax, eax
call fcn.00438701
mov byte [esi], 0
dec esi
dec dword [ebp - 0x388]
pop ecx
jne 0x431f3a
mov edi, 0x1234
dec dword [ebp - 0x37c]
sub dword [ebp - 0x374], 0x32
cmp dword [ebp - 0x37c], 1
jge 0x431f25
cmp dword [ebx + 0x2c], 0
jg 0x432060
dec dword [ebp - 0x360]
sub dword [ebp - 0x384], edi
sub dword [ebp - 0x378], edi
sub ebx, edi
dec dword [ebp - 0x358]
jmp 0x432060
mov ecx, dword [ebp - 0x35c]
and dword [ebp - 0x380], 0
call fcn.0048fcf9
and dword [ebp - 0x35c], 0
lea eax, [ebp - 0x24c]
call fcn.0048e8b7
call fcn.0041a877
sub eax, dword [0x5f4040]
cmp eax, 0x1388
jbe 0x43202f
push 0x103
lea eax, [ebp - 0x143]
push 0
push eax
mov byte [ebp - 0x144], 0
call fcn.00401f80
add esp, 0xc
push dword [ebp - 0x368]
mov ecx, 0x104
lea eax, [ebp - 0x144]
call fcn.00438aa8
pop ecx
mov esi, eax
call fcn.00438922
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.0048a747
add esp, 0x18
test eax, eax
je 0x432165
call fcn.0041a877
mov dword [0x5f4040], eax
mov eax, dword [ebp - 0x358]
add eax, 0xa
imul eax, eax, 0x1234
push eax
push 0
push dword [ebp - 0x36c]
call fcn.00401f80
add esp, 0xc
and dword [ebp - 0x358], 0
inc dword [ebp - 0x360]
mov eax, dword [ebp - 0x360]
add dword [ebp - 0x384], edi
add dword [ebp - 0x378], edi
add ebx, edi
cmp eax, dword [ebp - 0x358]
jl 0x431e29
and dword [ebp - 0x360], 0
cmp dword [ebp - 0x358], 0
jle 0x4320f9
mov esi, dword [ebp - 0x36c]
add esi, 0x11b8
mov ebx, dword [esi]
test ebx, ebx
je 0x4320e3
lea eax, [ebx + 1]
push 1
push eax
call fcn.00401a3a
pop ecx
pop ecx
mov dword [esi - 8], eax
test eax, eax
je 0x4320e0
push dword [ebp - 0x35c]
push 1
push ebx
push eax
call fcn.00402244
add esp, 0x10
cmp eax, 1
je 0x4320e3
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 0x4320a2
and dword [ebp - 0x360], 0
cmp dword [ebp - 0x358], 0
jle 0x432193
mov esi, dword [ebp - 0x36c]
add esi, 0x11c0
mov ebx, dword [esi]
test ebx, ebx
je 0x43217d
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 0x432176
push dword [ebp - 0x35c]
push 1
push ebx
push eax
call fcn.00402244
add esp, 0x10
cmp eax, 1
je 0x43217d
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 0x43217d
push dword [ebp - 0x36c]
call fcn.00401a00
pop ecx
jmp 0x431d58
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 0x432119
mov ecx, dword [ebp - 0x35c]
test ecx, ecx
je 0x4321ad
call fcn.0048fcf9
lea eax, [ebp - 0x24c]
call fcn.0048e8b7
xor esi, esi
cmp dword [ebp - 0x358], esi
jle 0x4321e7
mov ebx, dword [ebp - 0x36c]
mov eax, dword [ebp - 0x358]
lea ecx, [eax + 0xa]
push ecx
push eax
push dword [ebp - 0x364]
push dword [ebp - 0x370]
call fcn.0042e0b0
add esp, 0x10
inc esi
add ebx, edi
cmp esi, dword [ebp - 0x358]
jl 0x4321bd
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
mov dword [ecx + edx + 0xc], esi
cmp eax, 0xa
jl 0x4321ef
mov esi, dword [ebp - 0x364]
mov ebx, dword [ebp - 0x370]
test esi, esi
jns 0x432260
cmp esi, 0xfffffffe
jl 0x432280
mov eax, 0x1b314
sub eax, esi
lea edi, [ebx + eax*4]
mov esi, dword [edi]
call fcn.0042e5c8
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 0x43227a
cmp esi, dword [ebx]
jge 0x432280
lea edi, [ebx + esi*4 + 0x4f4]
mov esi, dword [edi]
call fcn.0042e5c8
mov eax, dword [ebp - 0x36c]
mov dword [edi], eax
mov esi, dword [ebp - 0x364]
xor eax, eax
cmp dword [ebp - 0x380], eax
je 0x4322d2
cmp dword [ebp - 0x358], eax
jle 0x4322d2
xor edi, edi
push eax
inc edi
push edi
call fcn.00467c71
pop ecx
pop ecx
test eax, eax
jne 0x4322a6
xor edi, edi
jmp 0x4322ae
push 1
call fcn.00467de9
pop ecx
push 0
push esi
push ebx
call fcn.0042fe2f
add esp, 0xc
test edi, edi
je 0x4322d2
push 0x5af
push str.TillSheet.c
push 1
call fcn.0046b9b6
add esp, 0xc
mov eax, dword [ebp - 0x358]
jmp 0x431cbc