Function at 0x410bdb
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], 0x65729f
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x410c49
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00462cf8
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x6570fb
mov dword [esp], 1
call fcn.004231f5
mov eax, 0
jmp 0x411482
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0
jmp 0x410cc7
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040fa54
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jg 0x410c7c
jmp 0x410cc7
cmp dword [ebp - 0x14], 0
jne 0x410c9d
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x10]
sub edx, 1
add eax, edx
movzx eax, byte [eax]
cmp al, 0x5d
jne 0x410c9d
mov dword [ebp - 0x14], 1
jmp 0x410cc7
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 0x410cc5
mov dword [ebp - 0x10], 0
jmp 0x410ced
jmp 0x410ced
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.0044b1fc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jg 0x410c5f
jmp 0x411458
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], 0x657109
mov dword [esp], eax
call sub.msvcrt.dll_strtok
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x410d14
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x1c], eax
movzx eax, byte [0x6ef42b]
movzx eax, al
test eax, eax
je 0x410d35
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.file_name:____s_n
call fcn.004232e5
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
sub dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x1c]
jbe 0x410d6b
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
movsx eax, al
mov dword [esp], eax
call fcn.0043ead4
test al, al
jne 0x410d4a
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
cmp al, 0x3b
jne 0x410d88
mov eax, dword [ebp - 0x28]
sub eax, 1
movzx eax, byte [eax]
cmp al, 0x5e
je 0x410d88
mov eax, dword [ebp - 0x28]
mov byte [eax], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.00410ac1
movzx eax, byte [0x6ef42b]
movzx eax, al
test eax, eax
je 0x410db4
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.file_name_:__s_n
call fcn.004232e5
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.0043ec80
test eax, eax
jne 0x410e2b
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
movzx eax, byte [0x6ef42b]
movzx eax, al
test eax, eax
je 0x410eb8
mov dword [esp], str.Directory__nv__n
call fcn.004232e5
jmp 0x410eb8
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.0043ec80
test eax, eax
jne 0x410e8d
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
movzx eax, byte [0x6ef42b]
movzx eax, al
test eax, eax
je 0x410eb8
mov dword [esp], str.Directory__v__n
call fcn.004232e5
jmp 0x410eb8
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x70], 0x1a4
movzx eax, byte [0x6ef42b]
movzx eax, al
test eax, eax
je 0x410eb8
mov dword [esp], str.File_n
call fcn.004232e5
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.004477e1
mov dword [ebp - 0x84], eax
movzx eax, byte [0x6ef42b]
movzx eax, al
test eax, eax
je 0x410eed
mov eax, dword [ebp - 0x84]
mov dword [esp + 4], eax
mov dword [esp], str.Name:__s_n
call fcn.004232e5
mov byte [ebp - 0x5c], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [esp + 4], 0x657109
mov dword [esp], 0
call sub.msvcrt.dll_strtok
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x41102f
movzx eax, byte [0x6ef42b]
movzx eax, al
test eax, eax
je 0x410f41
mov dword [esp], str.Getting_additional_line._n
call fcn.004232e5
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.0044b1fc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jg 0x410f87
movzx eax, byte [0x6ef42b]
movzx eax, al
test eax, eax
je 0x410f82
mov dword [esp], str.EOF.__Leaving_listing_parser._n
call fcn.004232e5
jmp 0x411462
jmp 0x411462
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040fa54
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jg 0x410fc6
movzx eax, byte [0x6ef42b]
movzx eax, al
test eax, eax
je 0x410fc1
mov dword [esp], str.Blank_line.__Leaving_listing_parser._n
call fcn.004232e5
jmp 0x411462
jmp 0x411462
mov eax, dword [ebp - 0x60]
movzx eax, byte [eax]
cmp al, 0x20
je 0x410fef
movzx eax, byte [0x6ef42b]
movzx eax, al
test eax, eax
je 0x410fea
mov dword [esp], str.Non_blank_in_column_1.__Must_be_a_new_file_name__n
call fcn.004232e5
jmp 0x411458
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], 0x657109
mov dword [esp], eax
call sub.msvcrt.dll_strtok
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x41102f
movzx eax, byte [0x6ef42b]
movzx eax, al
test eax, eax
je 0x41102a
mov dword [esp], str.Null_token.__Leaving_listing_parser._n
call fcn.004232e5
jmp 0x411462
jmp 0x411462
jmp 0x411297
movzx eax, byte [0x6ef42b]
movzx eax, al
test eax, eax
je 0x411055
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.Token:___s_:
call fcn.004232e5
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
cmp eax, 0xb
ja 0x4110d1
mov dword [esp + 4], 0x2d
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x4110d1
movzx eax, byte [0x6ef42b]
movzx eax, al
test eax, eax
je 0x411096
mov dword [esp], str.Date._n
call fcn.004232e5
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 eax, 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 0x411280
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
cmp eax, 0xb
ja 0x41116b
mov dword [esp + 4], 0x3a
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x41116b
movzx eax, byte [0x6ef42b]
movzx eax, al
test eax, eax
je 0x411116
mov dword [esp], str.Time.
call fcn.004232e5
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
movzx eax, byte [0x6ef42b]
movzx eax, al
test eax, eax
je 0x411166
lea eax, [ebp - 0x5c]
mov dword [esp + 4], eax
mov dword [esp], str.Date_time:___s__n
call fcn.004232e5
jmp 0x411280
jmp 0x411280
mov dword [esp + 4], 0x5b
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x4111a5
movzx eax, byte [0x6ef42b]
movzx eax, al
test eax, eax
je 0x411280
mov dword [esp], str.Owner._n
call fcn.004232e5
jmp 0x411280
mov dword [esp + 4], 0x28
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x411266
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
jmp 0x41122d
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, edx
movzx eax, byte [eax]
movsx eax, al
sub eax, 0x28
cmp eax, 0x2f
ja case.0x4111f4.40
mov eax, dword [eax*4 + 0x657460]
jmp eax
cmp dword [ebp - 0x14], 0
jne 0x41120c
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 1
jmp case.0x4111f4.40
shl dword [ebp - 0x18], 3
jmp case.0x4111f4.40
or dword [ebp - 0x18], 4
jmp case.0x4111f4.40
or dword [ebp - 0x18], 2
jmp case.0x4111f4.40
or dword [ebp - 0x18], 1
jmp case.0x4111f4.40
or dword [ebp - 0x18], 2
nop
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
cmp eax, dword [ebp - 0x10]
jg 0x4111d7
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x70], eax
movzx eax, byte [0x6ef42b]
movzx eax, al
test eax, eax
je 0x411280
mov eax, dword [ebp - 0x70]
mov dword [esp + 4], eax
mov dword [esp], str.Prot.__perms___0o._n
call fcn.004232e5
jmp 0x411280
movzx eax, byte [0x6ef42b]
movzx eax, al
test eax, eax
je 0x411280
mov dword [esp], str.Ignored__size__._n
call fcn.004232e5
mov dword [esp + 4], 0x657109
mov dword [esp], 0
call sub.msvcrt.dll_strtok
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x411034
mov dword [esp], 0
call sub.msvcrt.dll_time_1
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call fcn.0044cf08
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.00465529
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call fcn.0044e829
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 0x41132c
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov dword [ebp - 0xc], eax
movzx eax, byte [0x6ef42b]
movzx eax, al
test eax, eax
je 0x411333
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.Time_differential___d._n
call fcn.004232e5
jmp 0x411333
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
js 0x411346
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x3c], eax
jmp 0x411351
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
movzx eax, byte [0x6ef42b]
movzx eax, al
test eax, eax
je 0x411378
mov eax, dword [ebp - 0x78]
mov dword [esp + 4], eax
mov dword [esp], str.Timestamp:__ld_n
call fcn.004232e5
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x20], 0
jne 0x4113cf
mov dword [esp], 0x28
call fcn.004476ac
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 0x411419
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x68], eax
mov dword [esp], 0x28
call fcn.004476ac
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.0044b1fc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x411458
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040fa54
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jg 0x411458
jmp 0x411462
cmp dword [ebp - 0x10], 0
jg 0x410cf2
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call fcn.006324d0
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