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

Disassembly:
push ebp
lea ebp, [esp - 0x2ec]
sub esp, 0x390
mov eax, dword [0x41c0b0]
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov dword [ebp + 0x2e8], eax
call dword [sym.imp.USER32.dll_DefWindowProcW]
push 4
pop eax
call fcn.00404d59
mov eax, dword [0x41cc20]
mov dword [ebp + 0x7c], eax
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x80], eax
lea eax, [ebp + 0x24]
call fcn.00404cf4
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp + 0x7c]
push eax
lea eax, [ebp + 0x58]
push eax
push dword [ebp + 0x2fc]
lea ebx, [ebp + 0x24]
mov dword [ebp + 0x58], edi
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x64], edi
call fcn.00402093
add esp, 0x10
test eax, eax
je 0x40280c
call fcn.00401fcb
mov ebx, eax
cmp ebx, edi
mov dword [ebp + 0x70], ebx
je 0x40280c
push dword [ebp + 0x2f4]
xor edx, edx
xor eax, eax
mov esi, 0x41d65c
call fcn.00404c53
push ebx
push 0x41cfe8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [ebp - 0x60]
mov dword [0x41d650], ebx
call fcn.0040107e
mov word [ebp + 0x84], di
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.0040169a
push str.ttpsetup.exe
lea eax, [ebp + 0x80]
push eax
call fcn.0040521a
lea eax, [ebp + 0x24]
push eax
push ecx
lea ecx, [ebp + 0x80]
mov esi, esp
call fcn.00401671
lea eax, [ebp + 0x58]
push eax
lea ebx, [ebp - 0x60]
call fcn.0040110e
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea eax, [ebp - 0x60]
call fcn.00402964
cmp eax, 1
jne 0x4027eb
lea eax, [ebp - 0x14]
call fcn.00404c2b
mov eax, dword [0x41cc20]
push 0x80
push 3
push 1
push 0x80000000
push dword [ebp + 0x80]
mov dword [ebp + 0x2fc], eax
lea eax, [ebp - 0x14]
call fcn.004049d6
test eax, eax
je 0x402666
cmp dword [ebp + 0x18], ebx
je 0x402631
mov esi, dword [ebp + 0x14]
jmp 0x40263b
lea esi, [ebp - 0x14]
call fcn.0040497f
mov esi, eax
push 0x40
pop eax
push eax
lea ecx, [ebp + 0x2fc]
call fcn.004048e3
push eax
push dword [ebp + 0x18]
mov ecx, esi
call fcn.0040b84b
add esp, 0xc
or eax, 0xffffffff
lea ecx, [ebp + 0x2fc]
call fcn.0040487c
mov eax, dword [0x41cc20]
push dword [ebp - 0x40]
mov dword [ebp + 0x2f4], eax
lea eax, [ebp + 0x2f4]
push 0x4199cc
push eax
call fcn.0040293b
push dword [ebp + 0x7c]
push dword [ebp + 0x2f4]
call fcn.0040ebec
add esp, 0x14
test eax, eax
jne 0x402875
push dword [ebp + 0x78]
push dword [ebp + 0x2fc]
call fcn.0040ebec
test eax, eax
pop ecx
pop ecx
jne 0x402875
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 0x40273d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40273d
push 0x419948
lea edi, [ebp + 0x74]
call fcn.004052ab
push ebx
push dword [ebp + 0x74]
push ebx
push ebx
call dword [sym.imp.USER32.dll_FindWindowExW]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x402729
push ebx
push ebx
push 0x10
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0x74]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x40273d
push eax
call fcn.0040172e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0xa0]
rep stosd dword es:[edi], eax
lea ecx, [ebp + 0x48]
push ecx
mov dword [ebp + 0x48], ebx
lea ecx, [ebp - 0xa4]
push ecx
push ebx
lea edi, [ebp + 0x4c]
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 - 0xa4], 0x44
mov dword [ebp - 0x78], 1
mov word [ebp - 0x74], 0xa
mov eax, dword [eax - 8]
push ebx
lea ecx, [ebp + 0x80]
call fcn.004047dd
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4027ae
push dword [ebp + 0x4c]
call esi
push dword [ebp + 0x48]
call esi
mov eax, dword [ebp + 0x2f4]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x4027c5
push eax
call fcn.0040172e
mov eax, dword [ebp + 0x2fc]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x4027dc
push eax
call fcn.0040172e
lea esi, [ebp - 0x14]
call fcn.00404c0a
mov eax, esi
call fcn.00404b14
mov eax, 0x41d65c
call fcn.00404653
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x41d650], ebx
lea edi, [ebp - 0x60]
call fcn.004010d0
lea esi, [ebp + 0x58]
call fcn.00401db8
lea esi, [ebp + 0x24]
call fcn.00402907
mov eax, dword [ebp + 0x80]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x402833
push eax
call fcn.0040172e
mov eax, dword [ebp + 0x78]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x402847
push eax
call fcn.0040172e
mov eax, dword [ebp + 0x7c]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x40285b
push eax
call fcn.0040172e
mov ecx, dword [ebp + 0x2e8]
xor eax, eax
call fcn.0040f439
pop edi
pop esi
pop ebx
add ebp, 0x2ec
leave
ret 0x10
push 0x82a1
lea eax, [ebp + 0x70]
call fcn.00401b12
lea eax, [ebp + 0x74]
mov dword [esp], 0x82a2
call fcn.00401b12
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 0x4028b4
push eax
call fcn.0040172e
lea eax, [edi - 0xc]
cmp eax, dword [0x41cc24]
je 0x4028c5
push eax
call fcn.0040172e
mov eax, dword [ebp + 0x2f4]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x4028dc
push eax
call fcn.0040172e
mov eax, dword [ebp + 0x2fc]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x4028f3
push eax
call fcn.0040172e
lea esi, [ebp - 0x14]
call fcn.00404c0a
mov eax, esi
call fcn.00404b14
jmp 0x402804