Function at 0x1002ccc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x105520d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x11c], eax
lea eax, [ebx + 0xfb0c]
lea edx, [ebp - 0x110]
push edi
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x120], ecx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1002cd01
mov eax, esi
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002cd10
lea edi, [ebp - 0x110]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1002cd20
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x110]
push edx
mov ecx, eax
and ecx, 3
push str.readCalDataFromFile___reading_EEPROM_file__s_n
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.10029960
lea eax, [ebp - 0x110]
push 0x1021cb20
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1002cdb4
lea ecx, [ebp - 0x110]
push ecx
push str.Could_not_open__s_to_read_n
push ebx
call fcn.10029960
mov edi, dword [ebp - 0x118]
push 0x1021cb20
push edi
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1002cdba
push edi
push str.Could_not_open__s_to_read_n
push ebx
call fcn.10029960
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10203cc8
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp - 0x118]
mov edx, dword [ebp - 0x11c]
push esi
push 0x1fbc
push 1
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov dword [ebp - 0x118], eax
cmp eax, 0x1fbc
jne 0x1002ce15
push edi
push eax
push str.Read__d_from__s_n
push ebx
call fcn.10029960
mov ecx, dword [ebp - 0x11c]
mov al, byte [ecx + 4]
add esp, 0x10
cmp al, 1
jae 0x1002ce39
movzx ecx, byte [ecx + 5]
push ecx
movzx edx, al
push edx
push str.Error___This_eeprom_bin_file_v_d._d_is_not_supported_by_this_NART_n
push ebx
call fcn.10029960
add esp, 0x10
jmp 0x1002ce6f
push esi
call dword [sym.imp.MSVCR100.dll_feof]
add esp, 4
test eax, eax
je 0x1002ce42
mov eax, dword [ebp - 0x118]
push edi
push eax
push str.Read__d_from__s_n
push ebx
call fcn.10029960
add esp, 0x10
mov byte [ebp - 0x111], 1
jmp 0x1002ce76
push esi
call dword [sym.imp.MSVCR100.dll_ferror]
add esp, 4
test eax, eax
je 0x1002ce61
push edi
push str.Error_reading__s_n
push ebx
call fcn.10029960
add esp, 0xc
jmp 0x1002ce6f
push str.Unknown_fread_rc_n
push ebx
call fcn.10029960
add esp, 8
mov byte [ebp - 0x111], 0
test esi, esi
je 0x1002ce84
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0x11c]
movzx eax, word [ecx]
mov ecx, dword [ebp - 0x118]
cmp ecx, eax
je 0x1002cea7
push eax
push ecx
push str.WARNING___file_size_of__d_NOT_match_eepromData__baseEepHeader.length__d_n
push ebx
call fcn.10029960
add esp, 0x10
cmp byte [ebp - 0x111], 0
je 0x1002cef1
xor esi, esi
lea edi, [ebx + 0x1ad50]
jmp 0x1002cec0
mov eax, dword [ebp - 0x11c]
push esi
lea edx, [edi + 8]
push edx
push edi
push eax
mov ecx, ebx
call fcn.1002c820
inc esi
add edi, 4
mov byte [ebp - 0x111], al
cmp esi, 2
jb 0x1002cec0
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x118]
mov dword [ecx], edx
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x111]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10203cc8
mov esp, ebp
pop ebp
ret 0xc