Function at 0x439220
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b741
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push ebx
push esi
push edi
mov eax, dword [0x4ed800]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
lea ecx, [ebp - 0xbc]
push 1
sub eax, 1
je 0x4395a6
sub eax, 3
je 0x4394a0
sub eax, 2
je 0x43939e
call fcn.004225a0
mov dword [ebp - 4], 6
call fcn.0046d070
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push 0x4abedc
push eax
lea eax, [ebp - 0xbc]
mov dword [ebp - 0x1c], edx
push eax
call fcn.004160d0
add esp, 8
push eax
call fcn.004165a0
add esp, 8
mov esi, eax
call sub.KERNEL32.dll_GetCurrentThreadId
push 0x4a7b44
push eax
push esi
call fcn.00416050
add esp, 8
push eax
call fcn.004165a0
add esp, 8
lea eax, [ebp - 0xbc]
push str.Incorrect_state
push str.start_running:
push str.carousel_runner_t:
push eax
call fcn.004165a0
add esp, 8
push eax
call fcn.004165a0
add esp, 8
push eax
call fcn.004165a0
push eax
call fcn.00421a40
mov eax, dword [ebp - 0xbc]
add esp, 0xc
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xbc], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xc0], eax
lea ecx, [ebp - 0xb8]
call fcn.004230c0
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xbc], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xc0], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 7
push eax
mov dword [ebp - 0x6c], vtable.std::ios_base.0
call fcn.0046d7a8
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x4ed078
push str.carousel_runner_t:_In_incorrect_state._Please_restart_the_program.
push 7
call fcn.00431760
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.004225a0
mov dword [ebp - 4], 2
call fcn.0046d070
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push 0x4abedc
push eax
lea eax, [ebp - 0xbc]
mov dword [ebp - 0x1c], edx
push eax
call fcn.004160d0
add esp, 8
push eax
call fcn.004165a0
add esp, 8
mov esi, eax
call sub.KERNEL32.dll_GetCurrentThreadId
push 0x4a7b44
push eax
push esi
call fcn.00416050
add esp, 8
push eax
call fcn.004165a0
add esp, 8
lea eax, [ebp - 0xbc]
push str.Resuming_aborted_cycle
push str.start_running:
push str.carousel_runner_t:
push eax
call fcn.004165a0
add esp, 8
push eax
call fcn.004165a0
add esp, 8
push eax
call fcn.004165a0
push eax
call fcn.00421a40
mov eax, dword [ebp - 0xbc]
add esp, 0xc
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xbc], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xc0], eax
lea ecx, [ebp - 0xb8]
call fcn.004230c0
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xbc], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xc0], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 3
push eax
mov dword [ebp - 0x6c], vtable.std::ios_base.0
call fcn.0046d7a8
jmp 0x4396af
call fcn.004225a0
mov dword [ebp - 4], 4
call fcn.0046d070
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push 0x4abedc
push eax
lea eax, [ebp - 0xbc]
mov dword [ebp - 0x1c], edx
push eax
call fcn.004160d0
add esp, 8
push eax
call fcn.004165a0
add esp, 8
mov esi, eax
call sub.KERNEL32.dll_GetCurrentThreadId
push 0x4a7b44
push eax
push esi
call fcn.00416050
add esp, 8
push eax
call fcn.004165a0
add esp, 8
lea eax, [ebp - 0xbc]
push str.Resuming_cycle_with_error_or_faults
push str.start_running:
push str.carousel_runner_t:
push eax
call fcn.004165a0
add esp, 8
push eax
call fcn.004165a0
add esp, 8
push eax
call fcn.004165a0
push eax
call fcn.00421a40
mov eax, dword [ebp - 0xbc]
add esp, 0xc
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xbc], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xc0], eax
lea ecx, [ebp - 0xb8]
call fcn.004230c0
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xbc], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xc0], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 5
push eax
mov dword [ebp - 0x6c], vtable.std::ios_base.0
call fcn.0046d7a8
mov byte [ebx + 6], 1
jmp 0x4396af
call fcn.004225a0
mov dword [ebp - 4], 0
call fcn.0046d070
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push 0x4abedc
push eax
lea eax, [ebp - 0xbc]
mov dword [ebp - 0x1c], edx
push eax
call fcn.004160d0
add esp, 8
push eax
call fcn.004165a0
add esp, 8
mov esi, eax
call sub.KERNEL32.dll_GetCurrentThreadId
push 0x4a7b44
push eax
push esi
call fcn.00416050
add esp, 8
push eax
call fcn.004165a0
add esp, 8
lea eax, [ebp - 0xbc]
push str.Starting_new_cycle
push str.start_running:
push str.carousel_runner_t:
push eax
call fcn.004165a0
add esp, 8
push eax
call fcn.004165a0
add esp, 8
push eax
call fcn.004165a0
push eax
call fcn.00421a40
mov eax, dword [ebp - 0xbc]
add esp, 0xc
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xbc], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xc0], eax
lea ecx, [ebp - 0xb8]
call fcn.004230c0
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xbc], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xc0], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x6c], vtable.std::ios_base.0
call fcn.0046d7a8
mov al, byte [ebp + 8]
mov byte [ebx + 4], al
mov al, byte [ebp + 0xc]
mov byte [ebx + 5], al
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x4f9730
push 0x2bc
push 0x4b0
push 0x190
push str.MechanicalParamsDraaitijdWiel_ms
call fcn.0040d0f0
cmp byte [ebx + 4], 0
mov dl, byte [ebx + 5]
mov dword [ebp + 0xc], eax
je 0x4396f9
test dl, dl
je 0x4396f0
mov dword [ebp + 8], 0x4ad760
jmp 0x439708
mov dword [ebp + 8], 0x4ad768
jmp 0x439708
test dl, dl
je 0x43991d
mov dword [ebp + 8], 0x4ad764
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
push 0x14
mov dword [ebp - 4], 8
call fcn.00455a60
mov edi, eax
add esp, 4
test edi, edi
je 0x43974b
mov dword [edi], 1
mov dword [edi + 4], 2
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
jmp 0x43974d
xor edi, edi
mov dword [ebp - 0x10], edi
test edi, edi
je 0x43975d
mov eax, 1
lock xadd dword [edi], eax
mov esi, edi
mov dword [ebp - 0x1c], esi
push 0x18
mov byte [ebp - 4], 0xa
call fcn.00455a60
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4397a3
lea eax, [ebx + 0x14]
xor esi, esi
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov al, byte [ebx + 6]
mov dword [ecx + 0x10], edi
xor edi, edi
mov byte [ecx + 0xc], al
mov dword [ebp - 0x1c], esi
mov dword [ecx + 0x14], 0x43a520
mov dword [ebp + 8], esi
jmp 0x4397a8
xor ecx, ecx
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0xb
push eax
push 0
push ecx
push 0x435000
push 0
push 0
call fcn.0047fe11
add esp, 0x18
mov dword [ebp - 0x18], eax
test eax, eax
je 0x439964
test edi, edi
je 0x4397f0
mov ecx, dword [ebp + 8]
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x4397f0
push 0x14
push esi
call fcn.00469c50
add esp, 8
lea esi, [ebx + 8]
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
mov edi, 0xfffffffe
cmp esi, eax
je 0x439863
mov ecx, esi
call fcn.00437b10
cmp dword [esi + 4], 0
jne 0x43995f
mov eax, dword [ebp - 0x18]
xor edx, edx
mov ecx, dword [ebp - 0x14]
xorps xmm0, xmm0
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x10]
mov dword [esi], eax
mov eax, dword [esi + 8]
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x10], edx
mov dword [esi + 8], ecx
test eax, eax
je 0x439866
lea ecx, [eax + 4]
mov edx, edi
lock xadd dword [ecx], edx
and edx, edi
cmp edx, 2
jne 0x439863
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x439863
push 0x14
push eax
call fcn.00469c50
add esp, 8
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xc
je 0x4398b9
test edx, edx
je 0x43987e
mov ecx, edx
call fcn.004379d0
cmp dword [ebp - 0x14], 0
je 0x43994a
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
je 0x439951
push 0
push ecx
push dword [ebp - 0x18]
call fcn.0046c621
add esp, 0xc
test eax, eax
jne 0x439958
mov edx, dword [ebp - 0x10]
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
test edx, edx
je 0x4398e3
lea eax, [edx + 4]
lock xadd dword [eax], edi
and edi, 0xfffffffe
cmp edi, 2
jne 0x4398e3
or eax, 0xffffffff
lock xadd dword [edx], eax
cmp eax, 1
jne 0x4398e3
push 0x14
push edx
call fcn.00469c50
add esp, 8
cmp dword [ebp - 0x14], 0
jne 0x43995f
lea eax, [ebp - 0xc4]
mov dword [ebx], 2
push eax
call fcn.00430530
add esp, 4
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebx + 0x78], ecx
mov dword [ebx + 0x7c], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.No_run_procedure_selected
push str.get_carousel_run_procedure:
call fcn.004350a0
add esp, 8
lea ecx, [ebp - 0x24]
push str.get_carousel_run_procedure:_No_run_procedure_selected
call fcn.004355a0
push 0x4e6628
lea eax, [ebp - 0x24]
push eax
call fcn.0046fc9f
push 1
call fcn.0046c9a2
push 5
call fcn.0046c9a2
push 2
call fcn.0046c9a2
call fcn.0047fea2
push 6
mov dword [ebp - 0x14], 0
call fcn.0046c9a2
int3