Function at 0x4da7a0
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f62bc
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x158
mov eax, dword [0x51300c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xac], 0
mov ecx, 0x515f98
cmp dword [0x515fac], 0x10
mov edx, dword [0x515fa8]
cmovae ecx, dword [0x515f98]
push 6
push str.sqlite
call fcn.0040c4c0
add esp, 8
lea ecx, [ebp - 0x74]
test al, al
je 0x4da821
call fcn.004d6270
jmp 0x4da826
call fcn.004d65c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x74]
cmp dword [ebp - 0x60], 0x10
mov dl, 1
cmovae ecx, dword [ebp - 0x74]
call fcn.0040f3a0
mov esi, eax
test esi, esi
je 0x4da880
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Fail_to_load:
call fcn.00404280
cmp dword [ebp - 0x60], 0x10
lea edx, [ebp - 0x74]
push 0x40ba80
cmovae edx, dword [ebp - 0x74]
push ecx
push dword [ebp - 0x64]
mov ecx, eax
call fcn.0040c1d0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x4dafd8
lea ecx, [ebp - 0x5c]
call fcn.004d6b90
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp - 0x5c]
mov ecx, esp
push eax
call fcn.00402cf0
call fcn.004c45c0
add esp, 0x18
test al, al
je 0x4da8f0
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Load_Init_Condition:
call fcn.00404280
cmp dword [ebp - 0x48], 0x10
lea edx, [ebp - 0x5c]
push 0x40ba80
cmovae edx, dword [ebp - 0x5c]
push ecx
push dword [ebp - 0x4c]
mov ecx, eax
call fcn.0040c1d0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ecx, [ebp - 0x5c]
call fcn.00406b60
test al, al
jne 0x4da8f0
lea ecx, [ebp - 0x5c]
call fcn.00406620
cmp dword [0x515f00], 0x10
mov ecx, 0x515eec
mov edx, dword [0x515efc]
cmovae ecx, dword [0x515eec]
call fcn.004dc590
mov ecx, str.Solution_Authorized_Fail.
mov byte [ebp - 0xa5], al
test al, al
mov edx, str.Solution_Authorized_OK.
push 0x40ba80
cmove edx, ecx
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.00404280
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp byte [ebp - 0xa5], 0
jne 0x4da973
push 0x40ba80
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Exit.
call fcn.00404280
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov esi, 2
jmp 0x4daf96
lea ecx, [ebp - 0x44]
call fcn.004d5fd0
push 0x58
mov byte [ebp - 4], 2
call fcn.004f1f65
mov edi, eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0xac], edi
add esp, 4
mov dword [0x515e44], edi
mov dword [edi], vtable.SolutionLoader.0
mov dword [edi + 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0xf
mov byte [edi + 0x1c], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0xf
mov byte [edi + 0x34], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
cmp dword [ebp - 0x30], 0x10
mov eax, dword [edi]
cmovae ecx, dword [ebp - 0x44]
push ecx
mov ecx, edi
mov eax, dword [eax]
call eax
test al, al
jne 0x4daa55
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Fail_to_load:
call fcn.00404280
cmp dword [ebp - 0x30], 0x10
lea edx, [ebp - 0x44]
push 0x40ba80
cmovae edx, dword [ebp - 0x44]
push ecx
push dword [ebp - 0x34]
mov ecx, eax
call fcn.0040c1d0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov esi, 3
jmp 0x4daf50
xor esi, esi
mov eax, 0x515f64
cmp dword [0x515f78], 0x10
push 0x5098b8
cmovae eax, dword [0x515f64]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
je 0x4daad4
cmp dword [0x515f78], 0x10
mov eax, 0x515f64
push str.stop
cmovae eax, dword [0x515f64]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4daaa8
lea esi, [eax + 1]
jmp 0x4daad4
cmp dword [0x515f78], 0x10
mov eax, 0x515f64
push str.pause
cmovae eax, dword [0x515f64]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
mov ecx, 2
test eax, eax
cmove esi, ecx
mov eax, dword [0x515e20]
test eax, eax
je 0x4daae2
mov eax, dword [eax + 4]
mov dword [eax], esi
mov eax, 0x515e50
xchg dword [eax], esi
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 8]
call eax
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Loaded_Simulation_Solution:
mov esi, eax
call fcn.00404280
cmp dword [ebp - 0x30], 0x10
lea edx, [ebp - 0x44]
push dword [ebp - 0x34]
cmovae edx, dword [ebp - 0x44]
mov ecx, eax
call fcn.0040c1d0
add esp, 4
mov edx, str.._Solution_type:
mov ecx, eax
push 0x40ba80
push esi
call fcn.00404280
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ecx, [ebp - 0x8c]
call fcn.004d5c80
push 7
push str.Plugin_
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0040b830
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x78]
cmp edx, 0x10
jb 0x4dabcf
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4dabc5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4dabc5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004f1f95
add esp, 8
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
mov ecx, 0x514f54
cmovae eax, dword [ebp - 0x2c]
push eax
mov eax, dword [vtable.PluginManager.0]
call dword [eax]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4dac3a
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4dac30
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4dac30
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004f1f95
add esp, 8
mov eax, dword [0x513020]
mov ecx, 0x514f54
mov dword [0x515e38], eax
mov eax, dword [vtable.PluginManager.0]
push 0x515e38
mov dword [0x515e3c], 0x40f740
mov dword [0x515e40], 0x4dbee0
call dword [eax + 0xc]
mov eax, dword [vtable.PluginManager.0]
mov ecx, 0x514f54
mov eax, dword [eax + 0x10]
call eax
test eax, eax
je 0x4dac9e
push 0x40ba80
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Plugin_Initialize_Fail.
call fcn.00404280
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov edx, dword [0x515f8c]
test edx, edx
je 0x4dada1
mov esi, dword [0x515e44]
test esi, esi
je 0x4dada1
cmp dword [0x515f90], 0x10
mov ecx, 0x515f7c
push 1
cmovae ecx, dword [0x515f7c]
push 0x4ff3f4
call fcn.0040c4c0
add esp, 8
test al, al
je 0x4dacec
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
jmp 0x4dada1
mov byte [ebp - 4], 5
lea edx, [ebp - 0x20]
push 0x2c
mov ecx, 0x515f7c
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xac], 0xf
call fcn.004ccf50
mov esi, dword [ebp - 0x20]
add esp, 4
cmp esi, dword [ebp - 0x1c]
je 0x4dad95
nop dword [eax]
push esi
lea ecx, [ebp - 0x8c]
call fcn.00402cf0
mov byte [ebp - 4], 6
lea edx, [ebp - 0x8c]
mov ecx, dword [0x515e44]
push edx
mov eax, dword [ecx]
call dword [eax + 0x20]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x78]
cmp edx, 0x10
jb 0x4dad8d
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4dad83
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4dabbf
push edx
push ecx
call fcn.004f1f95
add esp, 8
add esi, 0x18
cmp esi, dword [ebp - 0x1c]
jne 0x4dad30
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00403d10
push ecx
lea ecx, [ebp - 0x168]
call fcn.0040e3d0
mov byte [ebp - 4], 7
mov edx, str.GlobalT
push dword [0x515e70]
push ecx
lea ecx, [ebp - 0x158]
call fcn.00404280
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x5163b0]
cmp eax, dword [ecx + 4]
jle 0x4daea3
push 0x5163b0
call fcn.004f245f
add esp, 4
cmp dword [0x5163b0], 0xffffffff
jne 0x4daea3
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x150]
call fcn.00404060
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 9
push eax
mov ecx, 0x5163bc
mov dword [0x5163b8], 0x50a308
call fcn.00402cf0
mov byte [ebp - 4], 8
xorps xmm0, xmm0
mov edx, dword [ebp - 0x90]
movups xmmword [0x5163d4], xmm0
cmp edx, 0x10
jb 0x4dae85
mov ecx, dword [ebp - 0xa4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4dae7b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4dae7b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004f1f95
add esp, 8
push 0x4f7c30
call fcn.004f2317
add esp, 4
mov byte [ebp - 4], 7
push 0x5163b0
call fcn.004f2415
add esp, 4
push edi
push fcn.004db4e0
sub esp, 8
mov ecx, 0x5163b8
call fcn.004e3700
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
lea eax, [ebp - 0xb0]
push eax
push 0
push 0x5163b8
push 0x4d98d0
push 0
push 0
call esi
lea eax, [ebp - 0xb4]
push eax
push 0
push 0
push 0x4e4e30
push 0
push 0
call esi
mov eax, dword [ebp - 0x168]
add esp, 0x30
xor esi, esi
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x168]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x16c], eax
lea ecx, [ebp - 0x150]
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
call fcn.00403fc0
lea ecx, [ebp - 0x150]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x148]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x100]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x4daf84
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4daf7a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4daffe
push edx
push ecx
call fcn.004f1f95
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
jb 0x4dafc6
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4dafbc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4daffe
push edx
push ecx
call fcn.004f1f95
add esp, 8
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
mov edx, dword [ebp - 0x60]
cmp edx, 0x10
jb 0x4db00e
mov ecx, dword [ebp - 0x74]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4db004
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4db004
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004f1f95
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f1f57
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret