Function at 0x404825
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x53c
mov dword [ebp - 0x50c], 0
mov dword [esp + 4], str..mkisofsrc
lea ebx, [ebp - 0x508]
mov dword [esp], ebx
call sub.cygwin1.dll_strcpy
mov dword [esp + 4], 4
mov dword [esp], ebx
call sub.cygwin1.dll_access
test eax, eax
jne 0x40487b
mov dword [esp + 4], 0x404750
mov dword [esp], ebx
call sub.cygwin1.dll__fopen64
mov dword [ebp - 0x50c], eax
cmp dword [ebp - 0x50c], 0
jne 0x404aed
call sub.cygwin1.dll___errno
cmp dword [eax], 2
je 0x4048a8
lea eax, [ebp - 0x508]
mov dword [esp + 4], eax
mov dword [esp], 0x404752
call fcn.004486fd
cmp dword [ebp - 0x50c], 0
jne 0x404aed
mov dword [esp], 0x404765
call sub.cygwin1.dll_getenv
mov ebx, eax
test eax, eax
je 0x40494b
mov edi, eax
cld
mov al, 0
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x3e8
ja 0x40494b
mov dword [esp + 4], ebx
lea ebx, [ebp - 0x508]
mov dword [esp], ebx
call sub.cygwin1.dll_strcpy
mov dword [esp + 4], 4
mov dword [esp], ebx
call sub.cygwin1.dll_access
test eax, eax
jne 0x40491e
mov dword [esp + 4], 0x404750
mov dword [esp], ebx
call sub.cygwin1.dll__fopen64
mov dword [ebp - 0x50c], eax
cmp dword [ebp - 0x50c], 0
jne 0x404aed
call sub.cygwin1.dll___errno
cmp dword [eax], 2
je 0x40494b
lea eax, [ebp - 0x508]
mov dword [esp + 4], eax
mov dword [esp], 0x404752
call fcn.004486fd
cmp dword [ebp - 0x50c], 0
jne 0x404aed
mov dword [esp], 0x40476f
call sub.cygwin1.dll_getenv
mov ebx, eax
test eax, eax
je 0x404a23
mov esi, 0xffffffff
mov edi, eax
mov al, 0
cld
mov ecx, esi
repne scasb al, byte es:[edi]
mov edx, ecx
not edx
mov edi, str..mkisofsrc
mov ecx, esi
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
add eax, edx
cmp eax, 0x3e8
ja 0x404a23
mov dword [esp + 4], ebx
lea ebx, [ebp - 0x508]
mov dword [esp], ebx
call sub.cygwin1.dll_strcpy
mov dword [esp + 4], 0x404774
mov dword [esp], ebx
call sub.cygwin1.dll_strcat
mov dword [esp + 4], str..mkisofsrc
mov dword [esp], ebx
call sub.cygwin1.dll_strcat
mov dword [esp + 4], 4
mov dword [esp], ebx
call sub.cygwin1.dll_access
test eax, eax
jne 0x4049f6
mov dword [esp + 4], 0x404750
mov dword [esp], ebx
call sub.cygwin1.dll__fopen64
mov dword [ebp - 0x50c], eax
cmp dword [ebp - 0x50c], 0
jne 0x404aed
call sub.cygwin1.dll___errno
cmp dword [eax], 2
je 0x404a23
lea eax, [ebp - 0x508]
mov dword [esp + 4], eax
mov dword [esp], 0x404752
call fcn.004486fd
cmp dword [ebp - 0x50c], 0
jne 0x404aed
mov edi, dword [ebp + 8]
cld
mov edx, 0xffffffff
mov al, 0
mov ecx, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
add eax, 0xc
cmp eax, 0x3e8
ja 0x404ae0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea esi, [ebp - 0x508]
mov dword [esp], esi
call sub.cygwin1.dll_strcpy
mov dword [esp + 4], 0x2f
mov dword [esp], esi
call sub.cygwin1.dll_strrchr
test eax, eax
je 0x404ae0
mov dword [esp + 4], str..mkisofsrc
lea eax, [eax + 1]
mov dword [esp], eax
call sub.cygwin1.dll_strcpy
mov dword [esp + 4], 4
mov dword [esp], esi
call sub.cygwin1.dll_access
test eax, eax
jne 0x404ab7
mov dword [esp + 4], 0x404750
mov dword [esp], esi
call sub.cygwin1.dll__fopen64
mov dword [ebp - 0x50c], eax
cmp dword [ebp - 0x50c], 0
jne 0x404aed
call sub.cygwin1.dll___errno
cmp dword [eax], 2
je 0x404ae0
lea eax, [ebp - 0x508]
mov dword [esp + 4], eax
mov dword [esp], 0x404752
call fcn.004486fd
cmp dword [ebp - 0x50c], 0
je 0x404d24
cmp dword [0x44d040], 0
jle 0x404b18
call sub.cygwin1.dll___getreent
lea edx, [ebp - 0x508]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x404776
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.004489fe
mov dword [ebp - 0x510], 0
jmp 0x404ccc
inc dword [ebp - 0x510]
lea ebx, [ebp - 0x118]
cmp byte [ebp - 0x118], 0x20
je 0x404b45
cmp byte [ebp - 0x118], 9
jne 0x404b50
inc ebx
cmp byte [ebx], 0x20
je 0x404b45
cmp byte [ebx], 9
je 0x404b45
cmp byte [ebx], 0x23
je 0x404ccc
mov edi, ebx
cmp byte [ebx], 0
je 0x404ba2
movzx edx, byte [ebx]
mov eax, dword [sym.imp.cygwin1.dll__ctype_]
test byte [edx + eax + 1], 3
jne 0x404b74
cmp byte [ebx], 0x5f
jne 0x404ba2
movzx edx, byte [ebx]
mov eax, dword [sym.imp.cygwin1.dll__ctype_]
test byte [edx + eax + 1], 2
je 0x404b88
lea eax, [edx - 0x20]
mov byte [ebx], al
inc ebx
cmp byte [ebx], 0
je 0x404ba2
movzx edx, byte [ebx]
mov eax, dword [sym.imp.cygwin1.dll__ctype_]
test byte [edx + eax + 1], 3
jne 0x404b74
cmp byte [ebx], 0x5f
je 0x404b74
cmp edi, ebx
jne 0x404bd7
call sub.cygwin1.dll___getreent
mov edx, dword [ebp - 0x510]
mov dword [esp + 0xc], edx
lea ecx, [ebp - 0x508]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x404782
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.004489fe
jmp 0x404ccc
mov esi, ebx
cmp byte [ebx], 0x20
je 0x404be3
cmp byte [ebx], 9
jne 0x404bee
inc ebx
cmp byte [ebx], 0x20
je 0x404be3
cmp byte [ebx], 9
je 0x404be3
cmp byte [ebx], 0x3d
je 0x404c35
call sub.cygwin1.dll___getreent
mov dword [esp + 0x14], edi
mov edx, esi
sub edx, edi
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x510]
mov dword [esp + 0xc], edx
lea ecx, [ebp - 0x508]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x4047b0
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.004489fe
jmp 0x404ccc
mov byte [eax], 0
jmp 0x404c60
inc ebx
cmp byte [ebx], 0x20
je 0x404c40
cmp byte [ebx], 9
jne 0x404c4b
inc ebx
cmp byte [ebx], 0x20
je 0x404c40
cmp byte [ebx], 9
je 0x404c40
mov byte [esi], 0
mov eax, ebx
cmp byte [ebx], 0
je 0x404c60
cmp byte [eax], 0xa
je 0x404c30
inc eax
cmp byte [eax], 0
jne 0x404c55
mov esi, 0x44d0a0
cmp dword [0x44d0a0], 0
je 0x404c9c
mov dword [esp + 4], edi
mov eax, dword [esi]
mov dword [esp], eax
call sub.cygwin1.dll_strcmp
test eax, eax
je 0x404c8a
add esi, 8
cmp dword [esi], 0
jne 0x404c6e
jmp 0x404c9c
mov dword [esp], ebx
call sub.cygwin1.dll_strdup
mov edx, dword [esi + 4]
mov dword [edx], eax
cmp dword [esi], 0
jne 0x404ccc
call sub.cygwin1.dll___getreent
mov dword [esp + 0x10], edi
mov edx, dword [ebp - 0x510]
mov dword [esp + 0xc], edx
lea ecx, [ebp - 0x508]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x4047f0
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.004489fe
mov eax, dword [ebp - 0x50c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x100
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sub.cygwin1.dll_fgets
test eax, eax
jne 0x404b27
mov edx, dword [ebp - 0x50c]
test byte [edx + 0xc], 0x40
je 0x404d16
lea eax, [ebp - 0x508]
mov dword [esp + 4], eax
mov dword [esp], 0x404810
call fcn.004486fd
mov ecx, dword [ebp - 0x50c]
mov dword [esp], ecx
call sub.cygwin1.dll_fclose
add esp, 0x53c
pop ebx
pop esi
pop edi
pop ebp
ret