Function at 0x410c8b
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], 0x65329f
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 0x410cf9
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00463fcc
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x6530fb
mov dword [esp], 1
call fcn.00423602
mov eax, 0
jmp 0x411532
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0
jmp 0x410d77
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040fb04
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jg 0x410d2c
jmp 0x410d77
cmp dword [ebp - 0x14], 0
jne 0x410d4d
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x10]
sub edx, 1
add eax, edx
movzx eax, byte [eax]
cmp al, 0x5d
jne 0x410d4d
mov dword [ebp - 0x14], 1
jmp 0x410d77
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 0x410d75
mov dword [ebp - 0x10], 0
jmp 0x410d9d
jmp 0x410d9d
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.0044c014
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jg 0x410d0f
jmp 0x411508
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], 0x653109
mov dword [esp], eax
call sub.msvcrt.dll_strtok
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x410dc4
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x1c], eax
movzx eax, byte [0x6ea46b]
movzx eax, al
test eax, eax
je 0x410de5
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.file_name:____s_n
call fcn.0042371d
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 0x410e1b
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
movsx eax, al
mov dword [esp], eax
call fcn.0043f8ec
test al, al
jne 0x410dfa
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
cmp al, 0x3b
jne 0x410e38
mov eax, dword [ebp - 0x28]
sub eax, 1
movzx eax, byte [eax]
cmp al, 0x5e
je 0x410e38
mov eax, dword [ebp - 0x28]
mov byte [eax], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.00410b71
movzx eax, byte [0x6ea46b]
movzx eax, al
test eax, eax
je 0x410e64
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.file_name_:__s_n
call fcn.0042371d
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.0043fa98
test eax, eax
jne 0x410edb
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 [0x6ea46b]
movzx eax, al
test eax, eax
je 0x410f68
mov dword [esp], str.Directory__nv__n
call fcn.0042371d
jmp 0x410f68
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.0043fa98
test eax, eax
jne 0x410f3d
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 [0x6ea46b]
movzx eax, al
test eax, eax
je 0x410f68
mov dword [esp], str.Directory__v__n
call fcn.0042371d
jmp 0x410f68
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x70], 0x1a4
movzx eax, byte [0x6ea46b]
movzx eax, al
test eax, eax
je 0x410f68
mov dword [esp], str.File_n
call fcn.0042371d
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.004485f9
mov dword [ebp - 0x84], eax
movzx eax, byte [0x6ea46b]
movzx eax, al
test eax, eax
je 0x410f9d
mov eax, dword [ebp - 0x84]
mov dword [esp + 4], eax
mov dword [esp], str.Name:__s_n
call fcn.0042371d
mov byte [ebp - 0x5c], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [esp + 4], 0x653109
mov dword [esp], 0
call sub.msvcrt.dll_strtok
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4110df
movzx eax, byte [0x6ea46b]
movzx eax, al
test eax, eax
je 0x410ff1
mov dword [esp], str.Getting_additional_line._n
call fcn.0042371d
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.0044c014
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jg 0x411037
movzx eax, byte [0x6ea46b]
movzx eax, al
test eax, eax
je 0x411032
mov dword [esp], str.EOF.__Leaving_listing_parser._n
call fcn.0042371d
jmp 0x411512
jmp 0x411512
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040fb04
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jg 0x411076
movzx eax, byte [0x6ea46b]
movzx eax, al
test eax, eax
je 0x411071
mov dword [esp], str.Blank_line.__Leaving_listing_parser._n
call fcn.0042371d
jmp 0x411512
jmp 0x411512
mov eax, dword [ebp - 0x60]
movzx eax, byte [eax]
cmp al, 0x20
je 0x41109f
movzx eax, byte [0x6ea46b]
movzx eax, al
test eax, eax
je 0x41109a
mov dword [esp], str.Non_blank_in_column_1.__Must_be_a_new_file_name__n
call fcn.0042371d
jmp 0x411508
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], 0x653109
mov dword [esp], eax
call sub.msvcrt.dll_strtok
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4110df
movzx eax, byte [0x6ea46b]
movzx eax, al
test eax, eax
je 0x4110da
mov dword [esp], str.Null_token.__Leaving_listing_parser._n
call fcn.0042371d
jmp 0x411512
jmp 0x411512
jmp 0x411347
movzx eax, byte [0x6ea46b]
movzx eax, al
test eax, eax
je 0x411105
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.Token:___s_:
call fcn.0042371d
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
cmp eax, 0xb
ja 0x411181
mov dword [esp + 4], 0x2d
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x411181
movzx eax, byte [0x6ea46b]
movzx eax, al
test eax, eax
je 0x411146
mov dword [esp], str.Date._n
call fcn.0042371d
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 0x411330
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
cmp eax, 0xb
ja 0x41121b
mov dword [esp + 4], 0x3a
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x41121b
movzx eax, byte [0x6ea46b]
movzx eax, al
test eax, eax
je 0x4111c6
mov dword [esp], str.Time.
call fcn.0042371d
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 [0x6ea46b]
movzx eax, al
test eax, eax
je 0x411216
lea eax, [ebp - 0x5c]
mov dword [esp + 4], eax
mov dword [esp], str.Date_time:___s__n
call fcn.0042371d
jmp 0x411330
jmp 0x411330
mov dword [esp + 4], 0x5b
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x411255
movzx eax, byte [0x6ea46b]
movzx eax, al
test eax, eax
je 0x411330
mov dword [esp], str.Owner._n
call fcn.0042371d
jmp 0x411330
mov dword [esp + 4], 0x28
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x411316
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
jmp 0x4112dd
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.0x4112a4.40
mov eax, dword [eax*4 + 0x653460]
jmp eax
cmp dword [ebp - 0x14], 0
jne 0x4112bc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 1
jmp case.0x4112a4.40
shl dword [ebp - 0x18], 3
jmp case.0x4112a4.40
or dword [ebp - 0x18], 4
jmp case.0x4112a4.40
or dword [ebp - 0x18], 2
jmp case.0x4112a4.40
or dword [ebp - 0x18], 1
jmp case.0x4112a4.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 0x411287
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x70], eax
movzx eax, byte [0x6ea46b]
movzx eax, al
test eax, eax
je 0x411330
mov eax, dword [ebp - 0x70]
mov dword [esp + 4], eax
mov dword [esp], str.Prot.__perms___0o._n
call fcn.0042371d
jmp 0x411330
movzx eax, byte [0x6ea46b]
movzx eax, al
test eax, eax
je 0x411330
mov dword [esp], str.Ignored__size__._n
call fcn.0042371d
mov dword [esp + 4], 0x653109
mov dword [esp], 0
call sub.msvcrt.dll_strtok
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4110e4
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.0044dd20
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.004667fd
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call fcn.0044f641
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 0x4113dc
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_atoi
mov dword [ebp - 0xc], eax
movzx eax, byte [0x6ea46b]
movzx eax, al
test eax, eax
je 0x4113e3
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.Time_differential___d._n
call fcn.0042371d
jmp 0x4113e3
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
js 0x4113f6
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x3c], eax
jmp 0x411401
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 [0x6ea46b]
movzx eax, al
test eax, eax
je 0x411428
mov eax, dword [ebp - 0x78]
mov dword [esp + 4], eax
mov dword [esp], str.Timestamp:__ld_n
call fcn.0042371d
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x20], 0
jne 0x41147f
mov dword [esp], 0x28
call fcn.004484c4
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 0x4114c9
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x68], eax
mov dword [esp], 0x28
call fcn.004484c4
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.0044c014
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x411508
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040fb04
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jg 0x411508
jmp 0x411512
cmp dword [ebp - 0x10], 0
jg 0x410da2
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call fcn.0062e160
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