Function at 0x404300
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
lea ecx, [esp + 0x10]
push ebx
push ebp
push esi
push edi
call fcn.004df490
lea ecx, [esp + 0x20]
call fcn.004f80a0
mov edi, dword [esp + 0x3c]
mov esi, edi
cmp dword [edi + 0x14], 0x10
jb 0x404327
mov esi, dword [edi]
call fcn.00404a20
push 0x5d971c
push esi
test eax, eax
je 0x404346
mov eax, dword [0x62452c]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, eax
jmp 0x404374
call fcn.005a94a9
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40456f
push 0xc
call fcn.0059b742
mov esi, eax
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], ebx
test esi, esi
je 0x40456f
call fcn.00404a20
push 2
push 0
test eax, eax
je 0x404398
mov eax, dword [0x62452c]
push esi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x4043a3
push dword [esi + 8]
call fcn.005a9a75
add esp, 0xc
call fcn.00404a20
test eax, eax
je 0x4043c1
mov eax, dword [0x62452c]
push esi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ebp, eax
mov dword [esp + 0x3c], ebp
jmp 0x4043d2
push dword [esi + 8]
call fcn.005aa18d
add esp, 4
mov dword [esp + 0x3c], eax
mov ebp, eax
call fcn.00404a20
push 0
push 0
test eax, eax
je 0x4043ee
mov eax, dword [0x62452c]
push esi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x4043f9
push dword [esi + 8]
call fcn.005a9a75
add esp, 0xc
push ebp
call fcn.0059b726
push dword [esp + 0x40]
mov ebp, eax
push 0
push ebp
call fcn.0059d800
add esp, 0x10
call fcn.00404a20
test eax, eax
je 0x40442f
mov eax, dword [0x62452c]
push esi
push dword [esp + 0x40]
mov ecx, dword [eax]
push 1
push ebp
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x404441
push dword [esi + 8]
push dword [esp + 0x40]
push 1
push ebp
call fcn.005a96a6
add esp, 0x10
mov dword [esp + 0x10], eax
call fcn.00404a20
test eax, eax
je 0x40445d
mov eax, dword [0x62452c]
push esi
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x404470
push dword [esi + 8]
call fcn.005a93b7
push 0xc
push esi
call fcn.0059b718
add esp, 0xc
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x10], eax
je 0x4044a0
cmp dword [edi + 0x14], 0x10
jb 0x404482
mov edi, dword [edi]
push edi
push str.Failed_to_read_compiled_file:__s_n
call fcn.0040f360
push ebp
call fcn.0059b72f
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
cmp eax, 8
jae 0x4044d6
cmp dword [edi + 0x14], 0x10
jb 0x4044ad
mov edi, dword [edi]
push edi
push str.Compile_def_too_small__s
call fcn.0040f360
push ebp
xor ebx, ebx
call fcn.0059b72f
add esp, 0xc
push ebx
call fcn.0059b72f
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
cmp dword [ebp], 0xdeadfed4
je 0x4044ef
cmp dword [edi + 0x14], 0x10
jb 0x4044e7
mov edi, dword [edi]
push edi
push str.Compiled_fire_cookie_wrong:__s_n
jmp 0x4044b3
mov esi, dword [ebp + 4]
push esi
call fcn.0059b726
push esi
mov ebx, eax
push 0
push ebx
call fcn.0059d800
mov ecx, dword [ebp + 4]
lea eax, [ebp + 8]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x4c]
add ecx, 0xfffffff8
push ecx
push eax
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.00538810
mov esi, dword [ebp + 4]
push ebp
mov dword [esp + 0x40], esi
call fcn.0059b72f
add esp, 0x24
test ebx, ebx
je 0x404566
mov ebp, dword [esp + 0x40]
push ebp
call fcn.00403740
mov ecx, dword [ebp + 4]
add esp, 4
add ecx, 4
mov dword [esp + 0x3c], eax
cmp esi, ecx
jae 0x404579
cmp dword [edi + 0x14], 0x10
jb 0x404558
mov edi, dword [edi]
push edi
push str.Compiled_file_size_too_small:__s_n
call fcn.0040f360
add esp, 8
push ebx
call fcn.0059b72f
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x28
ret
push 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], ebx
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004f70c0
mov eax, dword [esp + 0x48]
add esp, 0xc
cmp dword [esp + 0x18], eax
je 0x4045ab
cmp dword [edi + 0x14], 0x10
jb 0x4045a3
mov edi, dword [edi]
push edi
push str.Compiled_file_schema_wrong:__s_n
jmp 0x40455e
push dword [ebp + 4]
mov esi, dword [esp + 0x48]
lea eax, [esp + 0x14]
push esi
push eax
call fcn.004f70c0
push esi
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.004032a0
mov esi, dword [esp + 0x28]
push ebx
mov byte [esp + 0x58], al
sub esi, ebx
call fcn.0059b72f
mov bl, byte [esp + 0x58]
add esp, 0x1c
test bl, bl
je 0x404600
cmp esi, dword [esp + 0x1c]
je 0x404600
cmp dword [edi + 0x14], 0x10
jb 0x4045f2
mov edi, dword [edi]
push edi
push str.Compiled_file_wrong_size:__s_n
call fcn.0040f360
add esp, 8
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x28
ret