Function at 0x40fa90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4373e4
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x446d00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov edi, dword [ebp + 8]
push 0x438258
push edi
call fcn.00412e60
mov ebx, eax
add esp, 8
mov dword [ebp - 0x24], ebx
test ebx, ebx
jne 0x40fafa
push eax
push edi
push str.pic8_mixbeolvaso_tudta_megnyitni_file_t_:
call fcn.004060d0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
push 1
lea eax, [ebp - 0xd]
mov byte [ebp - 0xd], 0
push 1
push eax
call fcn.0041c50c
add esp, 0x10
cmp eax, 1
je 0x40fb21
push 0
push edi
push str.Nem_tudott_olvasni_file_bol_:
jmp 0x410197
cmp byte [ebp - 0xd], 0xd
je 0x40fb34
push 0
push edi
push str.MIX_file_elso_karaktere_nem_0x0d_:
jmp 0x410197
lea eax, [esi + 0xa]
or ecx, 0xffffffff
push ebx
add esi, 8
mov dword [ebp - 0x20], eax
push 1
push 2
push esi
mov word [eax], cx
mov word [esi], cx
call fcn.0041c50c
add esp, 0x10
cmp eax, 1
jne 0x41018f
push ebx
push eax
push 2
push dword [ebp - 0x20]
call fcn.0041c50c
add esp, 0x10
cmp eax, 1
jne 0x41018f
movzx ecx, word [esi]
cmp cx, ax
jl 0x410185
mov eax, dword [ebp - 0x20]
movzx eax, word [eax]
cmp ax, 1
jl 0x410185
cwde
push eax
movsx eax, cx
mov ecx, dword [ebp - 0x14]
push eax
call fcn.0040f570
test eax, eax
je 0x4101a5
push 0x24
call fcn.00419250
mov esi, eax
add esp, 4
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x40fe9c
mov eax, dword [ebp - 0x20]
xor edx, edx
movzx ecx, word [eax]
mov eax, dword [ebp - 0x14]
movsx edi, cx
mov dword [ebp - 0x38], edi
movzx eax, word [eax + 8]
movsx ebx, ax
mov word [esi + 8], ax
mov eax, ebx
mov dword [esi + 0x20], 0
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi], 0
mov dword [esi + 0x18], 0
mov word [esi + 0x1c], dx
mov word [esi + 0xa], cx
and eax, 0x80000003
jns 0x40fc22
dec eax
or eax, 0xfffffffc
add eax, 1
je 0x40fc29
sub ebx, eax
add ebx, 4
test ebx, ebx
jle 0x40fe7e
test edi, edi
jle 0x40fe7e
mov eax, 0xff00
cdq
idiv ebx
xor edx, edx
mov ecx, eax
mov eax, edi
div ecx
mov dword [ebp - 0x2c], ecx
mov dword [esi + 0x14], eax
imul eax, ecx
mov ecx, edi
sub ecx, eax
mov eax, edi
mov dword [ebp - 0x1c], ecx
mov ecx, 4
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0041928e
add esp, 4
mov dword [esi + 0xc], eax
cmp dword [ebp - 0x1c], 0
mov ecx, 4
mov eax, dword [esi + 0x14]
je 0x40fc85
inc eax
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0041928e
mov ecx, eax
add esp, 4
lea eax, [esi + 0xc]
mov dword [esi + 0x10], ecx
mov edx, dword [eax]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], edx
test edx, edx
je 0x40fe09
test ecx, ecx
je 0x40fe09
xor ecx, ecx
cmp edi, 4
jb 0x40fd14
lea esi, [edi - 1]
lea esi, [edx + esi*4]
mov dword [ebp - 0x34], esi
mov esi, dword [ebp - 0x30]
cmp edx, eax
ja 0x40fcd4
cmp dword [ebp - 0x34], eax
jae 0x40fd14
mov eax, edi
and eax, 0x80000003
jns 0x40fce2
dec eax
or eax, 0xfffffffc
inc eax
mov edx, edi
sub edx, eax
add ecx, 4
cmp ecx, edx
jl 0x40fce6
mov edi, dword [ebp - 0x28]
lea eax, [edx + 3]
cdq
mov dword [ebp - 0x34], ecx
and edx, 3
lea ecx, [edx + eax]
xor eax, eax
sar ecx, 2
shl ecx, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x38]
cmp ecx, edi
jge 0x40fd31
mov esi, dword [ebp - 0x18]
nop word [eax + eax]
mov eax, dword [esi]
mov dword [eax + ecx*4], 0
inc ecx
cmp ecx, edi
jl 0x40fd20
mov esi, dword [ebp - 0x30]
mov edi, dword [esi + 0x14]
xor edx, edx
test edi, edi
jle 0x40fd56
xor ecx, ecx
nop dword [eax]
mov eax, dword [esi + 0x10]
lea ecx, [ecx + 4]
inc edx
mov dword [ecx + eax - 4], 0
mov edi, dword [esi + 0x14]
cmp edx, edi
jl 0x40fd40
cmp dword [ebp - 0x1c], 0
je 0x40fd66
mov eax, dword [esi + 0x10]
mov dword [eax + edi*4], 0
xor edi, edi
mov dword [ebp - 0x18], edi
cmp dword [esi + 0x14], edi
jle 0x40fde1
mov eax, dword [ebp - 0x2c]
mov ecx, eax
imul ecx, ebx
shl eax, 2
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
push ecx
call fcn.0041928e
mov ecx, dword [esi + 0x10]
add esp, 4
mov dword [ecx + edi*4], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x18]
cmp dword [eax + ecx*4], 0
je 0x40fe09
mov eax, dword [ebp - 0x2c]
test eax, eax
jle 0x40fdcd
mov edi, dword [ebp - 0x28]
xor edx, edx
mov dword [ebp - 0x34], eax
nop
mov eax, dword [esi + 0x10]
lea edi, [edi + 4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [esi + 0xc]
add ecx, edx
add edx, ebx
sub dword [ebp - 0x34], 1
mov dword [edi + eax - 4], ecx
mov ecx, dword [ebp - 0x18]
jne 0x40fdb0
mov eax, dword [ebp - 0x3c]
inc ecx
add dword [ebp - 0x28], eax
mov edi, ecx
cmp ecx, dword [esi + 0x14]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x40]
jl 0x40fd84
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40fe55
imul eax, ebx
push eax
call fcn.0041928e
mov ecx, dword [esi + 0x10]
add esp, 4
mov edx, dword [esi + 0x14]
mov dword [ecx + edx*4], eax
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
cmp dword [eax + ecx*4], 0
jne 0x40fe27
push 0
push 0
push str.pic8::alloc_memory_
call fcn.00406360
mov ebx, dword [ebp - 0x24]
add esp, 0xc
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x20], eax
jmp 0x40fe9e
xor edi, edi
cmp dword [ebp - 0x1c], edi
jle 0x40fe52
mov dword [ebp - 0x28], edi
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + edx*4]
imul edx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x28]
mov eax, dword [esi + 0xc]
add dword [ebp - 0x28], ebx
add edx, edi
inc edi
mov dword [eax + edx*4], ecx
cmp edi, dword [ebp - 0x1c]
jl 0x40fe31
inc dword [esi + 0x14]
xor edi, edi
mov eax, dword [esi + 0xc]
push ebx
push 0
push dword [eax + edi*4]
call fcn.0041a450
inc edi
add esp, 0xc
cmp edi, dword [ebp - 0x38]
jl 0x40fe57
mov ebx, dword [ebp - 0x24]
mov eax, 1
mov edi, dword [ebp + 8]
mov dword [esi + 0x20], eax
jmp 0x40fe9e
push 0
push 0
push str.sizep_tul_pici_pic8::lefoglalban_
call fcn.004060d0
mov ebx, dword [ebp - 0x24]
add esp, 0xc
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x20], eax
jmp 0x40fe9e
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4100e8
cmp dword [esi + 0x20], 0
je 0x4100e8
mov eax, dword [ebp - 0x20]
xor ecx, ecx
xor edi, edi
cmp cx, word [eax]
jge 0x40ff11
mov eax, dword [ebp - 0x14]
push ebx
push 1
movsx eax, word [eax + 8]
push eax
mov eax, dword [esi + 0xc]
push dword [eax + edi*4]
call fcn.0041c50c
add esp, 0x10
cmp eax, 1
jne 0x410051
mov ecx, dword [ebp - 0x14]
push ebx
push eax
movsx eax, word [ecx + 8]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax + edi*4]
call fcn.0041c50c
add esp, 0x10
cmp eax, 1
jne 0x40ffb7
mov eax, dword [ebp - 0x20]
inc edi
movsx eax, word [eax]
cmp edi, eax
jl 0x40fec3
mov edi, dword [ebp - 0x14]
lea eax, [edi + 0x1c]
push eax
push 0xff
push esi
call fcn.00414fe0
push ebx
mov dword [edi + 0x18], eax
call fcn.00412d70
add esp, 0x10
cmp dword [esi + 4], 0
jne 0x40ff91
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40ff47
push 4
push eax
call fcn.00419280
add esp, 8
cmp dword [esi + 0x10], 0
je 0x40ff72
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jle 0x40ff72
xor edi, edi
mov eax, dword [esi + 0x10]
push 1
push dword [eax + edi]
call fcn.00419280
inc ebx
lea edi, [edi + 4]
add esp, 8
cmp ebx, dword [esi + 0x14]
jl 0x40ff56
mov edi, dword [ebp - 0x14]
push 4
push dword [esi + 0x10]
call fcn.00419280
mov eax, dword [esi + 0x18]
add esp, 8
test eax, eax
je 0x40ff91
push 1
push eax
call fcn.00419280
add esp, 8
push 0x24
push esi
call fcn.00419280
add esp, 8
mov dword [edi + 0x20], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
push 0
push eax
push str.Nem_tudott_olvasni_MIX_file_bol_:
call fcn.004060d0
add esp, 0xc
cmp dword [esi + 4], 0
jne 0x41002c
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40ffe2
push 4
push eax
call fcn.00419280
add esp, 8
cmp dword [esi + 0x10], 0
je 0x41000d
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jle 0x41000a
xor edi, edi
mov eax, dword [esi + 0x10]
push 1
push dword [edi + eax]
call fcn.00419280
inc ebx
lea edi, [edi + 4]
add esp, 8
cmp ebx, dword [esi + 0x14]
jl 0x40fff1
mov ebx, dword [ebp - 0x24]
push 4
push dword [esi + 0x10]
call fcn.00419280
mov eax, dword [esi + 0x18]
add esp, 8
test eax, eax
je 0x41002c
push 1
push eax
call fcn.00419280
add esp, 8
push 0x24
push esi
call fcn.00419280
push ebx
call fcn.00412d70
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
push 0
push eax
push str.Nem_tudott_olvasni_MIX_file_bol_:
call fcn.004060d0
push ebx
call fcn.00412d70
add esp, 0x10
cmp dword [esi + 4], 0
jne 0x4100c9
mov eax, dword [esi + 0xc]
test eax, eax
je 0x410082
push 4
push eax
call fcn.00419280
add esp, 8
cmp dword [esi + 0x10], 0
je 0x4100aa
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jle 0x4100aa
xor edi, edi
mov eax, dword [esi + 0x10]
push 1
push dword [eax + edi]
call fcn.00419280
inc ebx
lea edi, [edi + 4]
add esp, 8
cmp ebx, dword [esi + 0x14]
jl 0x410091
push 4
push dword [esi + 0x10]
call fcn.00419280
mov eax, dword [esi + 0x18]
add esp, 8
test eax, eax
je 0x4100c9
push 1
push eax
call fcn.00419280
add esp, 8
push 0x24
push esi
call fcn.00419280
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push edi
push str.Nem_tudott_letrhozni_tmp_pic8_at_MIX_file_olvasasnal_:
call fcn.004060d0
add esp, 0xc
test esi, esi
je 0x410166
cmp dword [esi + 4], 0
jne 0x41015b
mov eax, dword [esi + 0xc]
test eax, eax
je 0x410114
push 4
push eax
call fcn.00419280
add esp, 8
cmp dword [esi + 0x10], 0
je 0x41013c
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jle 0x41013c
xor edi, edi
mov eax, dword [esi + 0x10]
push 1
push dword [edi + eax]
call fcn.00419280
inc ebx
lea edi, [edi + 4]
add esp, 8
cmp ebx, dword [esi + 0x14]
jl 0x410123
push 4
push dword [esi + 0x10]
call fcn.00419280
mov eax, dword [esi + 0x18]
add esp, 8
test eax, eax
je 0x41015b
push 1
push eax
call fcn.00419280
add esp, 8
push 0x24
push esi
call fcn.00419280
add esp, 8
push dword [ebp - 0x24]
call fcn.00412d70
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push edi
push str.Meretek_kicsik_MIX_file_ban_:
jmp 0x410197
push 0
push edi
push str.Nem_tudott_olvasni_MIX_file_bol_:
call fcn.004060d0
push ebx
call fcn.00412d70
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4