Function at 0x44b0e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x44b2e0
mov eax, dword [ebp + 0x14]
movzx eax, word [eax]
mov word [ebp - 0x2a], ax
test al, 0x40
jne 0x44b140
test al, 0x3f
sete al
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x44b112
test al, al
jne 0x44b140
call sub.cygwin1.dll_fork
mov ebx, eax
test ebx, ebx
je 0x44b14b
js 0x44b388
mov edi, dword [ebp + 8]
xor eax, eax
test edi, edi
je 0x44b131
mov edx, dword [ebp + 8]
mov dword [edx], ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.cygwin1.dll_vfork
mov ebx, eax
test ebx, ebx
jne 0x44b11d
test byte [ebp - 0x2a], 0x20
jne 0x44b400
test byte [ebp - 0x2a], 0x10
jne 0x44b397
movzx eax, word [ebp - 0x2a]
and eax, 0xc
cmp ax, 4
je 0x44b430
movzx edx, word [ebp - 0x2a]
test dl, 8
jne 0x44b2f0
test byte [ebp - 0x2a], 2
jne 0x44b32e
test byte [ebp - 0x2a], 1
jne 0x44b356
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x44b1d7
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 4]
test edx, edx
jle 0x44b1d7
mov edi, eax
lea esi, [esi]
mov edx, dword [edi + 8]
lea eax, [ebx + ebx*4]
lea esi, [edx + eax*4]
cmp dword [esi], 4
ja case.default.0x44b1b8
mov eax, dword [esi]
jmp dword [eax*4 + 0x465fa8]
mov eax, dword [esi + 4]
mov dword [esp], eax
call sub.cygwin1.dll_chdir
test eax, eax
js 0x44b218
add ebx, 1
cmp dword [edi + 4], ebx
jg 0x44b1a8
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x44b1f9
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0x2f
mov dword [esp], eax
call sub.cygwin1.dll_strchr
test eax, eax
je 0x44b458
mov eax, dword [ebp + 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_execve
lea esi, [esi]
mov dword [esp], 0x7f
call sub.cygwin1.dll__exit
lea esi, [esi]
mov eax, dword [esi + 0x10]
mov dword [esp + 8], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 4], eax
mov eax, dword [esi + 8]
mov dword [esp], eax
call sub.cygwin1.dll__open64
mov edx, eax
cmp eax, 0xffffffff
je 0x44b218
mov eax, dword [esi + 4]
cmp eax, edx
je case.default.0x44b1b8
mov dword [esp + 4], eax
mov dword [esp], edx
mov dword [ebp - 0x30], edx
call sub.cygwin1.dll_dup2
cmp dword [esi + 4], eax
jne 0x44b218
mov edx, dword [ebp - 0x30]
mov dword [esp], edx
call sub.cygwin1.dll_close
test eax, eax
je case.default.0x44b1b8
jmp 0x44b218
mov eax, dword [esi + 4]
mov dword [esp], eax
call sub.cygwin1.dll_fchdir
test eax, eax
jns case.default.0x44b1b8
jmp 0x44b218
mov eax, dword [esi + 8]
mov dword [esp + 4], eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call sub.cygwin1.dll_dup2
cmp dword [esi + 8], eax
je case.default.0x44b1b8
jmp 0x44b218
mov eax, dword [esi + 4]
mov dword [esp], eax
call sub.cygwin1.dll_close
test eax, eax
je case.default.0x44b1b8
jmp 0x44b218
xor ecx, ecx
mov eax, 1
mov word [ebp - 0x2a], cx
jmp 0x44b107
mov eax, dword [ebp + 0x14]
add eax, 0x10
and edx, 4
mov edx, 0
cmove eax, edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x14]
mov dword [esp], 0
mov dword [esp + 4], eax
call sub.cygwin1.dll_sched_setscheduler
cmp eax, 0xffffffff
je 0x44b218
test byte [ebp - 0x2a], 2
je 0x44b187
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 4]
mov dword [esp], 0
mov dword [esp + 4], eax
call sub.cygwin1.dll_setpgid
test eax, eax
jne 0x44b218
test byte [ebp - 0x2a], 1
je 0x44b191
call sub.cygwin1.dll__getuid32
mov dword [esp], eax
call sub.cygwin1.dll__seteuid32
test eax, eax
jne 0x44b218
call sub.cygwin1.dll__getgid32
mov dword [esp], eax
call sub.cygwin1.dll__setegid32
test eax, eax
je 0x44b191
jmp 0x44b218
call sub.cygwin1.dll___errno
mov eax, dword [eax]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], 0
mov edi, 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea esi, [eax + 8]
jmp 0x44b3cc
add edi, 1
cmp edi, 0x22
je 0x44b15f
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.cygwin1.dll_sigismember
test eax, eax
je 0x44b3c0
lea eax, [ebp - 0x24]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.cygwin1.dll_sigaction
test eax, eax
je 0x44b3c0
jmp 0x44b218
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], 0
mov dword [esp], 0
add eax, 0xc
mov dword [esp + 4], eax
call sub.cygwin1.dll_sigprocmask
test eax, eax
je 0x44b155
jmp 0x44b218
mov eax, dword [ebp + 0x14]
mov dword [esp], 0
add eax, 0x10
mov dword [esp + 4], eax
call sub.cygwin1.dll_sched_setparam
cmp eax, 0xffffffff
jne 0x44b17d
jmp 0x44b218
mov dword [esp], str.PATH
call sub.cygwin1.dll_getenv
mov edi, eax
test eax, eax
je 0x44b54c
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_strlen
mov dword [esp], edi
lea ebx, [eax + 1]
call sub.cygwin1.dll_strlen
lea ecx, [eax + 1]
lea eax, [ebx + eax + 0x1c]
and eax, 0xfffffff0
call fcn.0044baa0
mov edx, dword [ebp + 0xc]
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 8], ebx
and eax, 0xfffffff0
mov dword [esp + 4], edx
add eax, ecx
mov dword [esp], eax
call sub.cygwin1.dll_memcpy
mov byte [eax - 1], 0x2f
mov esi, eax
jmp 0x44b4ec
cmp eax, 1
jle 0x44b218
mov ecx, 0x102004
bt ecx, eax
jae 0x44b218
lea esi, [esi]
nop
cmp byte [ebx], 0
lea edi, [ebx + 1]
je 0x44b218
mov dword [esp + 4], 0x3a
mov dword [esp], edi
call sub.cygwin1.dll_strchrnul
mov ebx, eax
mov eax, esi
cmp edi, ebx
je 0x44b51e
mov ecx, ebx
mov dword [esp + 4], edi
sub ecx, edi
mov eax, ecx
mov dword [esp + 8], ecx
not eax
add eax, esi
mov dword [esp], eax
call sub.cygwin1.dll_memcpy
mov ecx, dword [ebp + 0x1c]
mov dword [esp], eax
mov dword [esp + 8], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 4], ecx
call sub.cygwin1.dll_execve
call sub.cygwin1.dll___errno
mov eax, dword [eax]
cmp eax, 0x14
jle 0x44b4c0
cmp eax, 0x85
je 0x44b4e0
jmp 0x44b218
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.cygwin1.dll_confstr
mov ecx, eax
lea eax, [eax + 0x1c]
and eax, 0xfffffff0
call fcn.0044baa0
sub esp, eax
lea edx, [esp + 0x1b]
and edx, 0xfffffff0
lea eax, [edx + 1]
mov byte [edx], 0x3a
mov edi, edx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.cygwin1.dll_confstr
jmp 0x44b46e