Function at 0x446e50
Capabilities:
Create process on windows
Create process suspended
Query environment variable
Resume thread

Disassembly:
jmp 0x446e50
sub esp, 0xbc
mov eax, dword [0x487180]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push ebp
mov ebp, dword [esp + 0xc8]
push esi
mov esi, dword [esp + 0xd0]
push edi
xor ebx, ebx
push 0x44
lea eax, [esp + 0x54]
push ebx
push eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x3c], ebx
call fcn.0044d2e0
add esp, 0xc
push 0x410
push 8
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
xor ecx, ecx
cmp dword [0x489fd0], 1
lea edx, [esp + 0x30]
setne cl
push edx
push eax
push ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0x410
mov dword [esp + 0x30], ecx
mov esi, eax
mov dword [esp + 0x38], ebx
call fcn.00401b77
mov ecx, dword [esp + 0x38]
add ecx, eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x2c], ecx
add esi, ecx
cmp byte [eax], 0x22
je 0x446f14
mov byte [eax], 0x41
mov eax, 1
add dword [esp + 0x10], eax
sub dword [esp + 0x1c], eax
cmp dword [esp + 0x24], ebx
mov byte [esi], bl
mov dword [esp + 0x38], esi
je 0x446f46
push 0x104
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
push ebp
push 0x47bdd8
mov ebx, eax
push 0x104
push ebx
call fcn.0046f0bd
add esp, 0x10
mov eax, dword [0x4a50d0]
push eax
mov dword [esp + 0x54], 0x44
mov dword [esp + 0x80], 0x100
call fcn.00401a55
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
add esp, 4
push 2
push 1
push 0
lea ecx, [esp + 0x94]
push ecx
mov edi, eax
call esi
push eax
push edi
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
mov edx, dword [0x4a50d4]
push edx
call fcn.00401a55
add esp, 4
push 2
push 1
mov ebp, eax
push 0
lea eax, [esp + 0x98]
push eax
call esi
push eax
push ebp
call esi
push eax
call edi
mov ecx, dword [0x4a50d8]
push ecx
call fcn.00401a55
add esp, 4
push 2
push 1
push 0
lea edx, [esp + 0x9c]
push edx
mov ebp, eax
call esi
push eax
push ebp
call esi
push eax
call edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
add edi, 4
push edi
call fcn.0040163b
add esp, 0x18
test eax, eax
jne 0x44703a
lea esi, [eax + 1]
call fcn.0044ad41
mov dword [eax], 0xc
mov edx, dword [esp + 0x18]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4472d6
mov eax, dword [esp + 0x38]
mov byte [eax], 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
cmp dword [esp + 0x24], 0
je 0x44710f
mov ebp, dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
xor esi, esi
mov edi, edi
lea ecx, [esp + 0x4c]
push ecx
push ebx
call ebp
test eax, eax
jne 0x44710f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xc1
je 0x447162
cmp esi, 1
jle 0x4470d6
mov al, byte [ebx]
cmp al, 0x5c
je 0x4470a0
cmp al, 0x2f
jne 0x4470cb
mov al, byte [ebx + 1]
cmp al, 0x5c
je 0x4470ab
cmp al, 0x2f
jne 0x4470cb
cmp dword [edi + 4], 0
jne 0x4470cb
cmp dword [0x489f9c], 0
jne 0x4470cb
mov edx, dword [esp + 0x28]
push 0
push 0
push edx
call fcn.0040153c
add esp, 0xc
call fcn.0044ad41
mov dword [eax], 2
test esi, esi
jne 0x4470e6
mov eax, dword [esp + 0x34]
push eax
push str._s.exe
jmp 0x4470f5
cmp esi, 1
jne 0x447103
mov ecx, dword [esp + 0x34]
push ecx
push str._s.EXE
push 0x104
push ebx
call fcn.0046f0bd
add esp, 0x10
add esi, 1
cmp esi, 3
jl 0x447070
call fcn.004015aa
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea edx, [esp + 0x3c]
push edx
mov ebp, eax
lea eax, [esp + 0x54]
push eax
push 0
push 0
or esi, 4
push esi
push 1
push 0
push 0
push ecx
push ebx
call edi
test eax, eax
jne 0x447216
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xc1
jne 0x4471a4
call fcn.0044ad41
mov dword [eax], 8
jmp 0x4471c7
call fcn.0044ad41
mov dword [eax], 8
cmp dword [0x489f9c], 0
jne 0x447187
mov edx, dword [esp + 0x28]
push 0
push 0
push edx
call fcn.0040153c
add esp, 0xc
call fcn.0044ad41
mov ebp, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
cmp dword [eax], ecx
setne cl
mov esi, ecx
jmp 0x4472d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4471bc
call fcn.0044ad41
mov dword [eax], 0x26
jmp 0x4471c7
call fcn.0044ad41
mov dword [eax], 2
cmp dword [esp + 0x24], 0
jne 0x447233
cmp dword [esp + 0x30], 0
jne 0x447233
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push 0x47e418
push edx
push eax
call fcn.0046fbea
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x54]
push edx
push 0
push 0
push esi
push 1
push 0
push 0
push eax
push ebx
mov dword [esp + 0x58], 1
call edi
test eax, eax
je 0x447148
push 0x32
lea ecx, [esp + 0x98]
push ecx
push str.TCSH_NOASYNCGUI
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x447243
xor esi, esi
jmp 0x44724e
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
jmp 0x4472d6
push ebx
call fcn.00401767
add esp, 4
mov esi, eax
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x447277
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
mov ecx, dword [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test esi, esi
jne 0x4472c0
mov edx, dword [esp + 0x3c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x20]
push 2
push edx
call fcn.00401bd1
add esp, 4
push eax
push 0x4a7240
call fcn.004019c4
add esp, 0xc
mov eax, dword [esp + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor esi, esi
call edi
mov ecx, dword [esp + 0x40]
push ecx
call edi
mov edx, dword [esp + 0x88]
push edx
call edi
mov eax, dword [esp + 0x8c]
push eax
call edi
mov ecx, dword [esp + 0x90]
push ecx
call edi
test ebp, ebp
je 0x447301
push ebp
call fcn.00401c17
add esp, 4
mov edx, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edx
push 0
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call edi
test ebx, ebx
je 0x447325
push ebx
push 0
call ebp
push eax
call edi
mov ecx, dword [esp + 0xc8]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044b8bd
add esp, 0xbc
ret