Function at 0x417a30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4376e3
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x446d00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x38], esi
cmp dword [ebp + 0xc], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], edi
mov dword [esi], 0
mov dword [esi + 4], 0
push 0x438258
je 0x417a93
push str.lev_
push edi
call fcn.004053c0
add esp, 8
push eax
call fcn.0041f1c7
jmp 0x417a99
push edi
call fcn.00412e60
add esp, 8
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x417ab2
push eax
push edi
push str.topol::topol_ban_nem_tudta_nyitni_file_t_:
call fcn.004060d0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x19], 0x4141
lea edi, [esi + 8]
mov byte [ebp - 0x17], 0
mov dword [ebp - 0x24], edi
mov ecx, 0x12c
rep stosd dword es:[edi], eax
lea edi, [esi + 0x4b8]
mov dword [ebp - 0x16], 0
mov dword [ebp - 0x34], edi
mov ecx, 0x34
rep stosd dword es:[edi], eax
mov ax, word [str.AAAAA]
mov edi, dword [ebp - 0x20]
mov word [ebp - 0x1c], ax
mov al, byte [0x43b672]
push edi
push 5
mov byte [ebp - 0x1a], al
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.0041c50c
add esp, 0x10
cmp eax, 5
je 0x417b1e
push 0
push 0
push str.Nem_tudott_olvasni_txt_file_bol_
call fcn.004060d0
add esp, 0xc
push 3
lea eax, [ebp - 0x1c]
push 0x43b678
push eax
call fcn.00425ba0
add esp, 0xc
test eax, eax
je 0x417b46
push 0
push 0
push str.topol::topol__char_filenev___ben_nem_stimmel_eleje_
call fcn.004060d0
add esp, 0xc
movsx eax, byte [ebp - 0x19]
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
movsd qword [ebp - 0x30], xmm0
lea ecx, [eax + eax*4]
movsx eax, byte [ebp - 0x18]
lea eax, [eax + ecx*2]
add eax, 0xfffffdf0
mov dword [ebp - 0x20], eax
cmp eax, 6
jle 0x417b88
push 0
push dword [ebp - 0x28]
push str.Level_files_version_is_too_new_:
call fcn.00406360
mov eax, dword [ebp - 0x20]
add esp, 0xc
cmp eax, 6
jge 0x417b9f
push 0
push dword [ebp - 0x28]
push str.Corrupt_level_file_:
call fcn.00406360
mov eax, dword [ebp - 0x20]
add esp, 0xc
cmp eax, 6
jne 0x417d4f
push edi
push 4
lea eax, [ebp - 0x3c]
push 1
push eax
call fcn.0041c50c
add esp, 0x10
cmp eax, 4
je 0x417bcf
push 0
push 0
push str.Nem_tudott_olvasni_lev_file_bol_
call fcn.004060d0
add esp, 0xc
push edi
push 8
lea eax, [ebp - 0x30]
push 1
push eax
call fcn.0041c50c
add esp, 0x10
cmp eax, 8
je 0x417bf6
push 0
push 0
push str.Nem_tudott_olvasni_lev_file_bol_double_belyeget_
call fcn.004060d0
add esp, 0xc
push edi
push 8
lea eax, [ebp - 0x6c]
push 1
push eax
call fcn.0041c50c
add esp, 0x10
cmp eax, 8
je 0x417c1d
push 0
push 0
push str.Nem_tudott_olvasni_lev_file_bol_
call fcn.004060d0
add esp, 0xc
movsd xmm0, qword [ebp - 0x6c]
addsd xmm0, qword [ebp - 0x30]
movsd xmm1, qword [0x43bbc8]
comisd xmm1, xmm0
ja 0x417c3f
comisd xmm0, xmmword [0x43bbe8]
jbe 0x417c50
push 0
push 0
push str.topol::topol_ban_sarvarertek_kivul_esik_tartomanyon_
call fcn.004060d0
add esp, 0xc
push edi
push 8
lea eax, [ebp - 0x4c]
push 1
push eax
call fcn.0041c50c
add esp, 0x10
cmp eax, 8
je 0x417c77
push 0
push 0
push str.Nem_tudott_olvasni_lev_file_bol_
call fcn.004060d0
add esp, 0xc
movsd xmm0, qword [ebp - 0x4c]
movsd xmm2, qword [ebp - 0x30]
movaps xmm1, xmm0
movsd xmm3, qword [0x43bbc8]
addsd xmm1, xmm2
comisd xmm3, xmm1
ja 0x417ca0
comisd xmm1, xmmword [0x43bbe8]
jbe 0x417cbb
push 0
push 0
push str.topol::topol_ban_hibaertek_kivul_esik_tartomanyon_
call fcn.004060d0
movsd xmm2, qword [ebp - 0x30]
add esp, 0xc
movsd xmm0, qword [ebp - 0x4c]
addsd xmm0, xmm2
comisd xmm0, xmmword [0x43bbd8]
jbe 0x417ccf
mov dword [esi], 1
push edi
push 8
lea eax, [ebp - 0x54]
push 1
push eax
call fcn.0041c50c
add esp, 0x10
cmp eax, 8
je 0x417cf6
push 0
push 0
push str.Nem_tudott_olvasni_lev_file_bol_
call fcn.004060d0
add esp, 0xc
movsd xmm1, qword [ebp - 0x54]
movsd xmm3, qword [ebp - 0x30]
movaps xmm2, xmm1
movsd xmm0, qword [0x43bbd0]
addsd xmm2, xmm3
comisd xmm0, xmm2
ja 0x417d1f
comisd xmm2, xmmword [0x43bbe0]
jbe 0x417d3a
push 0
push 0
push str.topol::topol_ban_lezartertek_kivul_esik_tartomanyon_
call fcn.004060d0
movsd xmm3, qword [ebp - 0x30]
add esp, 0xc
movsd xmm1, qword [ebp - 0x54]
addsd xmm1, xmm3
comisd xmm1, xmmword [0x43bbd8]
jbe 0x417d4f
mov dword [esi + 4], 1
push edi
push 0xf
lea eax, [esi + 0x588]
push 1
push eax
call fcn.0041c50c
add esp, 0x10
mov byte [esi + 0x596], 0
cmp dword [ebp + 0xc], 0
push 0
push 0x64
push edi
je 0x417d7c
call fcn.004255e6
jmp 0x417d81
call fcn.004130d0
add esp, 0xc
lea eax, [ebp - 0x5c]
xorps xmm0, xmm0
movsd qword [ebp - 0x5c], xmm0
push edi
push 8
push 1
push eax
call fcn.0041c50c
add esp, 0x10
cmp eax, 8
je 0x417db3
push 0
push 0
push str.topol::topol_ban_nem_tudta_olvasni_lebego_gyuruszamot_
call fcn.004060d0
add esp, 0xc
cvttsd2si esi, qword [ebp - 0x5c]
cmp esi, 0x12c
jle 0x417df3
push 0
push 0
push str.topol::topol_ban_gyuruszam___MAXGYURU_:
call fcn.004060d0
add esp, 0xc
push 0xc
call fcn.00419250
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x417e0a
push edi
mov ecx, eax
call fcn.00406490
jmp 0x417e0c
test esi, esi
jg 0x417dd1
push 0
push 0
push str.topol::topol_ban_gyuruszam___0_
call fcn.004060d0
add esp, 0xc
jmp 0x417e23
xor eax, eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
mov dword [ecx], eax
add ecx, 4
mov dword [ebp - 0x24], ecx
sub esi, 1
jne 0x417dd1
push edi
push 8
lea eax, [ebp - 0x64]
xorps xmm0, xmm0
push 1
push eax
movsd qword [ebp - 0x64], xmm0
call fcn.0041c50c
add esp, 0x10
cmp eax, 8
je 0x417e52
push 0
push 0
push str.topol::topol_ban_nem_tudta_olvasni_lebego_kerekszamot_
call fcn.004060d0
add esp, 0xc
cvttsd2si eax, qword [ebp - 0x64]
mov dword [ebp - 0x24], eax
cmp eax, 0x34
jle 0x417f0d
push 0
push 0
push str.topol::topol_ban_kerekszam___MAXKEREK_:
call fcn.004060d0
add esp, 0xc
push 0x18
call fcn.00419250
mov esi, eax
add esp, 4
mov dword [ebp - 0x40], esi
mov dword [ebp - 4], 1
test esi, esi
je 0x417f28
mov ecx, esi
call fcn.00418c40
push edi
push 8
push 1
push esi
call fcn.0041c50c
add esp, 0x10
cmp eax, 8
je 0x417ebd
push 0
push 0
push str.Nem_olvas_file_bol_kerek::kerek_ben_
call fcn.004060d0
add esp, 0xc
push edi
push 8
lea eax, [esi + 8]
push 1
push eax
call fcn.0041c50c
add esp, 0x10
cmp eax, 8
je 0x417ee4
push 0
push 0
push str.Nem_olvas_file_bol_kerek::kerek_ben_
call fcn.004060d0
add esp, 0xc
push edi
push 4
lea eax, [esi + 0x10]
push 1
push eax
call fcn.0041c50c
add esp, 0x10
cmp eax, 4
je 0x417f2a
push 0
push 0
push str.Nem_olvas_file_bol_kerek::kerek_ben_
call fcn.004060d0
add esp, 0xc
jmp 0x417f2a
test eax, eax
jg 0x417e74
push 0
push 0
push str.topol::topol_ban_kerekszam___0_
call fcn.004060d0
add esp, 0xc
jmp 0x417f46
xor esi, esi
mov eax, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
mov dword [eax], esi
add eax, 4
sub dword [ebp - 0x24], 1
mov dword [ebp - 0x34], eax
jne 0x417e74
cmp dword [ebp + 0xc], 0
push edi
je 0x417f54
call fcn.0041f0e0
jmp 0x417f59
call fcn.00412d70
add esp, 4
cmp dword [ebp - 0x20], 6
jne 0x417fa0
mov esi, dword [ebp - 0x38]
mov ecx, esi
call fcn.00418000
fstp qword [ebp - 0x44]
movsd xmm0, qword [ebp - 0x44]
subsd xmm0, qword [ebp - 0x30]
andps xmm0, xmmword [0x438620]
comisd xmm0, xmmword [0x438418]
jbe 0x417f9c
push 0
push dword [ebp - 0x28]
push str.Corrupt_.LEV_file_:
call fcn.00406360
add esp, 0xc
mov eax, esi
jmp 0x417fa3
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419297
mov esp, ebp
pop ebp
ret 8