Function at 0x401000
Capabilities:
Allocate thread local storage
Reference sql statements

Disassembly:
push 0x64
push 0
push 0x40f9c4
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
call sub.KERNEL32.dll_GetModuleHandleW
mov dword [0x40f9c8], eax
push 0
push 0x1000
push 0
call sub.KERNEL32.dll_HeapCreate
mov dword [0x40f9c4], eax
call fcn.0040c240
call fcn.0040b7f7
call fcn.0040a523
call fcn.00409f6b
call fcn.00409a50
call fcn.0040996f
call fcn.004098d5
call fcn.00409860
call fcn.00409320
call fcn.0040745c
call fcn.00406d00
call fcn.004061db
call fcn.00406152
call fcn.00405e21
call fcn.00404524
call fcn.004034e7
call fcn.00403163
call fcn.00402b73
call fcn.0040243b
call fcn.0040b08d
mov edx, str.ItronMV90
lea ecx, [0x40fa0c]
call fcn.00402008
mov dword [0x40f9e4], 0
mov eax, str.MV_90_Rescheduler_Tool
push eax
push 0x127
push 0x29e
push 0x96
push 0x64
push 0
call fcn.004048b8
and eax, eax
je 0x40181a
push 0
call fcn.004048dd
push eax
push 0
call fcn.00403210
and eax, eax
je 0x40115d
mov eax, str.File
push eax
call fcn.004032b0
mov eax, str.Generate_Read_List
push eax
push 1
call fcn.0040339e
mov eax, str.Save_Results...
push eax
push 2
call fcn.0040339e
mov eax, str.Clear_Failed_Reads
push eax
push 3
call fcn.0040339e
mov eax, str.About
push eax
push 4
call fcn.0040339e
mov eax, str.Quit
push eax
push 5
call fcn.0040339e
push 0xf0
push 0x28a
push 8
push 8
push 0
call fcn.00403bb1
push 0
call fcn.004048dd
push eax
push 0
call fcn.00402293
and eax, eax
je 0x40119e
push 0xffff0001
call fcn.004027ae
call fcn.00404a24
push eax
mov ebx, 0x332d
cmp ebx, dword [esp]
jne 0x4017f6
call fcn.0040a088
push eax
mov ebx, 1
cmp ebx, dword [esp]
jne 0x40154f
push dword [0x40fa18]
call fcn.0040628c
push 8
push 0x40e8a0
lea eax, [0x40fa18]
push eax
push 4
call fcn.004061fa
push dword [0x40fa20]
call fcn.0040628c
push 8
push 0x40e8a0
lea eax, [0x40fa20]
push eax
push 4
call fcn.004061fa
push 0
call fcn.0040404a
mov dword [0x40f9e4], 0
mov eax, 0x40e020
push eax
mov eax, 0x40e020
push eax
push dword [0x40fa0c]
push 1
call fcn.0040b882
mov dword [0x40f9fc], eax
mov eax, str.SELECT__FROM_TASKFILEST_where_Task__RI_IMP_and__EXRETCODE____0_OR_TimeDueHour___5_
push eax
push 1
call fcn.0040b8dc
and eax, eax
je 0x4012e3
push 1
call fcn.0040b8ee
and eax, eax
je 0x4012d9
mov edx, dword [0x414054]
push edx
push edx
push 0
push 1
call fcn.0040b916
push 0x40fa10
call fcn.0040c2c0
mov edx, dword [0x414054]
push edx
push edx
push dword [0x40fa10]
call fcn.004096a0
push 0x40f9cc
call fcn.0040c2c0
push dword [0x40fa18]
call fcn.004062f5
mov edx, dword [0x40f9cc]
push dword [0x414054]
push edx
call fcn.0040c340
mov ebp, dword [0x40fa1c]
lea eax, [ebp + 8]
push eax
call fcn.0040c2c0
jmp 0x40125f
push 1
call fcn.0040b943
mov dword [0x40f9f0], 0
mov dword [0x40f9e8], 0
mov eax, 0x40e020
push eax
mov eax, 0x40e020
push eax
push dword [0x40fa0c]
push 1
call fcn.0040b882
mov dword [0x40f9fc], eax
push dword [0x40fa18]
call fcn.00406393
push dword [0x40fa18]
call fcn.004063a8
or eax, eax
je 0x401478
mov ebp, dword [0x40fa1c]
mov edx, dword [ebp + 8]
push dword [0x414054]
push edx
call fcn.0040c340
push 0x40fa14
call fcn.0040c2c0
push dword [0x40fa20]
call fcn.004062f5
mov edx, dword [0x40fa14]
push dword [0x414054]
push edx
call fcn.0040c340
mov ebp, dword [0x40fa24]
lea eax, [ebp + 8]
push eax
call fcn.0040c2c0
inc dword [0x40f9e8]
push dword [0x414054]
mov edx, str.SELECT__FROM_RMMASTST_WHERE_RecorderID_like_
push edx
call fcn.0040c340
mov edx, dword [0x40fa14]
push edx
call fcn.0040c340
mov edx, 0x40e330
push edx
call fcn.0040c340
push 0x40fa08
call fcn.0040c2c0
push dword [0x40fa08]
push 1
call fcn.0040b8dc
and eax, eax
je 0x401469
push 1
call fcn.0040b8ee
and eax, eax
je 0x401469
mov edx, dword [0x414054]
push edx
push edx
push 0x32
push 1
call fcn.0040b916
push 0x40fa10
call fcn.0040c2c0
mov edx, dword [0x414054]
push edx
push edx
push dword [0x40fa10]
call fcn.004096a0
push 0x40f9f8
call fcn.0040c2c0
push dword [0x40f9f8]
call fcn.004096c0
mov ebx, eax
and ebx, ebx
jle 0x401464
push dword [0x40fa20]
call fcn.004062f5
mov edx, dword [0x40f9f8]
push dword [0x414054]
push edx
call fcn.0040c340
mov ebp, dword [0x40fa24]
lea eax, [ebp + 8]
push eax
call fcn.0040c2c0
inc dword [0x40f9f0]
jmp 0x4013d1
push 1
call fcn.0040b943
jmp 0x401323
push dword [0x40fa20]
call fcn.00406393
push dword [0x40fa20]
call fcn.004063a8
or eax, eax
je 0x4014cf
mov ebp, dword [0x40fa24]
mov edx, dword [ebp + 8]
push dword [0x414054]
push edx
call fcn.0040c340
push 0x40fa14
call fcn.0040c2c0
inc dword [0x40f9e4]
push dword [0x40fa14]
push dword [0x40f9e4]
push 0
call fcn.0040406d
jmp 0x401483
mov edx, dword [0x414054]
push edx
push edx
mov edx, str.Finished_Loading_Failed_Reads_:Found
push edx
call fcn.0040c340
mov edx, dword [0x414054]
push edx
push edx
mov eax, dword [0x40f9e8]
cdq
push edx
push eax
call fcn.004096f0
pop eax
mov edx, str._Recorders_and
push edx
call fcn.0040c340
mov edx, dword [0x414054]
push edx
push edx
mov eax, dword [0x40f9f0]
cdq
push edx
push eax
call fcn.004096f0
pop eax
mov edx, str._Masters
push edx
call fcn.0040c340
add dword [0x414054], 2
push 0
push 0
mov edx, dword [0x40e8a8]
add dword [esp + 8], edx
call fcn.00402b5d
pop dword [0x414054]
jmp 0x4017f3
mov ebx, 2
cmp ebx, dword [esp]
jne 0x401681
mov edx, 0x40e020
lea ecx, [0x40f9f4]
call fcn.00402008
mov edx, str.Text__.txt_.txt_.batAll_files__._.
lea ecx, [0x40f9d0]
call fcn.00402008
mov dword [0x40f9dc], 0
mov edx, dword [0x414054]
push edx
push edx
push dword [0x40f9dc]
push dword [0x40f9d0]
push dword [0x40fa04]
mov eax, str.Please_choose_file_to_save
push eax
call fcn.00402bac
push 0x40f9f4
call fcn.0040c2c0
push dword [0x40f9f4]
call fcn.004096c0
mov ebx, eax
and ebx, ebx
je 0x401667
mov edx, dword [0x414054]
push edx
push edx
push 0
call fcn.004040ce
push 0x40f9ec
call fcn.0040c2c0
push 0x40000
push dword [0x40f9f4]
push 0
call fcn.00409c60
mov dword [0x40f9fc], eax
push dword [0x40f9ec]
push 0
call fcn.00409d80
mov dword [0x40f9fc], eax
push 0
call fcn.00409980
mov edx, dword [0x414054]
push edx
push edx
mov edx, str.Finished_Saving_Failed_Reads:
push edx
call fcn.0040c340
mov edx, dword [0x40f9f4]
push edx
call fcn.0040c340
add dword [0x414054], 2
push 0
push 0
mov edx, dword [0x40e8a8]
add dword [esp + 8], edx
call fcn.00402b5d
pop dword [0x414054]
jmp 0x40167c
mov eax, str.So..._Uhm..._Maybe_you_want_to_select_a_file_to_save_too..
push eax
push 0
push 0
call fcn.00402b5d
jmp 0x4017f3
mov ebx, 3
cmp ebx, dword [esp]
jne 0x4016eb
mov eax, 0x40e020
push eax
mov eax, 0x40e020
push eax
push dword [0x40fa0c]
push 1
call fcn.0040b882
mov dword [0x40f9fc], eax
mov edx, str.DELETE_FROM_TASKFILEST_where_Task__RI_IMP_and__EXRETCODE____0_OR_TimeDueHour___5_
lea ecx, [0x40fa00]
call fcn.00402008
push dword [0x40fa00]
push 1
call fcn.0040b961
mov dword [0x40f9e0], eax
mov eax, str.Finished_Clearing_Failed_Reads
push eax
push 0
push 0
call fcn.00402b5d
jmp 0x4017f3
mov ebx, 4
cmp ebx, dword [esp]
jne 0x4017e9
push 0
call fcn.0040404a
mov dword [0x40f9e4], 0
mov eax, str.v2_Aperilion_2017__Rescheduler_Tool
push eax
push dword [0x40f9e4]
push 0
call fcn.0040406d
inc dword [0x40f9e4]
mov eax, str.This_software_provided_as_is_with_no_guarantees_and_used_at_your_risk
push eax
push dword [0x40f9e4]
push 0
call fcn.0040406d
inc dword [0x40f9e4]
mov eax, str.Tool_derives_list_of_Recorders_needing_to_be_reread_from_standard_MV90_system
push eax
push dword [0x40f9e4]
push 0
call fcn.0040406d
inc dword [0x40f9e4]
mov eax, str.Masters_are_extracted_for_failed_slaves_and_possibly_failed_also_extracted
push eax
push dword [0x40f9e4]
push 0
call fcn.0040406d
inc dword [0x40f9e4]
mov eax, str.Tool_provides_ability_to_batch_clear_and_reprocess_reads
push eax
push dword [0x40f9e4]
push 0
call fcn.0040406d
inc dword [0x40f9e4]
mov eax, str.Support_queries_to_support_aperilion.com.au
push eax
push dword [0x40f9e4]
push 0
call fcn.0040406d
inc dword [0x40f9e4]
mov eax, str.Please_note__no_support_contract_so_queries_are_best_effort_only_:__
push eax
push dword [0x40f9e4]
push 0
call fcn.0040406d
inc dword [0x40f9e4]
mov eax, str.Distribution_of_the_tool____Please_contact_support_aperilion.com.au
push eax
push dword [0x40f9e4]
push 0
call fcn.0040406d
jmp 0x4017f3
mov dword [0x40f9d8], 1
pop eax
jmp 0x40180a
mov ebx, 0x333c
cmp ebx, dword [esp]
jne 0x40180a
mov dword [0x40f9d8], 1
pop eax
mov ebx, dword [0x40f9d8]
cmp ebx, 1
jne 0x40119e
push 0
call 0x401839
call fcn.0040c290
push dword [0x40f9c4]
call sub.KERNEL32.dll_HeapDestroy
call sub.KERNEL32.dll_ExitProcess
call fcn.0040308b
call fcn.004034cc
call fcn.00404501
call fcn.00405e14
call fcn.00406146
call fcn.00409340
call fcn.00409963
call fcn.00409a40
call fcn.00409f4d
call fcn.0040b7eb
call fcn.0040ba00
call fcn.00409850
ret