Function at 0x140001000
Capabilities:
Read file on windows

Disassembly:
push rdi
sub rsp, 0x50
mov r8d, 0x10
xor edx, edx
lea rcx, [0x140037200]
call fcn.14000daa0
mov dword [rsp + 0x28], 0x2c4
mov byte [0x140037211], 0
mov qword [rsp + 0x48], 0
mov ecx, 0x10000
call fcn.1400171f8
mov qword [0x140037430], rax
mov r8d, 0x10000
xor edx, edx
mov rcx, qword [0x140037430]
call fcn.14000daa0
mov r8d, 0x18
xor edx, edx
lea rcx, [0x140037438]
call fcn.14000daa0
mov rcx, qword [0x1400293f0]
call fcn.1400171f8
mov qword [0x140037438], rax
mov r8, qword [0x1400293f0]
mov edx, 0xff
mov rcx, qword [0x140037438]
call fcn.14000daa0
lea rdx, [0x140035074]
lea rcx, str.eeprom.bin
call fcn.140010ebc
mov qword [rsp + 0x38], rax
mov r9, qword [rsp + 0x38]
mov r8d, 0x10000
mov edx, 1
mov rcx, qword [0x140037438]
call fcn.1400113b0
mov rcx, qword [rsp + 0x38]
call fcn.1400110a8
mov r8d, 0x10
xor edx, edx
lea rcx, [0x140037490]
call fcn.14000daa0
mov ecx, 0x1d
call fcn.1400171f8
mov qword [0x140037490], rax
mov r8d, 0x1d
xor edx, edx
mov rcx, qword [0x140037490]
call fcn.14000daa0
mov eax, 1
imul rax, rax, 0
mov rcx, qword [0x140037490]
mov byte [rcx + rax], 2
mov r8d, 0x18
xor edx, edx
lea rcx, [0x1400374a0]
call fcn.14000daa0
mov byte [0x1400374a8], 0x14
mov dword [0x1400374ac], 0
movsxd rax, dword [0x1400293fc]
mov rcx, rax
call fcn.1400171f8
mov qword [0x1400374a0], rax
lea rdx, [0x140035094]
lea rcx, str.rom.bin
call fcn.140010ebc
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140001188
lea rcx, str.Cant_find_rom
call fcn.14000c2c0
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.1400116c8
mov rcx, qword [rsp + 0x30]
call fcn.140011c7c
mov dword [rsp + 0x24], eax
mov rcx, qword [rsp + 0x30]
call fcn.1400121fc
movsxd rax, dword [rsp + 0x24]
mov r9, qword [rsp + 0x30]
mov r8, rax
mov edx, 1
mov rcx, qword [0x140037430]
call fcn.1400113b0
mov rcx, qword [rsp + 0x30]
call fcn.1400110a8
mov eax, 1
imul rax, rax, 0xf0e0
mov rcx, qword [0x140037430]
add rcx, rax
mov rax, rcx
mov qword [0x140037450], rax
mov eax, 1
imul rax, rax, 0xf0e1
mov rcx, qword [0x140037430]
add rcx, rax
mov rax, rcx
mov qword [0x140037458], rax
mov eax, 1
imul rax, rax, 0xf0e2
mov rcx, qword [0x140037430]
add rcx, rax
mov rax, rcx
mov qword [0x140037460], rax
mov eax, 1
imul rax, rax, 0xf0e3
mov rcx, qword [0x140037430]
add rcx, rax
mov rax, rcx
mov qword [0x140037468], rax
mov eax, 1
imul rax, rax, 0xf0e4
mov rcx, qword [0x140037430]
add rcx, rax
mov rax, rcx
mov qword [0x140037470], rax
mov eax, 1
imul rax, rax, 0xf0e9
mov rcx, qword [0x140037430]
add rcx, rax
mov rax, rcx
mov qword [0x140037478], rax
mov eax, 1
imul rax, rax, 0xf0eb
mov rcx, qword [0x140037430]
add rcx, rax
mov rax, rcx
mov qword [0x140037480], rax
mov byte [0x140037488], 0
mov rax, qword [0x140037478]
mov byte [rax], 0
mov rax, qword [0x140037480]
mov byte [rax], 0
mov rax, qword [0x140037468]
mov byte [rax], 0
mov rax, qword [0x140037470]
mov byte [rax], 4
mov dword [rsp + 0x20], 0
jmp 0x1400012fd
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 8
jge 0x1400013c4
mov ecx, 4
call fcn.1400171f8
movsxd rcx, dword [rsp + 0x20]
lea rdx, [0x1400372f0]
mov qword [rdx + rcx*8], rax
movsxd rax, dword [rsp + 0x20]
lea rcx, [0x1400372f0]
mov rax, qword [rcx + rax*8]
mov dword [rax], 0
movsxd rax, dword [rsp + 0x20]
lea rcx, [0x1400372f0]
movsxd rdx, dword [rsp + 0x20]
lea r8, [0x140037330]
mov rax, qword [rcx + rax*8]
mov qword [r8 + rdx*8], rax
movsxd rax, dword [rsp + 0x20]
lea rcx, [0x1400372f0]
mov rax, qword [rcx + rax*8]
add rax, 2
movsxd rcx, dword [rsp + 0x20]
lea rdx, [0x140037370]
mov qword [rdx + rcx*8], rax
movsxd rax, dword [rsp + 0x20]
lea rcx, [0x140037330]
movsxd rdx, dword [rsp + 0x20]
lea r8, [0x1400373b0]
mov rax, qword [rcx + rax*8]
mov qword [r8 + rdx*8], rax
movsxd rax, dword [rsp + 0x20]
lea rcx, [0x140037330]
mov rax, qword [rcx + rax*8]
inc rax
movsxd rcx, dword [rsp + 0x20]
lea rdx, [0x1400373f0]
mov qword [rdx + rcx*8], rax
jmp 0x1400012f3
mov eax, 8
imul rax, rax, 7
lea rcx, [0x1400372f0]
mov rax, qword [rcx + rax]
mov qword [0x1400372e8], rax
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x40]
mov qword [0x1400372a8], rax
call fcn.14000b4e0
mov byte [0x140037220], 0
mov eax, 1
imul rax, rax, 0xf0d0
mov rcx, qword [0x140037430]
add rcx, rax
mov rax, rcx
mov qword [0x140037228], rax
mov dl, 0x38
mov ecx, 0xf0d0
call fcn.14000b680
mov eax, 1
imul rax, rax, 0xf0d1
mov rcx, qword [0x140037430]
add rcx, rax
mov rax, rcx
mov qword [0x140037230], rax
xor edx, edx
mov ecx, 0xf0d1
call fcn.14000b680
mov byte [0x140037221], 0
mov r8d, 0x60
xor edx, edx
lea rcx, [0x140037240]
call fcn.14000daa0
mov eax, 1
imul rax, rax, 0xf0f0
mov rcx, qword [0x140037430]
add rcx, rax
mov rax, rcx
mov qword [0x140037248], rax
mov dl, 0x48
mov ecx, 0xf0f0
call fcn.14000b680
mov eax, 1
imul rax, rax, 0xf0f1
mov rcx, qword [0x140037430]
add rcx, rax
mov rax, rcx
mov qword [0x140037250], rax
xor edx, edx
mov ecx, 0xf0f1
call fcn.14000b680
mov eax, 1
imul rax, rax, 0xf0f2
mov rcx, qword [0x140037430]
add rcx, rax
mov rax, rcx
mov qword [0x140037258], rax
mov dl, 0x70
mov ecx, 0xf0f2
call fcn.14000b680
mov eax, 1
imul rax, rax, 0xf0f3
mov rcx, qword [0x140037430]
add rcx, rax
mov rax, rcx
mov qword [0x140037260], rax
mov dl, 0x70
mov ecx, 0xf0f3
call fcn.14000b680
mov eax, 1
imul rax, rax, 0xf0f4
mov rcx, qword [0x140037430]
add rcx, rax
mov rax, rcx
mov qword [0x140037268], rax
mov dl, 0x88
mov ecx, 0xf0f4
call fcn.14000b680
mov eax, 1
imul rax, rax, 0xf0f5
mov rcx, qword [0x140037430]
add rcx, rax
mov rax, rcx
mov qword [0x140037270], rax
mov dl, 0x88
mov ecx, 0xf0f5
call fcn.14000b680
mov eax, 1
imul rax, rax, 0xf0f6
mov rcx, qword [0x140037430]
add rcx, rax
mov rax, rcx
mov qword [0x140037278], rax
xor edx, edx
mov ecx, 0xf0f6
call fcn.14000b6b0
mov eax, 1
imul rax, rax, 0xf0f8
mov rcx, qword [0x140037430]
add rcx, rax
mov rax, rcx
mov qword [0x140037280], rax
mov dx, 0xffff
mov ecx, 0xf0f8
call fcn.14000b6b0
mov eax, 1
imul rax, rax, 0xf0fa
mov rcx, qword [0x140037430]
add rcx, rax
mov rax, rcx
mov qword [0x140037288], rax
mov dx, 0xffff
mov ecx, 0xf0fa
call fcn.14000b6b0
mov eax, 1
imul rax, rax, 0xf0fc
mov rcx, qword [0x140037430]
add rcx, rax
mov rax, rcx
mov qword [0x140037290], rax
mov dx, 0xffff
mov ecx, 0xf0fc
call fcn.14000b6b0
mov eax, 1
imul rax, rax, 0xfffa
mov rcx, qword [0x140037430]
add rcx, rax
mov rax, rcx
mov qword [0x140037238], rax
mov dl, 3
mov ecx, 0xfffa
call fcn.14000b680
mov eax, 1
imul rax, rax, 0xfffb
mov rcx, qword [0x140037430]
add rcx, rax
mov rax, rcx
mov qword [0x1400372a0], rax
mov dl, 4
mov ecx, 0xfffa
call fcn.14000b680
mov eax, 1
imul rax, rax, 0xfff3
mov rcx, qword [0x140037430]
add rcx, rax
mov rax, rcx
mov qword [0x1400372b8], rax
mov rax, qword [0x1400372b8]
mov byte [rax], 0
mov eax, 1
imul rax, rax, 0xfff4
mov rcx, qword [0x140037430]
add rcx, rax
mov rax, rcx
mov qword [0x1400372c0], rax
mov rax, qword [0x1400372c0]
mov byte [rax], 0
mov eax, 1
imul rax, rax, 0xfff6
mov rcx, qword [0x140037430]
add rcx, rax
mov rax, rcx
mov qword [0x1400372c8], rax
mov rax, qword [0x1400372c8]
mov byte [rax], 0
mov eax, 1
imul rax, rax, 0xfff7
mov rcx, qword [0x140037430]
add rcx, rax
mov rax, rcx
mov qword [0x1400372d0], rax
mov rax, qword [0x1400372d0]
mov byte [rax], 0
mov eax, 1
imul rax, rax, 0xf067
mov rcx, qword [0x140037430]
add rcx, rax
mov rax, rcx
mov qword [0x1400372d8], rax
mov rax, qword [0x1400372d8]
mov byte [rax], 0
xor eax, eax
mov word [0x1400372b4], ax
mov byte [0x140037210], 0
movzx eax, word [rsp + 0x28]
mov word [0x1400372b0], ax
add rsp, 0x50
pop rdi
ret