Function at 0x42c210
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x21c
mov eax, dword [0x45a220]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push esi
push edi
mov edi, dword [esp + 0x230]
push edi
call sym.luart_static.exe_lua_gettop
push ebp
lea ebx, [eax - 1]
mov dword [esp + 0x1c], ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_clearerr]
add esp, 8
test ebx, ebx
jne 0x42c28b
push 1
push ebp
push edi
call fcn.0042c950
mov esi, dword [esp + 0x244]
add esp, 0xc
mov ebx, eax
inc esi
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 4
test eax, eax
je 0x42c426
push 0
push 0
push edi
call sym.luart_static.exe_luaL_fileresult
add esp, 0xc
jmp 0x42c444
push str.too_many_arguments
lea eax, [ebx + 0x14]
push eax
push edi
call sym.luart_static.exe_luaL_checkstack
mov esi, dword [esp + 0x244]
add esp, 0xc
mov eax, dword [esp + 0x14]
mov ebx, 1
mov dword [esp + 0x10], esi
dec eax
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x42c267
push esi
push edi
call sym.luart_static.exe_lua_type
add esp, 8
cmp eax, 3
jne 0x42c352
push esi
push edi
call sym.luart_static.exe_luaL_checkinteger
mov esi, eax
add esp, 8
test esi, esi
jne 0x42c30d
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getc]
mov esi, eax
push ebp
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ungetc]
push 0x44e919
push edi
call sym.luart_static.exe_lua_pushstring
xor ebx, ebx
add esp, 0x14
cmp esi, 0xffffffff
mov esi, dword [esp + 0x10]
setne bl
jmp 0x42c3ff
lea eax, [esp + 0x18]
push eax
push edi
call sym.luart_static.exe_luaL_buffinit
lea eax, [esp + 0x20]
push esi
push eax
call sym.luart_static.exe_luaL_prepbuffsize
push ebp
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov esi, eax
lea eax, [esp + 0x38]
add dword [esp + 0x40], esi
push eax
call sym.luart_static.exe_luaL_pushresult
xor eax, eax
add esp, 0x24
cmp eax, esi
mov esi, dword [esp + 0x10]
sbb ebx, ebx
neg ebx
jmp 0x42c3ff
push 0
push esi
push edi
call sym.luart_static.exe_luaL_checklstring
add esp, 0xc
mov cl, byte [eax]
cmp cl, 0x2a
jne 0x42c368
mov cl, byte [eax + 1]
movsx eax, cl
add eax, 0xffffffb4
cmp eax, 0x22
ja case.0x42c37e.77
movzx eax, byte [eax + 0x42c474]
jmp dword [eax*4 + 0x42c460]
push ebp
push edi
call fcn.0042ca70
add esp, 8
mov ebx, eax
jmp 0x42c3ff
push 1
push ebp
push edi
call fcn.0042c950
add esp, 0xc
mov ebx, eax
jmp 0x42c3ff
push 0
push ebp
push edi
call fcn.0042c950
add esp, 0xc
mov ebx, eax
jmp 0x42c3ff
lea eax, [esp + 0x18]
push eax
push edi
call sym.luart_static.exe_luaL_buffinit
add esp, 8
lea eax, [esp + 0x18]
push 0x200
push eax
call sym.luart_static.exe_luaL_prepbuffsize
push ebp
push 0x200
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add dword [esp + 0x38], eax
add esp, 0x18
cmp eax, 0x200
je 0x42c3c1
lea eax, [esp + 0x18]
push eax
call sym.luart_static.exe_luaL_pushresult
add esp, 4
mov ebx, 1
mov eax, dword [esp + 0x14]
inc esi
mov dword [esp + 0x10], esi
test eax, eax
jne 0x42c2b1
jmp 0x42c267
push str.invalid_format
push esi
push edi
call sym.luart_static.exe_luaL_argerror
add esp, 0xc
jmp 0x42c444
test ebx, ebx
jne 0x42c43b
push 0xfffffffffffffffe
push edi
call sym.luart_static.exe_lua_settop
push edi
call sym.luart_static.exe_lua_pushnil
add esp, 0xc
sub esi, dword [esp + 0x238]
mov eax, esi
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044c1b1
add esp, 0x21c
ret