Function at 0x4024de
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x2ec]
sub esp, 0x3b0
mov eax, dword [0x41c0b0]
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov dword [ebp + 0x2e8], eax
call dword [sym.imp.USER32.dll_DefWindowProcW]
push 4
pop eax
call fcn.004050f8
mov eax, dword [0x41cc20]
mov edi, eax
mov dword [ebp + 0x7c], eax
mov dword [ebp + 0x78], eax
lea eax, [ebp + 0x3c]
mov dword [ebp + 0x80], edi
call fcn.00405093
lea eax, [ebp - 0x24]
call fcn.00401d69
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp + 0x7c]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x2fc]
lea ebx, [ebp + 0x3c]
call fcn.004020c0
add esp, 0x10
test eax, eax
je 0x402560
call fcn.00401ff8
mov ebx, eax
cmp ebx, esi
mov dword [ebp + 0x70], ebx
jne 0x402578
lea eax, [ebp - 0x24]
call fcn.004010cf
lea esi, [ebp + 0x3c]
call fcn.00402944
lea eax, [edi - 0xc]
jmp 0x402862
push dword [ebp + 0x2f4]
xor edx, edx
xor eax, eax
mov esi, 0x41d660
call fcn.00404ff2
push ebx
push 0x41cfe8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea esi, [ebp - 0xc4]
mov dword [0x41d650], ebx
call fcn.0040107e
and word [ebp + 0x84], 0
xor eax, eax
mov ecx, 0x81
lea edi, [ebp + 0x86]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 0x84]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp + 0x84]
push eax
lea eax, [ebp + 0x80]
call fcn.004016a1
push str.ttpsetup.exe
lea eax, [ebp + 0x80]
push eax
call fcn.004055c1
lea eax, [ebp + 0x3c]
push eax
push ecx
lea ecx, [ebp + 0x80]
mov esi, esp
call fcn.00401678
lea eax, [ebp - 0x24]
push eax
lea ebx, [ebp - 0xc4]
call fcn.0040112d
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea eax, [ebp - 0xc4]
call fcn.004029a1
cmp eax, 1
jne 0x402825
lea eax, [ebp + 4]
call fcn.00404fca
mov eax, dword [0x41cc20]
push 0x80
push 3
push 1
push 0x80000000
push dword [ebp + 0x80]
mov dword [ebp + 0x2fc], eax
lea eax, [ebp + 4]
call fcn.00404d75
test eax, eax
je 0x4026a8
cmp dword [ebp + 0x30], ebx
je 0x402673
mov esi, dword [ebp + 0x2c]
jmp 0x40267d
lea esi, [ebp + 4]
call fcn.00404d1e
mov esi, eax
push 0x40
pop eax
push eax
lea ecx, [ebp + 0x2fc]
call fcn.00404c82
push eax
push dword [ebp + 0x30]
mov ecx, esi
call fcn.0040b60c
add esp, 0xc
or eax, 0xffffffff
lea ecx, [ebp + 0x2fc]
call fcn.00404c1b
mov eax, dword [0x41cc20]
push dword [ebp - 0xa4]
mov dword [ebp + 0x2f4], eax
lea eax, [ebp + 0x2f4]
push 0x419abc
push eax
call fcn.00402978
push dword [ebp + 0x7c]
push dword [ebp + 0x2f4]
call fcn.0040e9ac
add esp, 0x14
test eax, eax
jne 0x4028b2
push dword [ebp + 0x78]
push dword [ebp + 0x2fc]
call fcn.0040e9ac
test eax, eax
pop ecx
pop ecx
jne 0x4028b2
push 0x16
pop ecx
mov esi, str.2A85B11F_C71F_4fbd_9B99_EBC6613D63C4_Event
lea edi, [ebp + 0x28c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0x28c]
push eax
push ebx
push 1
push ebx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
cmp esi, ebx
je 0x402780
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402780
push str.TTPlayer_PlayerWnd
lea edi, [ebp + 0x74]
call fcn.00405652
mov edi, dword [ebp + 0x74]
push ebx
push edi
push ebx
push ebx
call dword [sym.imp.USER32.dll_FindWindowExW]
push eax
mov dword [ebp + 0x74], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x402766
push ebx
push ebx
push 0x10
push dword [ebp + 0x74]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [edi - 0xc]
cmp eax, dword [0x41cc24]
je 0x402780
push eax
call fcn.0040171a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
lea ecx, [ebp + 0x60]
push ecx
mov dword [ebp + 0x60], ebx
lea ecx, [ebp - 0x68]
push ecx
push ebx
lea edi, [ebp + 0x64]
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
push ebx
push ebx
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x80]
push ebx
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], 1
mov word [ebp - 0x38], 0xa
mov eax, dword [eax - 8]
push ebx
lea ecx, [ebp + 0x80]
call fcn.00404b7c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4027e8
push dword [ebp + 0x64]
call esi
push dword [ebp + 0x60]
call esi
mov eax, dword [ebp + 0x2f4]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x4027ff
push eax
call fcn.0040171a
mov eax, dword [ebp + 0x2fc]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x402816
push eax
call fcn.0040171a
lea esi, [ebp + 4]
call fcn.00404fa9
mov eax, esi
call fcn.00404eb3
mov eax, 0x41d660
call fcn.00404a19
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x41d650], ebx
lea esi, [ebp - 0xc4]
call fcn.004010f1
lea eax, [ebp - 0x24]
call fcn.004010cf
lea esi, [ebp + 0x3c]
call fcn.00402944
mov eax, dword [ebp + 0x80]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x402870
push eax
call fcn.0040171a
mov eax, dword [ebp + 0x78]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x402884
push eax
call fcn.0040171a
mov eax, dword [ebp + 0x7c]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x402898
push eax
call fcn.0040171a
mov ecx, dword [ebp + 0x2e8]
xor eax, eax
call fcn.0040f289
pop edi
pop esi
pop ebx
add ebp, 0x2ec
leave
ret 0x10
push 0x82a1
lea eax, [ebp + 0x70]
call fcn.00401ac3
lea eax, [ebp + 0x74]
mov dword [esp], 0x82a2
call fcn.00401ac3
mov esi, dword [ebp + 0x74]
mov edi, dword [ebp + 0x70]
pop ecx
push 0x30
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [esi - 0xc]
cmp eax, dword [0x41cc24]
je 0x4028f1
push eax
call fcn.0040171a
lea eax, [edi - 0xc]
cmp eax, dword [0x41cc24]
je 0x402902
push eax
call fcn.0040171a
mov eax, dword [ebp + 0x2f4]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x402919
push eax
call fcn.0040171a
mov eax, dword [ebp + 0x2fc]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x402930
push eax
call fcn.0040171a
lea esi, [ebp + 4]
call fcn.00404fa9
mov eax, esi
call fcn.00404eb3
jmp 0x40283e