Function at 0x423f20
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2998
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x616dec]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x34], ebx
cmp byte [ebp + 8], 1
mov dword [ebp - 4], 0
jne 0x4240e5
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6249b0]
cmp eax, dword [ecx + 4]
jle 0x423fab
push 0x6249b0
call fcn.00554216
add esp, 4
cmp dword [0x6249b0], 0xffffffff
jne 0x423fab
call fcn.0042f8b0
push 0x5a92d0
call fcn.005545bd
add esp, 4
push 0x6249b0
call fcn.005541d7
add esp, 4
lea eax, [ebp - 0x4c]
mov ecx, 0x624878
push eax
call fcn.00430630
push str.SysCfg.jrpx
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00425640
add esp, 4
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x38]
cmp eax, 8
jb 0x423fe8
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.00424d00
push 0
push 0
push 4
xor eax, eax
mov dword [ebp - 0x38], 7
cmp dword [ebp - 0x1c], 8
push 0
mov word [ebp - 0x4c], ax
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push 1
push 0xc0000000
push eax
mov dword [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4240bf
push 0
push esi
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4240b0
lea ecx, [edi + 1]
push ecx
call fcn.005545e0
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x18]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42408c
mov ecx, dword [ebp - 0x34]
push ebx
add ecx, 0x20
mov byte [ebx + edi], 0
call fcn.00424300
push str.LoadSystemJson_ReadFile_OK
push 0
call fcn.0043b3c0
add esp, 8
push ebx
call fcn.005540dd
mov ebx, dword [ebp - 0x34]
add esp, 4
jmp 0x4240bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadSystemJson_Error_ReadFile:_d
push 2
call fcn.0043b3c0
add esp, 0xc
push ebx
call fcn.005540dd
mov ebx, dword [ebp - 0x34]
add esp, 4
jmp 0x4240bf
push str.LoadSystemJson_size__0
push 0
call fcn.0043b3c0
add esp, 8
test esi, esi
je 0x4240ca
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
cmp eax, 8
jb 0x42411d
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.00424d00
jmp 0x42411d
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
push 0
cmovae eax, dword [ebp + 0xc]
push 0x5fcbc0
push eax
call fcn.00420520
add esp, 0xc
test eax, eax
jne 0x424109
cmp dword [ebp + 0x1c], eax
jbe 0x42411d
lea ecx, [ebx + 0x20]
lea eax, [ebp + 0xc]
cmp ecx, eax
je 0x42411d
push 0xffffffffffffffff
push 0
push eax
call fcn.00424b00
push dword [ebp + 8]
mov ecx, ebx
call fcn.004239b0
mov ecx, dword [ebp + 0x20]
mov esi, eax
cmp ecx, 0x10
jb 0x42413e
inc ecx
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00424d60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005540cc
mov esp, ebp
pop ebp
ret 0x1c