Function at 0x410f98
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x94
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x60], 0
mov dword [esp + 4], 0x6ecf1f
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0046596e
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x411006
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call fcn.0047f310
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x6ecd7b
mov dword [esp], 1
call fcn.004246ce
mov eax, 0
jmp 0x41183d
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0
jmp 0x41107f
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040fe15
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jg 0x411039
jmp 0x41107f
cmp dword [ebp - 0x14], 0
jne 0x411057
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x10]
dec edx
add eax, edx
mov al, byte [eax]
cmp al, 0x5d
jne 0x411057
mov dword [ebp - 0x14], 1
jmp 0x41107f
mov eax, dword [ebp - 0x60]
mov dword [esp + 8], 9
mov dword [esp + 4], str.Total_of
mov dword [esp], eax
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x4110aa
mov dword [ebp - 0x10], 0
jmp 0x4110ab
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
lea eax, [ebp - 0x60]
mov dword [esp], eax
call fcn.00465afc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jg 0x41101c
jmp 0x411807
nop
jmp 0x411807
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], 0x6ecd89
mov dword [esp], eax
call sub.msvcrt.dll_strtok
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4110d2
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x1c], eax
mov al, byte [0x7bde7b]
and eax, 0xff
test eax, eax
je 0x4110f3
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.file_name:____s_n
call fcn.004247e5
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
mov eax, dword [ebp - 0x1c]
add eax, edx
mov dword [ebp - 0x28], eax
dec dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x1c]
jbe 0x411127
mov eax, dword [ebp - 0x28]
mov al, byte [eax]
movsx eax, al
mov dword [esp], eax
call fcn.00443c40
test al, al
jne 0x411108
mov eax, dword [ebp - 0x28]
mov al, byte [eax]
cmp al, 0x3b
jne 0x411140
mov eax, dword [ebp - 0x28]
dec eax
mov al, byte [eax]
cmp al, 0x5e
je 0x411140
mov eax, dword [ebp - 0x28]
mov byte [eax], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.00410e89
mov al, byte [0x7bde7b]
and eax, 0xff
test eax, eax
je 0x41116c
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.file_name_:__s_n
call fcn.004247e5
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
lea edx, [eax - 4]
mov eax, dword [ebp - 0x1c]
add eax, edx
mov dword [esp + 8], 4
mov dword [esp + 4], str..DIR
mov dword [esp], eax
call fcn.00443dc0
test eax, eax
jne 0x4111e3
mov eax, dword [ebp - 0x30]
lea edx, [eax - 4]
mov eax, dword [ebp - 0x1c]
add eax, edx
mov byte [eax], 0
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x70], 0x1ed
mov al, byte [0x7bde7b]
and eax, 0xff
test eax, eax
je 0x411270
mov dword [esp], str.Directory__nv__n
call fcn.004247e5
jmp 0x411270
mov eax, dword [ebp - 0x30]
lea edx, [eax - 6]
mov eax, dword [ebp - 0x1c]
add eax, edx
mov dword [esp + 8], 6
mov dword [esp + 4], str..DIR_1
mov dword [esp], eax
call fcn.00443dc0
test eax, eax
jne 0x411245
mov eax, dword [ebp - 0x30]
lea edx, [eax - 6]
mov eax, dword [ebp - 0x1c]
add eax, edx
mov byte [eax], 0
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x70], 0x1ed
mov al, byte [0x7bde7b]
and eax, 0xff
test eax, eax
je 0x411270
mov dword [esp], str.Directory__v__n
call fcn.004247e5
jmp 0x411270
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x70], 0x1a4
mov al, byte [0x7bde7b]
and eax, 0xff
test eax, eax
je 0x411270
mov dword [esp], str.File_n
call fcn.004247e5
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.00461e26
mov dword [ebp - 0x84], eax
mov al, byte [0x7bde7b]
and eax, 0xff
test eax, eax
je 0x4112a5
mov eax, dword [ebp - 0x84]
mov dword [esp + 4], eax
mov dword [esp], str.Name:__s_n
call fcn.004247e5
mov byte [ebp - 0x5c], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [esp + 4], 0x6ecd89
mov dword [esp], 0
call sub.msvcrt.dll_strtok
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x411648
mov al, byte [0x7bde7b]
and eax, 0xff
test eax, eax
je 0x4112f9
mov dword [esp], str.Getting_additional_line._n
call fcn.004247e5
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
lea eax, [ebp - 0x60]
mov dword [esp], eax
call fcn.00465afc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jg 0x41133e
mov al, byte [0x7bde7b]
and eax, 0xff
test eax, eax
je 0x411813
mov dword [esp], str.EOF.__Leaving_listing_parser._n
call fcn.004247e5
jmp 0x411813
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040fe15
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jg 0x41137c
mov al, byte [0x7bde7b]
and eax, 0xff
test eax, eax
je 0x411816
mov dword [esp], str.Blank_line.__Leaving_listing_parser._n
call fcn.004247e5
jmp 0x411816
mov eax, dword [ebp - 0x60]
mov al, byte [eax]
cmp al, 0x20
je 0x4113a8
mov al, byte [0x7bde7b]
and eax, 0xff
test eax, eax
je 0x411807
mov dword [esp], str.Non_blank_in_column_1.__Must_be_a_new_file_name__n
call fcn.004247e5
jmp 0x411807
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], 0x6ecd89
mov dword [esp], eax
call sub.msvcrt.dll_strtok
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x411648
mov al, byte [0x7bde7b]
and eax, 0xff
test eax, eax
je 0x411819
mov dword [esp], str.Null_token.__Leaving_listing_parser._n
call fcn.004247e5
jmp 0x411819
mov al, byte [0x7bde7b]
and eax, 0xff
test eax, eax
je 0x41140c
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.Token:___s_:
call fcn.004247e5
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
cmp eax, 0xb
ja 0x411485
mov dword [esp + 4], 0x2d
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x411485
mov al, byte [0x7bde7b]
and eax, 0xff
test eax, eax
je 0x41144d
mov dword [esp], str.Date._n
call fcn.004247e5
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x5c]
mov ecx, 0xffffffff
mov edx, eax
mov al, 0
mov edi, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
lea edx, [eax - 1]
lea eax, [ebp - 0x5c]
add eax, edx
mov word [eax], 0x20
jmp 0x411631
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
cmp eax, 0xb
ja 0x41151e
mov dword [esp + 4], 0x3a
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x41151e
mov al, byte [0x7bde7b]
and eax, 0xff
test eax, eax
je 0x4114ca
mov dword [esp], str.Time.
call fcn.004247e5
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, 0x1f
sub edx, eax
mov eax, edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.msvcrt.dll_strncat
mov al, byte [0x7bde7b]
and eax, 0xff
test eax, eax
je 0x411631
lea eax, [ebp - 0x5c]
mov dword [esp + 4], eax
mov dword [esp], str.Date_time:___s__n
call fcn.004247e5
jmp 0x411631
mov dword [esp + 4], 0x5b
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x411558
mov al, byte [0x7bde7b]
and eax, 0xff
test eax, eax
je 0x411631
mov dword [esp], str.Owner._n
call fcn.004247e5
jmp 0x411631
mov dword [esp + 4], 0x28
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x411617
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
jmp 0x4115de
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, edx
mov al, byte [eax]
movsx eax, al
sub eax, 0x28
cmp eax, 0x2f
ja case.0x4115a6.40
mov eax, dword [eax*4 + 0x6ed0e0]
jmp eax
cmp dword [ebp - 0x14], 0
jne 0x4115be
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 1
jmp case.0x4115a6.40
shl dword [ebp - 0x18], 3
jmp case.0x4115a6.40
or dword [ebp - 0x18], 4
jmp case.0x4115a6.40
or dword [ebp - 0x18], 2
jmp case.0x4115a6.40
or dword [ebp - 0x18], 1
jmp case.0x4115a6.40
or dword [ebp - 0x18], 2
nop
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
cmp dword [ebp - 0x10], eax
jl 0x41158a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x70], eax
mov al, byte [0x7bde7b]
and eax, 0xff
test eax, eax
je 0x411631
mov eax, dword [ebp - 0x70]
mov dword [esp + 4], eax
mov dword [esp], str.Prot.__perms___0o._n
call fcn.004247e5
jmp 0x411631
mov al, byte [0x7bde7b]
and eax, 0xff
test eax, eax
je 0x411631
mov dword [esp], str.Ignored__size__._n
call fcn.004247e5
mov dword [esp + 4], 0x6ecd89
mov dword [esp], 0
call sub.msvcrt.dll_strtok
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4113eb
mov dword [esp], 0
call sub.msvcrt.dll_time_1
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call sub.msvcrt.dll_localtime_1
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], eax
mov dword [esp + 4], str._d__b__Y__H:_M:_S
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call fcn.00481e26
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call fcn.00469639
mov dword [ebp - 0x3c], eax
mov dword [esp], str.WGET_TIMEZONE_DIFFERENTIAL
call sub.msvcrt.dll_getenv
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4116dd
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov dword [ebp - 0xc], eax
mov al, byte [0x7bde7b]
and eax, 0xff
test eax, eax
je 0x4116e4
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.Time_differential___d._n
call fcn.004247e5
jmp 0x4116e4
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
js 0x4116f7
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x3c], eax
jmp 0x411702
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x78], eax
mov al, byte [0x7bde7b]
and eax, 0xff
test eax, eax
je 0x411729
mov eax, dword [ebp - 0x78]
mov dword [esp + 4], eax
mov dword [esp], str.Timestamp:__ld_n
call fcn.004247e5
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x20], 0
jne 0x411780
mov dword [esp], 0x28
call fcn.00461cdf
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov dword [esp + 8], 0x28
lea eax, [ebp - 0x88]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x24], 0
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x24]
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x20], edx
jmp 0x4117ca
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x68], eax
mov dword [esp], 0x28
call fcn.00461cdf
mov edx, eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x24], eax
mov dword [esp + 8], 0x28
lea eax, [ebp - 0x88]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x24], 0
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
lea eax, [ebp - 0x60]
mov dword [esp], eax
call fcn.00465afc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x411807
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040fe15
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x41181c
cmp dword [ebp - 0x10], 0
jg 0x4110b0
jmp 0x41181d
nop
jmp 0x41181d
nop
jmp 0x41181d
nop
jmp 0x41181d
nop
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, dword [ebp - 0x20]
add esp, 0x94
pop edi
pop ebp
ret