Function at 0x425da0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa38
mov eax, dword [0x4c6af0]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
mov byte [ebp - 0xa19], 0
push 0x800
push 0
lea eax, [ebp - 0xa18]
push eax
call fcn.0044fbf0
add esp, 0xc
movzx ecx, byte [ebp + 8]
cmp ecx, 0xff
jne 0x425fd8
mov byte [ebp - 0xa19], 0
mov edx, dword [0x5164bc]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0xa21], dl
movsx eax, byte [ebp - 0xa21]
test eax, eax
je 0x425ec0
movzx ecx, byte [0x4d64e8]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x425eae
mov dword [ebp - 0xa28], 0
mov dword [ebp - 0xa28], 0
jmp 0x425e52
mov edx, dword [ebp - 0xa28]
add edx, 1
mov dword [ebp - 0xa28], edx
mov eax, dword [ebp - 4]
imul eax, eax, 3
cmp dword [ebp - 0xa28], eax
jg 0x425e92
mov ecx, dword [ebp - 0xa28]
mov edx, dword [ebp - 0xa28]
mov al, byte [edx + 0x4d64e8]
mov byte [ebp + ecx - 0x210], al
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 0xa28]
mov edx, dword [ebp - 0xa28]
mov al, byte [edx + 0x4d64e8]
mov byte [ecx], al
jmp 0x425e43
mov ecx, dword [ebp - 0xa28]
mov byte [ebp + ecx - 0x210], 0
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 0xa28]
mov byte [edx], 0
jmp 0x425ebb
mov byte [ebp - 0x210], 0
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
jmp 0x425fd6
push 0xa
push str.b2267_bank.bin
push 0x5167e0
call fcn.00451f07
add esp, 0xc
test eax, eax
je 0x425ef4
push 0xa
push str.b2307_bank.bin
push 0x5167e0
call fcn.00451f07
add esp, 0xc
test eax, eax
jne 0x425fd6
push 0x4b1a00
push 0x5167e0
call fcn.00451db8
add esp, 8
mov dword [ebp - 0xa20], eax
cmp dword [ebp - 0xa20], 0
je 0x425fd6
mov ecx, dword [ebp - 0xa20]
push ecx
push 0x400
push 1
lea edx, [ebp - 0xa18]
push edx
call fcn.0045259f
add esp, 0x10
mov dword [ebp - 0xa2c], eax
mov eax, dword [ebp - 0xa20]
push eax
call fcn.00451b5c
add esp, 4
movsx ecx, byte [ebp - 0x9d8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xa30], 0
mov dword [ebp - 0xa30], 0
jmp 0x425f7a
mov edx, dword [ebp - 0xa30]
add edx, 1
mov dword [ebp - 0xa30], edx
mov eax, dword [ebp - 4]
imul eax, eax, 3
cmp dword [ebp - 0xa30], eax
jg 0x425fbc
mov ecx, dword [ebp - 0xa30]
mov edx, dword [ebp - 0xa30]
mov al, byte [ebp + edx - 0x9d8]
mov byte [ebp + ecx - 0x210], al
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 0xa30]
mov edx, dword [ebp - 0xa30]
mov al, byte [ebp + edx - 0x9d8]
mov byte [ecx], al
jmp 0x425f6b
mov ecx, dword [ebp - 0xa30]
mov byte [ebp + ecx - 0x210], 0
mov edx, dword [ebp + 0x10]
add edx, dword [ebp - 0xa30]
mov byte [edx], 0
jmp 0x42602b
mov al, byte [ebp + 8]
mov byte [ebp - 0xa19], al
mov ecx, dword [ebp + 0x10]
movzx edx, byte [ecx]
mov dword [ebp - 4], edx
mov dword [ebp - 0xa34], 0
jmp 0x426005
mov eax, dword [ebp - 0xa34]
add eax, 1
mov dword [ebp - 0xa34], eax
cmp dword [ebp - 0xa34], 0x200
jge 0x42602b
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 0xa34]
mov edx, dword [ebp - 0xa34]
mov al, byte [ecx]
mov byte [ebp + edx - 0x210], al
jmp 0x425ff6
cmp dword [ebp - 4], 0
je 0x4260e6
mov dword [ebp - 0xa38], 0
jmp 0x426050
mov ecx, dword [ebp - 0xa38]
add ecx, 1
mov dword [ebp - 0xa38], ecx
mov edx, dword [ebp - 0xa38]
cmp edx, dword [ebp - 4]
jge 0x4260e4
mov eax, dword [ebp - 0xa38]
imul eax, eax, 3
mov cl, byte [ebp + eax - 0x20f]
mov byte [ebp - 0x211], cl
mov edx, dword [ebp - 0xa38]
imul edx, edx, 3
mov al, byte [ebp + edx - 0x20d]
mov byte [ebp - 9], al
movzx ecx, byte [ebp - 9]
cmp ecx, 0xff
jne 0x4260b3
mov edx, dword [ebp - 0xa38]
imul edx, edx, 3
movzx eax, byte [ebp - 0x211]
mov ecx, dword [ebp + 0xc]
mov dl, byte [ebp + edx - 0x20e]
mov byte [ecx + eax], dl
jmp 0x4260df
movzx eax, byte [ebp - 0xa19]
movzx ecx, byte [ebp - 9]
cmp eax, ecx
jne 0x4260df
mov edx, dword [ebp - 0xa38]
imul edx, edx, 3
movzx eax, byte [ebp - 0x211]
mov ecx, dword [ebp + 0xc]
mov dl, byte [ebp + edx - 0x20e]
mov byte [ecx + eax], dl
jmp 0x426041
jmp 0x4260ed
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044e8ae
mov esp, ebp
pop ebp
ret