Function at 0x405825
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x52c
mov dword [ebp - 0x50c], 0
mov dword [esp + 8], 0x3e8
mov dword [esp + 4], str..mkisofsrc
lea ebx, [ebp - 0x508]
mov dword [esp], ebx
call sub.cygwin1.dll_strlcpy
mov dword [esp + 4], 4
mov dword [esp], ebx
call sub.cygwin1.dll_access
test eax, eax
jne 0x405883
mov dword [esp + 4], 0x405760
mov dword [esp], ebx
call sub.cygwin1.dll__fopen64
mov dword [ebp - 0x50c], eax
cmp dword [ebp - 0x50c], 0
jne 0x405b41
call sub.cygwin1.dll___errno
cmp dword [eax], 2
je 0x4058b0
lea eax, [ebp - 0x508]
mov dword [esp + 4], eax
mov dword [esp], 0x405762
call fcn.0044ed95
cmp dword [ebp - 0x50c], 0
jne 0x405b41
mov dword [esp], 0x405775
call sub.cygwin1.dll_getenv
mov ebx, eax
test eax, eax
je 0x40595b
mov edi, eax
cld
mov ecx, 0xffffffff
mov al, 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x3e8
ja 0x40595b
mov dword [esp + 8], 0x3e8
mov dword [esp + 4], ebx
lea ebx, [ebp - 0x508]
mov dword [esp], ebx
call sub.cygwin1.dll_strlcpy
mov dword [esp + 4], 4
mov dword [esp], ebx
call sub.cygwin1.dll_access
test eax, eax
jne 0x40592e
mov dword [esp + 4], 0x405760
mov dword [esp], ebx
call sub.cygwin1.dll__fopen64
mov dword [ebp - 0x50c], eax
cmp dword [ebp - 0x50c], 0
jne 0x405b41
call sub.cygwin1.dll___errno
cmp dword [eax], 2
je 0x40595b
lea eax, [ebp - 0x508]
mov dword [esp + 4], eax
mov dword [esp], 0x405762
call fcn.0044ed95
cmp dword [ebp - 0x50c], 0
jne 0x405b41
mov dword [esp], 0x40577f
call sub.cygwin1.dll_getenv
mov ebx, eax
test eax, eax
je 0x405a63
mov esi, 0xffffffff
mov edi, eax
cld
mov ecx, esi
mov al, 0
repne scasb al, byte es:[edi]
mov edx, ecx
not edx
mov edi, str..mkisofsrc
mov ecx, esi
repne scasb al, byte es:[edi]
not ecx
add ecx, edx
cmp ecx, 0x3e8
ja 0x405a63
mov dword [esp + 8], 0x3e8
mov dword [esp + 4], ebx
lea ebx, [ebp - 0x508]
mov dword [esp], ebx
call sub.cygwin1.dll_strlcpy
mov edi, str..mkisofsrc
cld
mov ecx, esi
mov al, 0
repne scasb al, byte es:[edi]
mov edx, ecx
neg edx
mov edi, ebx
mov ecx, esi
repne scasb al, byte es:[edi]
not ecx
mov eax, 0x3e9
sub eax, ecx
cmp edx, eax
ja 0x405a06
mov dword [esp + 4], 0x405784
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
lea ebx, [ebp - 0x508]
mov dword [esp], ebx
call sub.cygwin1.dll_access
test eax, eax
jne 0x405a36
mov dword [esp + 4], 0x405760
mov dword [esp], ebx
call sub.cygwin1.dll__fopen64
mov dword [ebp - 0x50c], eax
cmp dword [ebp - 0x50c], 0
jne 0x405b41
call sub.cygwin1.dll___errno
cmp dword [eax], 2
je 0x405a63
lea eax, [ebp - 0x508]
mov dword [esp + 4], eax
mov dword [esp], 0x405762
call fcn.0044ed95
cmp dword [ebp - 0x50c], 0
jne 0x405b41
mov edi, dword [ebp + 8]
cld
mov ecx, 0xffffffff
mov al, 0
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xc
cmp ecx, 0x3e8
ja 0x405b34
mov dword [esp + 8], 0x3e8
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
lea esi, [ebp - 0x508]
mov dword [esp], esi
call sub.cygwin1.dll_strlcpy
mov dword [esp + 4], 0x2f
mov dword [esp], esi
call sub.cygwin1.dll_strrchr
mov ebx, eax
test eax, eax
je 0x405b34
mov eax, esi
sub eax, ebx
add eax, 0x3e7
mov dword [esp + 8], eax
mov dword [esp + 4], str..mkisofsrc
lea eax, [ebx + 1]
mov dword [esp], eax
call sub.cygwin1.dll_strlcpy
mov dword [esp + 4], 4
mov dword [esp], esi
call sub.cygwin1.dll_access
test eax, eax
jne 0x405b0b
mov dword [esp + 4], 0x405760
mov dword [esp], esi
call sub.cygwin1.dll__fopen64
mov dword [ebp - 0x50c], eax
cmp dword [ebp - 0x50c], 0
jne 0x405b41
call sub.cygwin1.dll___errno
cmp dword [eax], 2
je 0x405b34
lea eax, [ebp - 0x508]
mov dword [esp + 4], eax
mov dword [esp], 0x405762
call fcn.0044ed95
cmp dword [ebp - 0x50c], 0
je 0x405d78
cmp dword [0x45800c], 0
jle 0x405b6c
call sub.cygwin1.dll___getreent
lea edx, [ebp - 0x508]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x405786
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.0044f0de
mov dword [ebp - 0x510], 0
jmp 0x405d20
inc dword [ebp - 0x510]
lea ebx, [ebp - 0x118]
cmp byte [ebp - 0x118], 0x20
je 0x405b99
cmp byte [ebp - 0x118], 9
jne 0x405ba4
inc ebx
cmp byte [ebx], 0x20
je 0x405b99
cmp byte [ebx], 9
je 0x405b99
cmp byte [ebx], 0x23
je 0x405d20
mov edi, ebx
cmp byte [ebx], 0
je 0x405bf6
movzx edx, byte [ebx]
mov eax, dword [sym.imp.cygwin1.dll__ctype_]
test byte [edx + eax + 1], 3
jne 0x405bc8
cmp byte [ebx], 0x5f
jne 0x405bf6
movzx edx, byte [ebx]
mov eax, dword [sym.imp.cygwin1.dll__ctype_]
test byte [edx + eax + 1], 2
je 0x405bdc
lea eax, [edx - 0x20]
mov byte [ebx], al
inc ebx
cmp byte [ebx], 0
je 0x405bf6
movzx edx, byte [ebx]
mov eax, dword [sym.imp.cygwin1.dll__ctype_]
test byte [edx + eax + 1], 3
jne 0x405bc8
cmp byte [ebx], 0x5f
je 0x405bc8
cmp edi, ebx
jne 0x405c2b
call sub.cygwin1.dll___getreent
mov edx, dword [ebp - 0x510]
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x508]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x405792
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.0044f0de
jmp 0x405d20
mov esi, ebx
cmp byte [ebx], 0x20
je 0x405c37
cmp byte [ebx], 9
jne 0x405c42
inc ebx
cmp byte [ebx], 0x20
je 0x405c37
cmp byte [ebx], 9
je 0x405c37
cmp byte [ebx], 0x3d
je 0x405c89
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 edx, [ebp - 0x508]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x4057b0
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.0044f0de
jmp 0x405d20
mov byte [eax], 0
jmp 0x405cb4
inc ebx
cmp byte [ebx], 0x20
je 0x405c94
cmp byte [ebx], 9
jne 0x405c9f
inc ebx
cmp byte [ebx], 0x20
je 0x405c94
cmp byte [ebx], 9
je 0x405c94
mov byte [esi], 0
mov eax, ebx
cmp byte [ebx], 0
je 0x405cb4
cmp byte [eax], 0xa
je 0x405c84
inc eax
cmp byte [eax], 0
jne 0x405ca9
mov esi, 0x458080
cmp dword [0x458080], 0
je 0x405cf0
mov dword [esp + 4], edi
mov eax, dword [esi]
mov dword [esp], eax
call sub.cygwin1.dll_strcmp
test eax, eax
je 0x405cde
add esi, 8
cmp dword [esi], 0
jne 0x405cc2
jmp 0x405cf0
mov dword [esp], ebx
call fcn.0040b132
mov edx, dword [esi + 4]
mov dword [edx], eax
cmp dword [esi], 0
jne 0x405d20
call sub.cygwin1.dll___getreent
mov dword [esp + 0x10], edi
mov edx, dword [ebp - 0x510]
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x508]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x4057f0
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call fcn.0044f0de
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 0x405b7b
mov edx, dword [ebp - 0x50c]
test byte [edx + 0xc], 0x40
je 0x405d6a
lea eax, [ebp - 0x508]
mov dword [esp + 4], eax
mov dword [esp], 0x405810
call fcn.0044ed95
mov eax, dword [ebp - 0x50c]
mov dword [esp], eax
call sub.cygwin1.dll_fclose
add esp, 0x52c
pop ebx
pop esi
pop edi
pop ebp
ret