Function at 0x46feb0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x63c
mov eax, dword [esp + 0x664]
lea ebx, [esp + 0x230]
mov dword [esp + 0x14], 0x5c
mov dword [esp + 0xc], 0x5c
mov esi, dword [esp + 0x654]
mov dword [esp + 0x18], eax
mov ebp, dword [esp + 0x658]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x660]
mov dword [esp + 4], str._s_c_s_c_s
mov dword [esp + 8], eax
mov dword [esp], ebx
call sym._sprintf
mov dword [esp], ebx
call dbg.opendir
test eax, eax
jne 0x47016b
mov eax, dword [esp + 0x65c]
mov dword [esp], eax
call dbg.opendir
mov dword [esp + 0x2c], eax
test eax, eax
je 0x470198
lea esi, [esi]
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dbg.readdir
test eax, eax
je 0x4700ec
lea ebx, [eax + 8]
mov eax, dword [esp + 0x664]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._strstr
test eax, eax
je 0x46ff38
mov eax, dword [esp + 0x668]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._strstr
test eax, eax
je 0x46ff38
mov eax, dword [esi + 0x14]
add eax, 1
mov dword [esi + 0x14], eax
shl eax, 4
mov dword [esp + 4], eax
mov eax, dword [esi + 0x10]
mov dword [esp], eax
call sym._realloc
mov dword [esi + 0x10], eax
mov edi, eax
test eax, eax
je 0x4701ce
mov dword [esp], ebx
call sym._strlen
mov edx, eax
mov eax, dword [esi + 0x14]
add edx, 1
mov dword [esp], edx
add eax, 0xfffffff
shl eax, 4
add edi, eax
call sym._malloc
mov dword [edi + 4], eax
test eax, eax
je 0x4701b8
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._strcpy
mov eax, dword [esp + 0x664]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0x5c
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x660]
mov dword [esp + 0xc], 0x5c
mov dword [esp + 8], eax
lea eax, [esp + 0x30]
mov dword [esp + 4], str._s_c_s_c_s
mov dword [esp], eax
call sym._sprintf
mov eax, dword [esp + 0x650]
test byte [eax], 0x40
jne 0x470110
lea eax, [esp + 0x30]
mov dword [esp + 4], ebp
mov dword [esp], eax
call sym._stat
mov eax, dword [esi + 0x14]
lea ebx, [eax + 0xfffffff]
shl ebx, 4
add ebx, dword [esi + 0x10]
mov dword [esp + 4], 1
mov eax, dword [ebp + 0x14]
add eax, 1
mov dword [esp], eax
call sym._calloc
mov dword [ebx + 8], eax
test eax, eax
je 0x4701a2
lea eax, [esp + 0x30]
mov dword [esp + 4], 0x4ca4df
mov dword [esp], eax
call sym._fopen
mov ebx, eax
test eax, eax
je 0x470150
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [esi + 0x14]
add eax, 0xfffffff
shl eax, 4
add eax, dword [esi + 0x10]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sym._fread
mov edx, eax
mov eax, dword [ebp + 0x14]
cmp edx, eax
jne 0x470129
mov eax, dword [esi + 0x14]
add eax, 0xfffffff
shl eax, 4
add eax, dword [esi + 0x10]
mov dword [eax + 0xc], edx
mov dword [esp], ebx
call sym._fclose
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dbg.readdir
test eax, eax
jne 0x46ff4c
xor ebx, ebx
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dbg.closedir
add esp, 0x63c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x30]
mov dword [esp], str.DEBUG:readCalDataDirectoryFiles____opening_cal_file__s._n
mov dword [esp + 4], eax
call sym._pprintf
jmp 0x47002c
mov dword [esp + 8], eax
lea eax, [esp + 0x30]
mov dword [esp + 4], eax
mov dword [esp], str.readCalDataDirectoryFiles____cal_file__s__size__d_Bytes__read_failed._n
call sym._pprintf
mov dword [esp], ebx
mov ebx, 0xfffffffd
call sym._fclose
jmp 0x4700ee
lea eax, [esp + 0x30]
mov dword [esp], str.readCalDataDirectoryFiles____cal_file__s_open_failed._n
mov ebx, 0xfffffffd
mov dword [esp + 4], eax
call sym._pprintf
jmp 0x4700ee
mov eax, dword [esp + 0x664]
mov dword [esp + 4], ebx
mov ebx, 0xfffffffd
mov dword [esp + 8], 0x5c
mov dword [esp + 0xc], eax
mov dword [esp], str.Invalid_calibration_directory_structure__s_c__load_aborted_for__s._n
call sym._pprintf
jmp 0x4700fa
mov ebx, 0xfffffffd
jmp 0x4700fa
mov dword [esp], str.readCalDataDirectoryFiles____data_allocate_failed._n
mov ebx, 0xfffffffd
call sym._pprintf
jmp 0x4700ee
mov dword [esp], str.readCalDataDirectoryFiles____fileName_allocate_failed._n
mov ebx, 0xfffffffd
call sym._pprintf
jmp 0x4700ee
mov dword [esp], str.readCalDataDirectoryFiles_____filesData__singleFileData_realloc__load_aborted._n
mov ebx, 0xfffffffd
call sym._pprintf
jmp 0x4700ee