Function at 0x44b949
Capabilities:
Check for foreground window switch
Check for time delay via gettickcount
Create process on windows
Query environment variable

Disassembly:
sub esp, 0x314
mov eax, dword [0x47e5d0]
xor eax, esp
mov dword [esp + 0x310], eax
push ebx
mov ebx, dword [esp + 0x31c]
push ebp
push esi
mov esi, dword [esp + 0x328]
push edi
xor ebp, ebp
push 0x207
lea eax, [esp + 0x11d]
push ebp
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x124], 0
call fcn.00452e00
xor eax, eax
mov byte [esp + 0x94], 0
lea edi, [esp + 0x95]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x7f
stosb byte es:[edi], al
lea eax, [esp + 0xa9]
push ebp
push eax
mov byte [esp + 0xb0], 0
call fcn.00452e00
add esp, 0x18
cmp ebx, ebp
je 0x44c0ee
cmp byte [ebx], 0
je 0x44c0ee
cmp esi, ebp
jne 0x44b9ed
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [esp + 0x3c], eax
push 0x10
lea eax, [esp + 0x30]
push ebp
push eax
call fcn.00452e00
push 0x44
pop edi
push edi
lea eax, [esp + 0x54]
push ebp
push eax
call fcn.00452e00
add esp, 0x18
mov dword [esp + 0x44], edi
mov dword [esp + 0x70], 1
cmp esi, ebp
je 0x44ba21
push 0xa
pop eax
jmp 0x44ba23
xor eax, eax
mov word [esp + 0x74], ax
mov dword [esp + 0x24], 0x20
cmp esi, ebp
jne 0x44ba47
push ebp
call fcn.004487fc
cmp eax, 4
jle 0x44ba47
mov dword [esp + 0x24], 0x8000020
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call edi
mov ebp, 0x208
lea ecx, [ebp + eax]
mov eax, 0x1000
cmp ecx, eax
jle 0x44ba67
push ebx
call edi
add eax, ebp
push 1
push eax
call fcn.00452b24
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x44baa1
cmp dword [esp + 0x334], eax
je 0x44ba9a
cmp dword [0x480260], eax
je 0x44ba9a
push ebx
call edi
add eax, ebp
push eax
push str.____Out_of_memory:__li_r_n
call fcn.0042604a
pop ecx
pop ecx
xor eax, eax
jmp 0x44c0f3
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call edi
lea ecx, [eax + 1]
push 0x7e
pop eax
cmp ecx, eax
jg 0x44baba
push ebx
call edi
inc eax
push eax
push ebx
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esp + 0x98]
push eax
call edi
cmp eax, 0x7a
jl 0x44baf0
push 4
lea eax, [esp + 0x116]
push 0x46f764
push eax
call fcn.00452790
add esp, 0xc
mov ebp, 0x465ee0
push ebp
push ebx
call fcn.004526d0
pop ecx
pop ecx
test eax, eax
jne 0x44bb12
push ebp
push eax
push esi
call fcn.00449673
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 3
lea eax, [esp + 0x11c]
push eax
push esi
call fcn.00411eca
push 0
push 0
push 0x464a50
push ebp
lea eax, [esp + 0x128]
push eax
call fcn.0044923e
mov ebx, str.msconfig
push ebx
push esi
call fcn.004010ff
pop ecx
pop ecx
test eax, eax
je 0x44bc4b
xor eax, eax
cmp byte [esi], 0x22
sete al
add eax, esi
je 0x44bb75
push ebx
call edi
push eax
xor eax, eax
cmp byte [esi], 0x22
push ebx
sete al
add eax, esi
push eax
call fcn.00452ccd
add esp, 0xc
jmp 0x44bb78
xor eax, eax
inc eax
test eax, eax
jne 0x44bbe2
push ebx
call edi
push str.C:WindowsSysNativemsconfig
mov dword [esp + 0x20], eax
call edi
push ebx
push esi
mov dword [esp + 0x20], eax
call fcn.004010ff
pop ecx
pop ecx
jmp 0x44bbda
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add eax, ebp
add ecx, ebp
push eax
mov dword [esp + 0x18], ecx
call edi
inc eax
push eax
mov eax, dword [esp + 0x20]
add eax, ebp
push eax
push dword [esp + 0x1c]
call fcn.00452ea0
push dword [esp + 0x24]
push str.C:WindowsSysNativemsconfig
push ebp
call fcn.00452790
push ebx
push dword [esp + 0x30]
call fcn.004010ff
add esp, 0x20
mov ebp, eax
test ebp, ebp
jne 0x44bb99
jmp 0x44bc4b
mov ebx, str.System32_
push ebx
call edi
push str.SysNative_
mov dword [esp + 0x20], eax
call edi
push ebx
push esi
mov dword [esp + 0x20], eax
call fcn.004010ff
pop ecx
pop ecx
jmp 0x44bc45
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add eax, ebp
add ecx, ebp
push eax
mov dword [esp + 0x18], ecx
call edi
inc eax
push eax
mov eax, dword [esp + 0x20]
add eax, ebp
push eax
push dword [esp + 0x1c]
call fcn.00452ea0
push dword [esp + 0x24]
push str.SysNative_
push ebp
call fcn.00452790
push ebx
push dword [esp + 0x30]
call fcn.004010ff
add esp, 0x20
mov ebp, eax
test ebp, ebp
jne 0x44bc04
mov ebp, dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x48]
push eax
xor ebx, ebx
lea eax, [esp + 0x120]
push eax
push ebx
push dword [esp + 0x34]
push ebx
push ebx
push ebx
push esi
push ebx
call ebp
push esi
mov dword [esp + 0x1c], eax
call edi
inc eax
cmp eax, 0x103
jle 0x44bc87
mov eax, 0x103
jmp 0x44bc8b
push esi
call edi
inc eax
push eax
push esi
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [esp + 0x18], ebx
jne 0x44c0bc
push str..EXE
push dword [esp + 0x14]
call fcn.004010ff
pop ecx
pop ecx
test eax, eax
je 0x44bd1b
push dword [esp + 0x10]
call edi
add eax, 0x207
push eax
push esi
push ebx
push dword [esp + 0x1c]
call fcn.00413805
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x48]
push eax
push ebx
push ebx
push dword [esp + 0x34]
push ebx
push ebx
push ebx
push esi
push ebx
call ebp
push esi
mov dword [esp + 0x1c], eax
call edi
inc eax
cmp eax, 0x103
jle 0x44bcfd
mov eax, 0x103
jmp 0x44bd01
push esi
call edi
inc eax
push eax
push esi
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [esp + 0x18], ebx
jne 0x44c0bc
mov ebp, 0x466c80
push ebp
push dword [esp + 0x14]
call fcn.004526d0
pop ecx
pop ecx
test eax, eax
je 0x44be44
push 0xf
push ebp
push dword [esp + 0x18]
call fcn.004526d0
pop ecx
pop ecx
push eax
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [esp + 0x10]
lea eax, [esp + 0x8c]
push esi
push eax
call fcn.00410fea
cmp byte [esi], bl
je 0x44be44
push esi
call edi
inc eax
push eax
lea eax, [esi + 1]
push esi
push eax
call fcn.00452ea0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0xc
push 0x465ee0
push esi
mov byte [esi], 0x22
call ebp
push esi
call edi
cmp byte [eax + esi - 1], 0x3a
je 0x44bda2
push esi
call edi
cmp byte [eax + esi - 1], 0x3d
jne 0x44bdac
mov dword [esp + 0x20], 1
jmp 0x44bdcd
push str.__r_n
push esi
call ebp
push 0x22
push dword [esp + 0x14]
call fcn.00452d30
pop ecx
pop ecx
test eax, eax
jne 0x44bdcd
push 0x465ee0
push esi
call ebp
push dword [esp + 0x10]
push esi
call ebp
cmp dword [esp + 0x20], ebx
jne 0x44bdf3
push 0x22
push dword [esp + 0x14]
call fcn.00452d30
pop ecx
pop ecx
test eax, eax
jne 0x44bdf3
push 0x465ee0
push esi
call ebp
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x48]
push eax
push ebx
push ebx
push dword [esp + 0x34]
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push esi
mov dword [esp + 0x1c], eax
call edi
inc eax
cmp eax, 0x103
jle 0x44be24
mov eax, 0x103
jmp 0x44be28
push esi
call edi
inc eax
push eax
push esi
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [esp + 0x18], ebx
jne 0x44c0bc
jmp 0x44be4a
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
cmp dword [esp + 0x40], ebx
setne al
push eax
push ebx
push ebx
push esi
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x44bfc8
push esi
call edi
lea ecx, [eax + 0x208]
mov eax, 0x1000
cmp ecx, eax
jle 0x44be97
push esi
call edi
add eax, 0x208
push 1
push eax
call fcn.00452b24
push 0x22
push esi
mov dword [esp + 0x24], eax
call fcn.00452d30
add esp, 0x10
test eax, eax
je 0x44bed5
cmp dword [esp + 0x14], ebx
je 0x44becd
push 0x22
push esi
call fcn.00452d30
pop ecx
pop ecx
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push 0x465ee0
jmp 0x44bf04
push 0x20
push esi
call fcn.00452d30
pop ecx
pop ecx
test eax, eax
je 0x44bf0a
cmp dword [esp + 0x14], ebx
je 0x44befe
push 0x20
push esi
call fcn.00452d30
pop ecx
pop ecx
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push str.__r_n
push esi
call fcn.0044937b
mov al, byte [esi]
test al, al
je 0x44bf37
cmp al, 0x20
je 0x44bf20
cmp al, 9
je 0x44bf20
cmp al, 0xd
je 0x44bf20
cmp al, 0xa
jne 0x44bf37
lea eax, [esi + 1]
push eax
call edi
inc eax
push eax
lea eax, [esi + 1]
push eax
push esi
call fcn.00452ea0
add esp, 0xc
jmp 0x44bf0a
push esi
call edi
jmp 0x44bf56
mov cl, byte [eax + esi]
cmp cl, 0x20
je 0x44bf53
cmp cl, 9
je 0x44bf53
cmp cl, 0xd
je 0x44bf53
cmp cl, 0xa
jne 0x44bf5b
mov byte [eax + esi], bl
dec eax
cmp eax, ebx
jg 0x44bf3c
push dword [esp + 0x1c]
push ebx
push dword [esp + 0x1c]
push esi
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [esp + 0x20], eax
cmp eax, 0x20
jg 0x44bfb1
push str..EXE
push esi
call fcn.004010ff
pop ecx
pop ecx
test eax, eax
jne 0x44bfb1
push str..EXE
push esi
call ebp
push dword [esp + 0x1c]
push ebx
push dword [esp + 0x1c]
push esi
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [esp + 0x20], eax
cmp dword [esp + 0x14], ebx
je 0x44bfc1
push dword [esp + 0x14]
call fcn.00452756
pop ecx
cmp dword [esp + 0x20], 0x20
jle 0x44c006
cmp dword [esp + 0x40], ebx
jne 0x44bff7
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [esp + 0x3c]
je 0x44bff7
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esp + 0x3c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call fcn.00452756
pop ecx
xor eax, eax
inc eax
jmp 0x44c0f3
push str..EXE
push dword [esp + 0x14]
call fcn.004526d0
pop ecx
pop ecx
test eax, eax
jne 0x44c0bc
push esi
push ebx
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x20
jbe 0x44c0bc
push str.__r_n
push esi
call ebp
push 0x465ee0
push dword [esp + 0x14]
call fcn.004526d0
pop ecx
pop ecx
test eax, eax
jne 0x44c057
push 0x465ee0
push esi
call ebp
push dword [esp + 0x10]
push esi
call ebp
push 0x465ee0
push dword [esp + 0x14]
call fcn.004526d0
pop ecx
pop ecx
test eax, eax
jne 0x44c07a
push 0x465ee0
push esi
call ebp
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x48]
push eax
push ebx
push ebx
push dword [esp + 0x34]
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push esi
mov dword [esp + 0x1c], eax
call edi
lea ecx, [eax + 1]
mov eax, 0x103
cmp ecx, eax
jg 0x44c0ac
push esi
call edi
inc eax
push eax
push esi
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push esi
call fcn.00452756
pop ecx
cmp dword [esp + 0x18], ebx
jne 0x44c10e
cmp dword [esp + 0x334], ebx
je 0x44c0ee
cmp dword [0x480260], ebx
je 0x44c0ee
lea eax, [esp + 0x98]
push eax
push str.____Unable_to_start___s__with_any_method
call fcn.0042604a
pop ecx
pop ecx
mov eax, 0xffffcfc3
mov ecx, dword [esp + 0x320]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00452dee
add esp, 0x314
ret 0x10
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x30], ebx
je 0x44c120
push dword [esp + 0x30]
call ebp
mov edi, dword [esp + 0x330]
cmp edi, ebx
jge 0x44c12f
push 0xffffffffffffffff
jmp 0x44c13b
mov eax, 0x1388
cmp edi, eax
jle 0x44c13a
mov eax, edi
push eax
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
cmp dword [esp + 0x40], ebx
jne 0x44c18c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esp + 0x34]
call fcn.0044a2da
mov esi, eax
cmp esi, ebx
je 0x44c18c
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
je 0x44c18c
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x44c18c
push ebx
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp edi, ebx
jne 0x44c1a5
cmp dword [esp + 0x2c], ebx
je 0x44bffe
push dword [esp + 0x2c]
call ebp
jmp 0x44bffe
mov eax, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x485454], eax
add edi, 0x1f4
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], 0x103
call esi
sub eax, dword [esp + 0x20]
cmp eax, edi
jae 0x44c1f5
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x30]
call ebp
cmp dword [esp + 0x28], 0x103
je 0x44c1ce
mov dword [0x485454], ebx
call esi
sub eax, dword [esp + 0x20]
cmp eax, edi
jb 0x44c21f
cmp dword [esp + 0x2c], ebx
je 0x44c215
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffcfc4
jmp 0x44c0f3
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x30]
call ebp
push 0xff
lea eax, [esp + 0x11c]
push eax
push str.ERRORLEVEL
mov byte [esp + 0x124], bl
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp dword [esp + 0x2c], ebx
je 0x44c259
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x28]
jmp 0x44c0f3