Function at 0x440890
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x140
mov eax, dword [0x52efc0]
mov esi, dword [ebp + 0x10]
lea edi, [esp + 0x40]
xor eax, ebp
mov dword [esp + 0x138], eax
push 0xce
push str...._.._base_process_launch_win.cc
push str.LaunchProcess
push edi
call fcn.00435760
add esp, 0x10
lea ecx, [esp + 0x130]
push edi
call fcn.0044a000
lea ecx, [esp + 0xe4]
call fcn.00458160
cmp dword [esi + 0x14], 1
mov ebx, dword [esi + 0x18]
mov edi, dword [esi + 0x1c]
sete cl
cmp ebx, edi
je 0x440922
mov eax, edi
sub eax, ebx
sar eax, 2
cmp eax, 0x3fffffff
jbe 0x44092f
mov esi, dword [ebp + 8]
mov dword [esi], 0
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x440e80
int3
mov dword [esp + 0x10], 0
jmp 0x4409e7
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [esp + 0x10], 0
nop dword [eax]
push 1
push 1
push dword [ebx]
call esi
test eax, eax
je 0x440955
add ebx, 4
cmp edi, ebx
jne 0x440940
jmp 0x44097b
call fcn.004362b0
lea ecx, [esp + 0x40]
push eax
push 3
push 0xe2
push str...._.._base_process_launch_win.cc
call fcn.00436470
lea ecx, [esp + 0x40]
call fcn.00436530
jmp 0x44094c
call fcn.00458140
mov cl, 1
cmp eax, 2
jle 0x4409e7
lea ecx, [esp + 0xe4]
push 1
call fcn.00458290
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
test al, al
je 0x440c26
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0xe4]
sub edx, eax
push edx
push eax
push 0x20002
call fcn.00458340
test al, al
mov cl, 1
mov dword [esp + 0x10], 0x80000
jne 0x4409ea
mov dword [esi], 0
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x440e80
int3
mov edi, dword [ebp + 0x10]
cmp byte [edi + 0x11], 0
je 0x4409f8
or byte [esp + 0x114], 0x80
cmp byte [edi + 0x28], 0
mov esi, dword [esp + 0x10]
mov byte [esp + 0xf], cl
je 0x440a11
mov dword [esp + 0xf0], 0x4e2bbe
mov eax, dword [esp + 0x114]
mov ecx, eax
or ecx, 1
mov dword [esp + 0x114], ecx
movzx ecx, byte [edi + 0x10]
xor ecx, 1
mov word [esp + 0x118], cx
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x440a3f
mov edx, dword [edi + 0x34]
jmp 0x440a4c
mov edx, dword [edi + 0x34]
test edx, edx
jne 0x440a4c
cmp dword [edi + 0x38], 0
je 0x440a70
or eax, 0x101
mov dword [esp + 0x114], eax
mov dword [esp + 0x120], ecx
mov dword [esp + 0x124], edx
mov eax, dword [edi + 0x38]
mov dword [esp + 0x128], eax
cmp dword [edi + 0x2c], 0
je 0x440a87
call fcn.00458140
lea ecx, [esi + 0x1000000]
cmp eax, 5
cmovl esi, ecx
mov ebx, esi
xorps xmm0, xmm0
or ebx, 0x1000000
cmp byte [edi + 0x3c], 0
movaps xmmword [esp + 0x40], xmm0
movzx eax, byte [edi + 0xf]
cmove ebx, esi
test al, al
jns 0x440aae
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
jmp 0x440ab1
lea ecx, [edi + 4]
test eax, eax
lea esi, [esp + 0x34]
cmove ecx, eax
mov dword [esp + 0x10], ecx
mov ecx, esi
push dword [ebp + 0xc]
call fcn.004281c4
mov eax, dword [edi + 0x24]
test eax, eax
je 0x440b62
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x18]
push 0
push eax
push ecx
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x440bb9
or ebx, 0x400
mov ecx, dword [esp + 0x18]
movzx eax, byte [esp + 0xf]
cmp byte [esp + 0x3f], 0
jns 0x440b0a
mov esi, dword [esp + 0x34]
lea edx, [esp + 0x40]
push edx
lea edx, [esp + 0xec]
push edx
push dword [esp + 0x18]
push ecx
push ebx
push eax
push 0
push 0
push esi
push 0
mov eax, dword [ebp + 0x10]
push dword [eax + 0x24]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
push dword [esp + 0x18]
call sub.USERENV.dll_DestroyEnvironmentBlock
mov esi, dword [ebp + 8]
test edi, edi
jne 0x440db0
mov dword [esi], 0
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x440e6d
int3
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
cmp byte [edi + 0x4c], 0
je 0x440bd7
lea eax, [edi + 0x40]
lea ecx, [esp + 0x28]
push eax
push 0x4e8cf2
push ecx
call fcn.004402b0
add esp, 0xc
cmp byte [esp + 0x23], 0
mov edi, dword [ebp + 8]
js 0x440c41
mov cl, byte [esp + 0xf]
mov word [esp + 0x18], 0
mov byte [esp + 0x23], 0
jmp 0x440c75
mov esi, dword [ebp + 8]
mov dword [esi], 0
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x440e6d
int3
cmp dword [edi + 0x48], 0
mov esi, dword [ebp + 8]
je 0x440ca0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x440cab
lea edx, [edi + 0x40]
lea ecx, [esp + 0x28]
push edx
mov dword [esp + 0x18], eax
push eax
push ecx
call fcn.004402b0
add esp, 0xc
cmp byte [esp + 0x23], 0
js 0x440ccd
mov word [esp + 0x18], 0
mov edi, esi
mov byte [esp + 0x23], 0
jmp 0x440cfb
mov dword [esi], 0
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x440e80
int3
mov eax, dword [esp + 0x18]
mov cl, byte [esp + 0xf]
mov word [eax], 0
mov dword [esp + 0x1c], 0
cmp byte [esp + 0x23], 0
jns 0x440c75
push dword [esp + 0x18]
call fcn.004aeac6
mov cl, byte [esp + 0x13]
add esp, 4
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x30]
movsd xmm0, qword [esp + 0x28]
lea esi, [esp + 0x18]
mov dword [esp + 0x20], eax
movsd qword [esp + 0x18], xmm0
cmp byte [esi + 0xb], 0
jns 0x440d2b
mov eax, dword [esp + 0x18]
jmp 0x440d2f
mov cl, byte [esp + 0xf]
xor eax, eax
jmp 0x440d37
mov dword [esi], 0
mov edi, esi
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, 1
test eax, eax
jne 0x440d93
int3
mov eax, dword [esp + 0x18]
mov edi, esi
mov word [eax], 0
mov dword [esp + 0x1c], 0
cmp byte [esp + 0x23], 0
jns 0x440cfb
push dword [esp + 0x18]
call fcn.004aeac6
add esp, 4
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x30]
movsd xmm0, qword [esp + 0x28]
lea esi, [esp + 0x18]
mov dword [esp + 0x20], eax
movsd qword [esp + 0x18], xmm0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov cl, byte [esp + 0xf]
cmp byte [esi + 0xb], 0
js 0x440c97
lea eax, [esp + 0x18]
mov esi, edi
or ebx, 0x400
cmp byte [esp + 0x3f], 0
movzx ecx, cl
jns 0x440d49
mov edx, dword [esp + 0x34]
mov edi, esi
jmp 0x440d4f
mov edi, esi
lea edx, [esp + 0x34]
lea esi, [esp + 0x40]
push esi
lea esi, [esp + 0xec]
push esi
push dword [esp + 0x18]
push eax
push ebx
push ecx
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
xor esi, esi
test eax, eax
jne 0x440d93
mov dword [edi], 0
mov byte [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, 1
test eax, eax
je 0x440f3f
cmp byte [esp + 0x23], 0
jns 0x440da6
push dword [esp + 0x18]
call fcn.004aeac6
add esp, 4
test esi, esi
mov esi, edi
jne 0x440e6d
lea eax, [esp + 0x40]
lea ecx, [esp + 0x18]
push eax
call fcn.00457d90
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x440ddb
push dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x440eb0
cmp byte [edi + 0x3d], 0
je 0x440e11
mov ecx, dword [esp + 0x18]
xor eax, eax
test ecx, ecx
je 0x440e0a
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcessId]
test eax, eax
jne 0x440e0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 6
mov eax, 0
je 0x440f48
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
cmp byte [edi], 0
je 0x440e22
push 0xffffffffffffffff
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x20]
mov ecx, dword [0x530cd8]
test ecx, ecx
je 0x440e39
push dword [ebp + 0xc]
push eax
call fcn.0042f620
lea ecx, [esp + 0x18]
call fcn.004580c0
mov edi, eax
mov dword [esi], 0
mov ecx, esi
push eax
call fcn.0040e94a
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, edi
je 0x440f3c
lea ecx, [esp + 0x18]
call fcn.00457e30
cmp byte [esp + 0x3f], 0
jns 0x440e80
push dword [esp + 0x34]
call fcn.004aeac6
add esp, 4
lea ecx, [esp + 0xe4]
call fcn.00458250
lea ecx, [esp + 0x130]
call fcn.0044a270
mov ecx, dword [esp + 0x138]
xor ecx, ebp
call fcn.004aeb01
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x18]
call fcn.004580c0
mov edi, eax
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x28]
push eax
call fcn.0040e94a
mov byte [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, edi
je 0x440f42
lea edi, [esp + 0x28]
mov ecx, edi
push 1
push 1
call fcn.00440620
mov dword [esi], 0
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
je 0x440f45
mov eax, dword [esp + 0x28]
inc eax
cmp eax, 2
jb 0x440e64
call fcn.00435790
push eax
push dword [ebp + 4]
push edi
push dword [esp + 0x34]
call fcn.00457630
add esp, 0x10
push dword [esp + 0x28]
call fcn.00457560
add esp, 4
mov dword [esp + 0x28], 0
jmp 0x440e64
int3
int3
int3
int3
int3