Function at 0x41d4a7
Capabilities:
Link many functions at runtime

Disassembly:
push 0x6c
mov eax, 0x55570f
call fcn.00527be2
mov eax, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], 2
cmp dword [ebp + 0x1c], 1
jae 0x41d4f4
lea edx, [ebp - 0x4c]
call fcn.0041d3ae
mov ebx, eax
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.00409383
push 1
xor edi, edi
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.00409659
mov ebx, dword [ebp - 0x6c]
lea eax, [ebp + 0xc]
push eax
lea esi, [ebp - 0x30]
call fcn.00408277
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x41d50b
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
jne 0x41d520
mov byte [ebx + 4], al
jmp 0x41d5ed
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.initialize
push eax
mov byte [ebx + 4], 1
call esi
push str.isTrackerInitialized
push dword [ebx]
mov dword [0x5b9538], eax
call esi
push str.enableTrack
push dword [ebx]
mov dword [0x5b953c], eax
call esi
push str.disableTrack
push dword [ebx]
mov dword [0x5b9540], eax
call esi
push str.trackEvent
push dword [ebx]
mov dword [0x5b9544], eax
call esi
push str.sendMsg
push dword [ebx]
mov dword [0x5b9548], eax
call esi
push str.trackWindowOntop
push dword [ebx]
mov dword [0x5b954c], eax
call esi
push str.trackWindowBackstage
push dword [ebx]
mov dword [0x5b9550], eax
call esi
push str.trackUserAction
push dword [ebx]
mov dword [0x5b9554], eax
call esi
push str.setTerminateTimeouts
push dword [ebx]
mov dword [0x5b9558], eax
call esi
push str.terminate
push dword [ebx]
mov dword [0x5b955c], eax
call esi
push str.setChannel
push dword [ebx]
mov dword [0x5b9560], eax
call esi
push str.setAppVersion
push dword [ebx]
mov dword [0x5b9564], eax
call esi
push str.setVersionCode
push dword [ebx]
mov dword [0x5b9568], eax
call esi
mov dword [0x5b956c], eax
push 1
xor edi, edi
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00409659
cmp dword [ebp + 0x54], 1
jae 0x41d661
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x70], esp
push str.Channel
call fcn.0040829d
sub esp, 0x1c
mov byte [ebp - 4], 5
mov esi, esp
mov dword [ebp - 0x74], esp
push str.SoftwareMagicPlus
call fcn.0040829d
push edi
mov byte [ebp - 4], 6
call fcn.00402ced
pop ecx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.00402ded
mov ebx, eax
lea eax, [ebp + 0x44]
mov byte [ebp - 4], 7
call fcn.00409383
push 1
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.00409659
mov ebx, dword [ebp - 0x6c]
cmp dword [ebp + 0x38], 1
jae 0x41d6c8
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x74], esp
push str.Version
call fcn.0040829d
sub esp, 0x1c
mov byte [ebp - 4], 8
mov esi, esp
mov dword [ebp - 0x70], esp
push str.SoftwareMagicPlus
call fcn.0040829d
push 0
mov byte [ebp - 4], 9
call fcn.00402ced
pop ecx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.00402ded
mov ebx, eax
lea eax, [ebp + 0x28]
mov byte [ebp - 4], 0xa
call fcn.00409383
push 1
xor edi, edi
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.00409659
mov ebx, dword [ebp - 0x6c]
push 0x585d54
lea esi, [ebp - 0x68]
call fcn.0040829d
xor esi, esi
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x70], esi
cmp dword [ebp + 0x38], esi
jbe 0x41d75a
push 0x585000
lea ebx, [ebp + 0x28]
call fcn.0041a207
push eax
push esi
mov eax, ebx
push eax
lea esi, [ebp - 0x30]
call fcn.00408310
mov ebx, eax
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 0xc
call fcn.00409383
push 1
xor edi, edi
mov byte [ebp - 4], 0xb
call fcn.00409659
push 0xffffffffffffffff
push 0x585000
lea ebx, [ebp + 0x28]
call fcn.0041a207
inc eax
push eax
mov eax, ebx
push eax
lea esi, [ebp - 0x4c]
call fcn.00408310
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x41d73f
mov eax, esi
push eax
call fcn.005239a8
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x4c]
mov dword [ebp - 0x70], eax
call fcn.00409659
mov ebx, dword [ebp - 0x6c]
xor esi, esi
cmp byte [ebx + 4], 0
je 0x41d85e
mov eax, dword [0x5b953c]
cmp eax, esi
je 0x41d84b
cmp dword [0x5b9538], esi
je 0x41d7d9
call eax
test al, al
jne 0x41d7d9
lea eax, [ebp - 0x30]
push eax
call fcn.0041d159
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x30]
mov dword [esp], str.reaper_
push eax
call fcn.004082e5
push str.Reaper_SDK___ReaperInitialize__path
push esi
call fcn.004024ac
pop ecx
mov ecx, eax
call fcn.0040252f
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x41d7bb
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x78]
call dword [0x5b9538]
pop ecx
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 0xb
call fcn.00409659
xor esi, esi
call dword [0x5b953c]
test al, al
jne 0x41d7f6
push str._Failed_initialize_reaper_SDK
push esi
call fcn.004024ac
pop ecx
mov ecx, eax
call fcn.0040252f
push str.Reaper_SDK___ReaperEnableTrack
push esi
call fcn.004024ac
pop ecx
mov ecx, eax
call fcn.0040252f
mov eax, dword [0x5b9564]
cmp eax, esi
je 0x41d822
cmp dword [ebp + 0x58], 8
mov ecx, dword [ebp + 0x44]
jae 0x41d81e
lea ecx, [ebp + 0x44]
push ecx
call eax
pop ecx
mov eax, dword [0x5b9568]
cmp eax, esi
je 0x41d845
cmp dword [ebp - 0x54], 8
mov ecx, dword [ebp - 0x68]
jae 0x41d837
lea ecx, [ebp - 0x68]
push ecx
call eax
pop ecx
push dword [ebp - 0x70]
call dword [0x5b956c]
pop ecx
call dword [0x5b9540]
push str.Reaper_SDK___Reaper_Start
push esi
call fcn.004024ac
pop ecx
mov ecx, eax
call fcn.0040252f
push 1
xor edi, edi
lea esi, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.00409659
push 1
lea esi, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00409659
push 1
lea esi, [ebp + 0x28]
mov byte [ebp - 4], 0
call fcn.00409659
or dword [ebp - 4], 0xffffffff
push 1
lea esi, [ebp + 0x44]
call fcn.00409659
call fcn.00527c65
ret 0x58