Function at 0x455d20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa855
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x54b07c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
movzx ecx, byte [esi + 2]
mov eax, ecx
sub eax, 0
je 0x456021
sub eax, 4
je 0x455f16
sub eax, 1
je 0x455d7c
push ecx
push str.unknown_command_in_EepromCommand_:__x_n
call fcn.00402650
add esp, 8
jmp 0x45604d
lea ecx, [ebp - 0x40]
call fcn.0040c8b0
push ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x40]
call fcn.00404420
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
jb 0x455da4
mov eax, dword [ebp - 0x28]
push 0x537bf8
push eax
call fcn.004ce8d6
mov ecx, dword [ebp - 0x14]
add esp, 8
mov edi, eax
cmp ecx, 0x10
jb 0x455de8
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x455dde
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x456068
push ecx
push edx
call fcn.0049dbeb
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test edi, edi
je 0x455e1b
push edi
push 0x800
push 1
push 0x195eac0
call fcn.004cefce
push edi
call fcn.004cea42
add esp, 0x14
jmp 0x455e37
xor eax, eax
cmp eax, 0x800
jae 0x456077
mov byte [eax + 0x195eac0], 0
inc eax
cmp eax, 0x800
jl 0x455e22
movzx edx, byte [esi + 3]
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
push ecx
mov dword [edx*8 + 0x195eac0], eax
lea eax, [ebp - 0x28]
mov dword [edx*8 + 0x195eac4], ecx
lea ecx, [ebp - 0x40]
push eax
call fcn.00404420
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
jb 0x455e68
mov eax, dword [ebp - 0x28]
push 0x537c04
push eax
call fcn.004ce8d6
mov ecx, dword [ebp - 0x14]
add esp, 8
mov esi, eax
cmp ecx, 0x10
jb 0x455eac
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x455ea2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45606d
push ecx
push edx
call fcn.0049dbeb
add esp, 8
push esi
push 0x800
push 1
push 0x195eac0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004ce0c0
push esi
call fcn.004cea42
mov ecx, dword [ebp - 0x2c]
add esp, 0x14
cmp ecx, 8
jb 0x45604d
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x456015
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x456072
jmp 0x456015
lea ecx, [ebp - 0x58]
call fcn.0040c8b0
push ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x58]
call fcn.00404420
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
jb 0x455f3e
mov eax, dword [ebp - 0x28]
push 0x537bf4
push eax
call fcn.004ce8d6
mov ecx, dword [ebp - 0x14]
add esp, 8
mov edi, eax
cmp ecx, 0x10
jb 0x455f82
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x455f78
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45607c
push ecx
push edx
call fcn.0049dbeb
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test edi, edi
je 0x455fb5
push edi
push 0x800
push 1
push 0x195eac0
call fcn.004cefce
push edi
call fcn.004cea42
add esp, 0x14
jmp 0x455fd1
xor eax, eax
cmp eax, 0x800
jae 0x456077
mov byte [eax + 0x195eac0], 0
inc eax
cmp eax, 0x800
jl 0x455fbc
movzx ecx, byte [esi + 3]
mov eax, dword [ecx*8 + 0x195eac0]
mov ecx, dword [ecx*8 + 0x195eac4]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x44]
mov dword [esi + 4], eax
cmp ecx, 8
jb 0x45604d
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x456015
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x456081
push ecx
push edx
call fcn.0049dbeb
add esp, 8
jmp 0x45604d
mov al, byte [esi + 1]
cmp al, 3
je 0x456043
or al, 0x40
mov byte [esi + 1], al
and al, 3
jbe 0x456035
mov byte [esi + 3], 0
cmp al, 1
jbe 0x45603d
mov byte [esi + 4], 0x80
cmp al, 2
jbe 0x45604d
jmp 0x456049
mov word [esi + 3], 0x8000
mov byte [esi + 5], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049dba8
mov esp, ebp
pop ebp
ret
call fcn.004cb586
call fcn.004cb586
call fcn.004cb586
call fcn.0049e163
call fcn.004cb586
call fcn.004cb586
int3