Function at 0x4436f0
Capabilities:
Create process on windows
Query environment variable
Resume thread
Terminate process

Disassembly:
jmp 0x4436f0
sub esp, 0xb8
mov eax, dword [0x487180]
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.0044d2e0
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 [0x489fd0], 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.00401b77
mov dword [esp + 0x30], eax
add esp, 0xc
add eax, esi
cmp byte [esi], 0x22
je 0x4437a6
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 0x4438c8
xor edi, edi
push 0
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x7c], 0x100
call fcn.00401a55
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.00401a55
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.00401a55
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.0040163b
add esp, 0x18
test eax, eax
jne 0x4439c6
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.0044ad41
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.0044b8bd
add esp, 0xb8
ret
push 0x104
push 8
call edi
push eax
call ebp
mov ebx, dword [esp + 0x2c]
push ebx
push 0x47bdd8
mov edi, eax
push 0x104
push edi
call fcn.0046f0bd
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 0x4437b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xc1
je 0x443998
mov esi, dword [esp + 0x34]
test esi, esi
je 0x44395f
mov al, byte [edi]
cmp al, 0x5c
je 0x443929
cmp al, 0x2f
jne 0x443954
mov al, byte [edi + 1]
cmp al, 0x5c
je 0x443934
cmp al, 0x2f
jne 0x443954
mov eax, dword [esp + 0x18]
cmp dword [eax + 4], 0
jne 0x443954
cmp dword [0x489f9c], 0
jne 0x443954
push 0
push 1
push eax
call fcn.0040153c
add esp, 0xc
call fcn.0044ad41
mov dword [eax], 2
cmp esi, 1
jg 0x4438af
test esi, esi
push ebx
jne 0x443974
push str._s.exe
jmp 0x443979
push str._s.EXE
push 0x104
push edi
call fcn.0046f0bd
add esp, 0x10
add esi, 1
lea eax, [esp + 0x38]
mov dword [esp + 0x34], esi
push eax
jmp 0x4438f9
call fcn.0044ad41
mov dword [eax], 8
cmp dword [0x489f9c], 0
jne 0x4438af
mov ecx, dword [esp + 0x18]
push 0
push 1
push ecx
call fcn.0040153c
add esp, 0xc
jmp 0x4438af
mov eax, dword [esp + 0x10]
mov byte [eax], 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
cmp word [0x4a8990], 0
mov ebx, eax
je 0x4439e5
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.004015aa
cmp dword [esp + 0x14], 0
je 0x443a05
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 0x443ad5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xc1
jne 0x443a66
cmp dword [0x489f9c], 0
jne 0x443a59
mov eax, dword [esp + 0x18]
push 0
push 1
push eax
call fcn.0040153c
add esp, 0xc
call fcn.0044ad41
mov dword [eax], 8
jmp 0x443a89
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x443a7e
call fcn.0044ad41
mov dword [eax], 0x26
jmp 0x443a89
call fcn.0044ad41
mov dword [eax], 2
cmp dword [esp + 0x14], 0
jne 0x44388b
test ebp, ebp
jne 0x44388b
mov ecx, dword [esp + 0x30]
push 0x47e418
push ecx
push esi
call fcn.0046fbea
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 0x443a32
push 0x32
lea ecx, [esp + 0x94]
push ecx
push str.TCSH_NOASYNCGUI
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x443af2
xor esi, esi
jmp 0x443b14
cmp dword [esp + 0x14], 0
jne 0x443b09
test ebp, ebp
jne 0x443b09
mov edx, dword [esp + 0x2c]
push edx
call fcn.004017f8
jmp 0x443b0f
push edi
call fcn.00401767
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 0x443b3d
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 0x443b72
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 0x443b6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x40]
push edx
call edi
call fcn.0044ad41
mov dword [eax], 0
cmp word [0x4a898c], 0
jne 0x443c3f
cmp word [0x4a8990], 0
jne 0x443c3f
test esi, esi
jne 0x443c3f
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 [0x4a8f04], 0
je 0x443c34
push 0
call fcn.00401a55
add esp, 4
push eax
call esi
push 1
call fcn.00401a55
add esp, 4
push eax
call esi
push 2
call fcn.00401a55
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 [0x489f68]
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]