Function at 0x432d70
Capabilities:
Query environment variable

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x432e94
mov eax, dword [ebp + 8]
test eax, eax
je 0x4331e9
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
call sub.cygwin1.dll_strlen
lea ecx, [eax + 1]
add eax, 0x37
and eax, 0xfffffff0
mov dword [ebp - 0x28], ecx
call fcn.004364b0
mov dword [esp + 8], ecx
lea ebx, [esp + 0x1f]
mov edx, dword [ebp + 0xc]
and ebx, 0xfffffff0
lea eax, [ebx + 0x18]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.cygwin1.dll_memcpy
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
mov dword [ebx + 4], eax
mov eax, 0x432730
mov dword [ebx], ecx
mov dword [esp + 8], eax
mov eax, 0x4454d0
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.cygwin1.dll_tfind
mov dword [ebp - 0x24], eax
test eax, eax
je 0x432e06
mov edx, dword [eax]
mov eax, dword [0x4455f0]
cmp dword [edx + 8], eax
je 0x4330e6
call sub.cygwin1.dll___errno
mov esi, dword [0x4454e0]
mov eax, dword [eax]
test esi, esi
mov dword [ebp - 0x20], eax
je 0x4330fa
mov eax, dword [0x4455e0]
test eax, eax
mov dword [ebp - 0x14], eax
jmp 0x432e57
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [esp + 4], eax
mov edx, dword [ebp + 8]
mov dword [esp], edx
call sub.cygwin1.dll_strcmp
test eax, eax
je 0x4331f6
jl 0x43329a
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
test ecx, ecx
mov dword [ebp - 0x14], ecx
jne 0x432e2a
mov dword [ebp - 0x1c], 0x443df0
cmp dword [ebp + 0x1c], 6
mov dword [ebp - 0x2c], str.LC_XXX
ja case.default.0x432e70
mov eax, dword [ebp + 0x1c]
jmp dword [eax*4 + 0x443ea4]
call sub.cygwin1.dll___errno
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
test edx, edx
je 0x432e94
cmp dword [ebp + 0x18], 1
je 0x432e94
mov eax, dword [ebp + 0x10]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x2c], 0x443e47
mov dword [esp], str.LANGUAGE
call sub.cygwin1.dll_getenv
test eax, eax
mov ebx, eax
je 0x432ec1
xor eax, eax
cmp byte [ebx], 0
setne al
neg eax
and ebx, eax
mov edx, dword [ebp - 0x2c]
mov dword [esp + 4], edx
mov ecx, dword [ebp + 0x1c]
mov dword [esp], ecx
call fcn.00434740
mov dword [ebp - 0x30], eax
test ebx, ebx
je 0x43311e
cld
mov ecx, 2
mov esi, eax
mov edi, 0x443e57
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
mov ecx, ebx
je 0x43311e
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.cygwin1.dll_strlen
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x2c]
mov dword [esp], edx
call sub.cygwin1.dll_strlen
mov ecx, dword [ebp - 0x34]
lea eax, [eax + ecx + 0x23]
and eax, 0xfffffff0
call fcn.004364b0
mov edx, dword [ebp - 0x2c]
lea eax, [esp + 0x1f]
and eax, 0xfffffff0
mov dword [ebp - 0x38], eax
call fcn.00432980
mov edx, 0x443e59
call fcn.00432980
mov edx, dword [ebp - 0x34]
mov dword [esp + 8], edx
mov ecx, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.cygwin1.dll_mempcpy
mov edx, 0x443e5b
call fcn.00432980
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.cygwin1.dll_strlen
add eax, 0x1f
and eax, 0xfffffff0
call fcn.004364b0
lea edx, [esp + 0x1f]
and edx, 0xfffffff0
mov dword [ebp - 0x3c], edx
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax]
cmp cl, 0x3a
jne 0x432fae
nop
lea esi, [esi]
inc dword [ebp - 0x18]
mov edx, dword [ebp - 0x18]
movzx ecx, byte [edx]
cmp cl, 0x3a
je 0x432fa0
test cl, cl
jne 0x433090
mov ecx, dword [ebp - 0x3c]
mov byte [ecx], 0x43
mov byte [ecx + 1], 0
cld
mov esi, dword [ebp - 0x3c]
mov ecx, 2
mov edi, 0x443e57
repe cmpsb byte [esi], byte es:[edi]
je 0x432e77
mov esi, dword [ebp - 0x3c]
mov edi, str.POSIX
mov ecx, 6
repe cmpsb byte [esi], byte es:[edi]
je 0x432e77
mov ecx, dword [ebp - 0x14]
mov dword [esp + 0xc], ecx
mov eax, dword [ebp - 0x38]
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x3c]
mov dword [esp + 4], edx
mov ecx, dword [ebp - 0x1c]
mov dword [esp], ecx
call fcn.004347a0
test eax, eax
mov esi, eax
je 0x432f90
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov edx, dword [ebp + 0xc]
mov dword [esp + 8], edx
mov ecx, dword [ebp - 0x14]
mov dword [esp], esi
mov dword [esp + 4], ecx
call fcn.004329a0
test eax, eax
mov edi, eax
jne 0x43319b
xor ebx, ebx
cmp dword [esi + 0x10], 0
je 0x432f90
nop
lea esi, [esi]
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov edx, dword [ebp + 0xc]
mov dword [esp + 8], edx
mov ecx, dword [ebp - 0x14]
mov dword [esp + 4], ecx
mov eax, dword [esi + ebx*4 + 0x10]
mov dword [esp], eax
call fcn.004329a0
test eax, eax
mov edi, eax
jne 0x433191
inc ebx
mov eax, dword [esi + ebx*4 + 0x10]
test eax, eax
jne 0x433050
jmp 0x432f90
mov ebx, dword [ebp - 0x3c]
cmp cl, 0x3a
jmp 0x4330b3
inc dword [ebp - 0x18]
mov byte [ebx], cl
inc ebx
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax]
test cl, cl
setne al
xor edx, edx
cmp cl, 0x3a
setne dl
test eax, edx
jne 0x433098
mov byte [ebx], 0
cmp dword [0x4454e0], 1
jne 0x432fc0
mov eax, 0x2f
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x3c]
mov dword [esp], edx
call sub.cygwin1.dll_strchr
test eax, eax
jne 0x432f90
jmp 0x432fc0
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x433126
mov edi, dword [edx + 0x10]
mov eax, edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.cygwin1.dll__getuid32
mov ebx, eax
call sub.cygwin1.dll__geteuid32
cmp ebx, eax
je 0x4332a6
mov ebx, 1
mov dword [0x4454e0], ebx
jmp 0x432e1e
mov ecx, dword [ebp - 0x30]
jmp 0x432efd
mov eax, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov dword [esp + 4], edx
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
mov dword [esp], edx
mov edx, dword [ebp + 0x18]
call fcn.00432920
mov edi, eax
mov eax, edi
jmp 0x4330f2
mov dword [ebp - 0x2c], str.LC_MESSAGES
jmp case.default.0x432e70
mov dword [ebp - 0x2c], str.LC_MONETARY
jmp case.default.0x432e70
mov dword [ebp - 0x2c], str.LC_CTYPE
jmp case.default.0x432e70
mov dword [ebp - 0x2c], str.LC_COLLATE
jmp case.default.0x432e70
mov dword [ebp - 0x2c], str.LC_TIME
jmp case.default.0x432e70
mov dword [ebp - 0x2c], str.LC_NUMERIC
jmp case.default.0x432e70
mov esi, dword [esi + ebx*4 + 0x10]
je 0x432f90
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4332ca
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov edx, dword [0x4455f0]
mov dword [eax + 0xc], esi
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edx
call sub.cygwin1.dll___errno
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4330f0
mov eax, dword [ebp - 0x10]
mov dword [esp], edi
mov dword [esp + 4], eax
mov edx, dword [ebp + 0x18]
mov eax, esi
jmp 0x43313e
mov eax, dword [str.messages]
mov dword [ebp + 8], eax
jmp 0x432d91
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x432e59
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
mov dword [ebp - 0x1c], eax
cmp byte [eax], 0x2f
je 0x432e60
mov dword [esp], eax
mov ebx, 0x106
call sub.cygwin1.dll_strlen
lea esi, [eax + 1]
jmp 0x43323b
call sub.cygwin1.dll___errno
cmp dword [eax], 0x22
jne 0x432e77
mov eax, ebx
shr eax, 1
lea ebx, [ebx + eax + 0x20]
lea eax, [ebx + esi + 0x1e]
and eax, 0xfffffff0
call fcn.004364b0
lea ecx, [esp + 0x1f]
and ecx, 0xfffffff0
mov dword [ebp - 0x1c], ecx
call sub.cygwin1.dll___errno
mov dword [eax], 0
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.cygwin1.dll_getcwd
test eax, eax
je 0x433225
xor eax, eax
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x1c]
mov dword [esp], edx
call sub.cygwin1.dll_strchr
mov edx, 0x443e59
call fcn.00432980
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
call fcn.00432980
jmp 0x432e60
mov dword [ebp - 0x14], 0
jmp 0x432e59
call sub.cygwin1.dll__getgid32
mov ebx, eax
call sub.cygwin1.dll__getegid32
cmp ebx, eax
jne 0x43310e
mov ecx, 0xffffffff
mov dword [0x4454e0], ecx
jmp 0x432e1e
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
lea eax, [edx + ecx + 0x19]
mov dword [esp], eax
call sub.cygwin1.dll_malloc
test eax, eax
mov ebx, eax
je 0x4331c0
mov eax, dword [ebp - 0x28]
mov dword [esp + 8], eax
mov edx, dword [ebp + 0xc]
lea eax, [ebx + 0x18]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.cygwin1.dll_mempcpy
mov dword [ebx], eax
mov edx, dword [ebp - 0x34]
inc edx
mov dword [esp + 8], edx
mov ecx, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.cygwin1.dll_memcpy
mov dword [ebx + 0xc], esi
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x10], edi
mov dword [ebx + 4], eax
mov eax, dword [0x4455f0]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x14], eax
mov eax, 0x432730
mov dword [esp + 8], eax
mov eax, 0x4454d0
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.cygwin1.dll_tsearch
mov dword [ebp - 0x24], eax
test eax, eax
je 0x43335b
cmp dword [eax], ebx
je 0x4331c0
mov dword [esp], ebx
call sub.cygwin1.dll_free
jmp 0x4331c0