Function at 0x4017ee
Capabilities:
Query environment variable
Terminate process

Disassembly:
jmp 0x4444b0
sub esp, 0xb8
mov eax, dword [0x488180]
xor eax, esp
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xc0]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x2c], eax
xor eax, eax
push 0x44
push eax
lea edx, [esp + 0x54]
push edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], eax
call fcn.0044c680
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add esp, 0xc
push 0x410
push 8
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebp
mov ecx, dword [esp + 0x2c]
xor ebx, ebx
cmp dword [0x48b140], 1
mov esi, eax
setne bl
lea eax, [esp + 0x1c]
push eax
push esi
push ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x3c], 0x410
call fcn.00401b63
mov dword [esp + 0x30], eax
add esp, 0xc
add eax, esi
cmp byte [esi], 0x22
je 0x444566
mov byte [esi], 0x41
add esi, 1
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], 0x40f
test ebx, ebx
mov byte [eax], 0
mov dword [esp + 0x10], eax
jne 0x444688
xor edi, edi
push 0
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x7c], 0x100
call fcn.00401a41
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
add esp, 4
push 2
push 1
push 0
lea edx, [esp + 0x90]
push edx
mov ebp, eax
call esi
push eax
push ebp
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call ebp
push 1
call fcn.00401a41
add esp, 4
push 2
push 1
mov ebx, eax
push 0
lea eax, [esp + 0x94]
push eax
call esi
push eax
push ebx
call esi
push eax
call ebp
push 2
call fcn.00401a41
add esp, 4
push 2
push 1
push 0
lea ecx, [esp + 0x98]
push ecx
mov ebx, eax
call esi
push eax
push ebx
call esi
push eax
call ebp
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x38]
push eax
add ecx, 4
push ecx
call fcn.00401627
add esp, 0x18
test eax, eax
jne 0x444786
mov edx, dword [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call fcn.0044baf1
mov dword [eax], 0xc
mov ecx, dword [esp + 0x84]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x88]
push edx
call esi
mov eax, dword [esp + 0x8c]
push eax
call esi
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044c66d
add esp, 0xb8
ret
push 0x104
push 8
call edi
push eax
call ebp
mov ebx, dword [esp + 0x2c]
push ebx
push 0x47cde4
mov edi, eax
push 0x104
push edi
call fcn.0046fe5d
mov ebp, dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
add esp, 0x10
lea edx, [esp + 0x38]
push edx
push edi
call ebp
test eax, eax
mov edi, edi
jne 0x444577
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xc1
je 0x444758
mov esi, dword [esp + 0x34]
test esi, esi
je 0x44471f
mov al, byte [edi]
cmp al, 0x5c
je 0x4446e9
cmp al, 0x2f
jne 0x444714
mov al, byte [edi + 1]
cmp al, 0x5c
je 0x4446f4
cmp al, 0x2f
jne 0x444714
mov eax, dword [esp + 0x18]
cmp dword [eax + 4], 0
jne 0x444714
cmp dword [0x48b10c], 0
jne 0x444714
push 0
push 1
push eax
call fcn.0040152d
add esp, 0xc
call fcn.0044baf1
mov dword [eax], 2
cmp esi, 1
jg 0x44466f
test esi, esi
push ebx
jne 0x444734
push str._s.exe
jmp 0x444739
push str._s.EXE
push 0x104
push edi
call fcn.0046fe5d
add esp, 0x10
add esi, 1
lea eax, [esp + 0x38]
mov dword [esp + 0x34], esi
push eax
jmp 0x4446b9
call fcn.0044baf1
mov dword [eax], 8
cmp dword [0x48b10c], 0
jne 0x44466f
mov ecx, dword [esp + 0x18]
push 0
push 1
push ecx
call fcn.0040152d
add esp, 0xc
jmp 0x44466f
mov eax, dword [esp + 0x10]
mov byte [eax], 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
cmp word [0x4a9a98], 0
mov ebx, eax
je 0x4447a5
or ebx, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esp + 0x10], eax
call fcn.0040159b
cmp dword [esp + 0x14], 0
je 0x4447c5
or ebx, 4
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x50]
push edx
push 0
push 0
push ebx
push 1
push 0
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov ebp, dword [esp + 0x1c]
jne 0x444895
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xc1
jne 0x444826
cmp dword [0x48b10c], 0
jne 0x444819
mov eax, dword [esp + 0x18]
push 0
push 1
push eax
call fcn.0040152d
add esp, 0xc
call fcn.0044baf1
mov dword [eax], 8
jmp 0x444849
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x44483e
call fcn.0044baf1
mov dword [eax], 0x26
jmp 0x444849
call fcn.0044baf1
mov dword [eax], 2
cmp dword [esp + 0x14], 0
jne 0x44464b
test ebp, ebp
jne 0x44464b
mov ecx, dword [esp + 0x30]
push 0x47f768
push ecx
push esi
call fcn.0047098a
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x50]
push eax
push 0
push 0
push ebx
mov ebp, 1
push ebp
push 0
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4447f2
push 0x32
lea ecx, [esp + 0x94]
push ecx
push str.TCSH_NOASYNCGUI
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4448b2
xor esi, esi
jmp 0x4448d4
cmp dword [esp + 0x14], 0
jne 0x4448c9
test ebp, ebp
jne 0x4448c9
mov edx, dword [esp + 0x2c]
push edx
call fcn.004017e4
jmp 0x4448cf
push edi
call fcn.00401753
mov esi, eax
add esp, 4
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x4448fd
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
mov edx, dword [esp + 0x40]
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
push edx
call edi
cmp dword [esp + 0x14], 0
je 0x444932
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x44492b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x40]
push edx
call edi
call fcn.0044baf1
mov dword [eax], 0
cmp word [0x4a9a94], 0
jne 0x4449ff
cmp word [0x4a9a98], 0
jne 0x4449ff
test esi, esi
jne 0x4449ff
mov eax, dword [esp + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push eax
mov dword [esp + 0x18], esi
call edi
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x40]
push ecx
call esi
cmp dword [0x4aa00c], 0
je 0x4449f4
push 0
call fcn.00401a41
add esp, 4
push eax
call esi
push 1
call fcn.00401a41
add esp, 4
push eax
call esi
push 2
call fcn.00401a41
add esp, 4
push eax
call esi
mov edx, dword [esp + 0x84]
push edx
call esi
mov eax, dword [esp + 0x88]
push eax
call esi
mov ecx, dword [esp + 0x8c]
push ecx
call esi
mov edx, dword [0x48b0d8]
push 0xea60
push edx
call edi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]