Function at 0x446e50
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 0x44710b
mov eax, dword [esp + 0x65c]
mov dword [esp], eax
call dbg.opendir
mov dword [esp + 0x2c], eax
test eax, eax
je 0x447138
lea esi, [esi]
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dbg.readdir
test eax, eax
je 0x44708c
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 0x446ed8
mov eax, dword [esp + 0x668]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._strstr
test eax, eax
je 0x446ed8
mov eax, dword [esi + 0x18]
add eax, 1
mov dword [esi + 0x18], eax
shl eax, 4
mov dword [esp + 4], eax
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call sym._realloc
mov dword [esi + 0x14], eax
mov edi, eax
test eax, eax
je 0x44716e
mov dword [esp], ebx
call sym._strlen
mov edx, eax
mov eax, dword [esi + 0x18]
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 0x447158
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 0x4470b0
lea eax, [esp + 0x30]
mov dword [esp + 4], ebp
mov dword [esp], eax
call sym._stat
mov eax, dword [esi + 0x18]
lea ebx, [eax + 0xfffffff]
shl ebx, 4
add ebx, dword [esi + 0x14]
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 0x447142
lea eax, [esp + 0x30]
mov dword [esp + 4], 0x49ea6b
mov dword [esp], eax
call sym._fopen
mov ebx, eax
test eax, eax
je 0x4470f0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [esi + 0x18]
add eax, 0xfffffff
shl eax, 4
add eax, dword [esi + 0x14]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sym._fread
mov edx, eax
mov eax, dword [ebp + 0x14]
cmp edx, eax
jne 0x4470c9
mov eax, dword [esi + 0x18]
add eax, 0xfffffff
shl eax, 4
add eax, dword [esi + 0x14]
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 0x446eec
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 0x446fcc
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 0x44708e
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 0x44708e
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 0x44709a
mov ebx, 0xfffffffd
jmp 0x44709a
mov dword [esp], str.readCalDataDirectoryFiles____data_allocate_failed._n
mov ebx, 0xfffffffd
call sym._pprintf
jmp 0x44708e
mov dword [esp], str.readCalDataDirectoryFiles____fileName_allocate_failed._n
mov ebx, 0xfffffffd
call sym._pprintf
jmp 0x44708e
mov dword [esp], str.readCalDataDirectoryFiles_____filesData__singleFileData_realloc__load_aborted._n
mov ebx, 0xfffffffd
call sym._pprintf
jmp 0x44708e