Function at 0x10016889
Capabilities:
Get file attributes

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x1008dd90]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x48
mov eax, 0x10073345
call fcn.1005109b
test byte [ebp + 0x41c], 1
mov esi, ecx
mov edi, 0x1008f90c
mov ebx, 0x1008f830
je 0x1001697d
mov eax, dword [ebp + 0x420]
shr eax, 4
and eax, 1
jne 0x1001690c
mov eax, dword [esi + 0x48]
sub eax, dword [esi + 0x44]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 1
jne 0x1001697d
push 0
lea ecx, [esi + 0x38]
call fcn.10017818
cmp dword [eax + 0x18], 8
jb 0x100168fe
mov eax, dword [eax + 4]
jmp 0x10016901
add eax, 4
push eax
call fcn.10014293
pop ecx
test eax, eax
je 0x1001697d
push edi
lea ecx, [ebp - 0x10]
call fcn.10002c90
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push 0x1f41
mov ecx, ebx
call fcn.1001aeaa
push dword [ebp - 0x10]
lea ecx, [ebp - 0x44]
call fcn.100029e0
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 1
call fcn.10018e26
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.1000166a
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x28], 1
call fcn.10018aa9
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.10002890
mov eax, dword [ebp + 0x420]
and eax, 2
mov dword [ebp - 0x24], eax
je 0x10016d2a
push edi
lea ecx, [ebp - 0x14]
call fcn.10002c90
test byte [ebp + 0x41c], 2
mov dword [ebp - 4], 2
je 0x10016a19
push edi
lea ecx, [ebp - 0x10]
call fcn.10002c90
lea eax, [ebp - 0x10]
push eax
push 0x1f46
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.1001aeaa
push dword [ebp - 0x10]
lea ecx, [ebp - 0x44]
call fcn.100029e0
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 4
call fcn.10018e26
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.1000166a
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x20], 2
call fcn.10018aa9
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.10002890
test byte [ebp + 0x41c], 4
je 0x10016a93
push edi
lea ecx, [ebp - 0x10]
call fcn.10002c90
lea eax, [ebp - 0x10]
push eax
push 0x1f47
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.1001aeaa
push dword [ebp - 0x10]
lea ecx, [ebp - 0x44]
call fcn.100029e0
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 6
call fcn.10018e26
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 5
call fcn.1000166a
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x20], 4
call fcn.10018aa9
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.10002890
test dword [ebp + 0x41c], 0x1000
je 0x10016b10
push edi
lea ecx, [ebp - 0x10]
call fcn.10002c90
lea eax, [ebp - 0x10]
push eax
push 0x1f5a
mov ecx, ebx
mov byte [ebp - 4], 7
call fcn.1001aeaa
push dword [ebp - 0x10]
lea ecx, [ebp - 0x44]
call fcn.100029e0
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 8
call fcn.10018e26
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 7
call fcn.1000166a
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x20], 0x1000
call fcn.10018aa9
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.10002890
test byte [ebp + 0x41c], 8
je 0x10016c73
mov eax, dword [esi + 0x48]
sub eax, dword [esi + 0x44]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 1
jne 0x10016c73
push 0
lea ecx, [esi + 0x38]
call fcn.10017818
cmp dword [eax + 0x18], 8
jb 0x10016b47
mov eax, dword [eax + 4]
jmp 0x10016b4a
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push str..tar
push eax
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10016b97
mov ecx, dword [ebp - 0x48]
mov word [ecx], ax
lea eax, [ebp + 0x208]
push 0
push eax
call fcn.10017784
pop ecx
pop ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.10002c90
lea eax, [ebp - 0x10]
push eax
push 0x1f48
mov ecx, ebx
mov byte [ebp - 4], 9
call fcn.1001aeaa
lea eax, [ebp + 0x208]
push 0x104
push eax
call fcn.10013ef0
pop ecx
pop ecx
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp - 0x10]
call fcn.10017c1d
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp + 0x208]
lea ecx, [esi + 0x2ac]
push eax
call fcn.10002f60
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.100177cd
push dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xa
call fcn.100029e0
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0xb
call fcn.10018e26
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xa
call fcn.1000166a
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x20], 8
call fcn.10018aa9
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.10002890
test byte [ebp + 0x41c], 0x10
je 0x10016d1b
push str.SmartExtr
lea eax, [ebp - 0x14]
push 0x10077f38
push eax
call fcn.1000cf04
add esp, 0xc
push edi
lea ecx, [ebp - 0x18]
call fcn.10002c90
mov eax, dword [esi + 0x48]
sub eax, dword [esi + 0x44]
push 0x1c
cdq
pop ecx
idiv ecx
mov byte [ebp - 4], 0xc
mov ecx, ebx
cmp eax, 1
lea eax, [ebp - 0x18]
push eax
jne 0x10016cc1
push 0x1f49
jmp 0x10016cc6
push 0x1f4a
call fcn.1001aeaa
push dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
call fcn.100029e0
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0xd
call fcn.10018e26
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xc
call fcn.1000166a
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x20], 0x10
call fcn.10018aa9
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.10002890
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.10002890
test byte [ebp + 0x420], 1
je 0x10017070
test byte [ebp + 0x41c], 0x20
je 0x10016db4
push edi
lea ecx, [ebp - 0x10]
call fcn.10002c90
lea eax, [ebp - 0x10]
push eax
push 0x1f45
mov ecx, ebx
mov dword [ebp - 4], 0xe
call fcn.1001aeaa
push dword [ebp - 0x10]
lea ecx, [ebp - 0x44]
call fcn.100029e0
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0xf
call fcn.10018e26
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xe
call fcn.1000166a
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x20], 0x20
call fcn.10018aa9
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.10002890
mov eax, dword [ebp + 0x41c]
shr eax, 0xb
and eax, 1
push eax
mov ecx, esi
call fcn.10016826
test dword [ebp + 0x41c], 0x100
je 0x10016e48
push edi
lea ecx, [ebp - 0x10]
call fcn.10002c90
lea eax, [ebp - 0x10]
push eax
push 0x1f52
mov ecx, ebx
mov dword [ebp - 4], 0x10
call fcn.1001aeaa
push dword [ebp - 0x10]
lea ecx, [ebp - 0x44]
call fcn.100029e0
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0x11
call fcn.10018e26
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x10
call fcn.1000166a
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x20], pe_nt_image_headers32
call fcn.10018aa9
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.10002890
test byte [ebp + 0x41c], 0x80
je 0x10016f88
push edi
lea ecx, [ebp - 0x14]
call fcn.10002c90
lea eax, [ebp - 0x14]
push eax
push 0x1f53
mov ecx, ebx
mov dword [ebp - 4], 0x12
call fcn.1001aeaa
push 0x10077f40
lea ecx, [ebp - 0x14]
call fcn.1000cee7
push 0x10077f44
lea ecx, [ebp - 0x14]
call fcn.1000cee7
push 0
push 0x104
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.10013ffa
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp + 0x208]
push 0x104
push eax
call fcn.10013ef0
pop ecx
pop ecx
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp - 0x14]
call fcn.1000cee7
push 0x10077f48
lea ecx, [ebp - 0x14]
call fcn.1000cee7
push 0x10077f4c
lea ecx, [ebp - 0x14]
call fcn.1000cee7
push edi
lea ecx, [ebp - 0x10]
call fcn.10002c90
lea eax, [ebp - 0x10]
push eax
push 0x1f54
mov ecx, ebx
mov byte [ebp - 4], 0x13
call fcn.1001aeaa
mov eax, dword [ebp - 0x10]
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
push eax
call fcn.1000ce18
push 0
lea ecx, [ebp - 0x14]
call fcn.100031e0
push eax
lea ecx, [ebp - 0x44]
call fcn.100029e0
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0x14
call fcn.10018e26
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x13
call fcn.1000166a
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x80
push eax
lea ecx, [esi + 0x68]
call fcn.10018aa9
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10002890
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.10002890
push 0x10077f50
lea ecx, [ebp - 0x48]
call fcn.10002a70
push 1
push dword [ebp - 0x48]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0x15
call fcn.10018f83
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x16
call fcn.10018f48
and dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x10017055
push edi
lea ecx, [ebp - 0x18]
call fcn.10002c90
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push 0x10077f64
push 0x10077f78
push eax
mov byte [ebp - 4], 0x17
call fcn.1000cf04
add esp, 0x10
push 1
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.10018f83
and dword [ebp - 0x54], 0
lea eax, [ebp - 0x54]
push eax
push str.Default
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x18
call fcn.10018f21
cmp dword [ebp - 0x54], 0
lea ecx, [ebp - 0x14]
jne 0x1001702e
and dword [ebp - 0x50], 0
lea eax, [ebp - 0x50]
push eax
push str.AppendMenu
call fcn.10018f21
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x17
call fcn.10018f75
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x16
call fcn.10002890
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
jl 0x10016fc4
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x15
call fcn.10018f75
mov ecx, dword [ebp - 0x48]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.10002890
cmp dword [ebp - 0x24], 0
je 0x100170ef
mov eax, 0x200
test dword [ebp + 0x41c], eax
je 0x100170ef
and dword [ebp - 0x24], 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x68]
call fcn.10018aa9
push edi
lea ecx, [ebp - 0x10]
call fcn.10002c90
lea eax, [ebp - 0x10]
push eax
push 0x1f55
mov ecx, ebx
mov dword [ebp - 4], 0x1a
call fcn.1001aeaa
push dword [ebp - 0x10]
lea ecx, [ebp - 0x44]
call fcn.100029e0
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0x1b
call fcn.10018e26
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.1000166a
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.10002890
cmp dword [esi], 0
je 0x100171b4
test dword [ebp + 0x41c], 0x800000
je 0x100171b4
mov eax, dword [esi + 0x48]
sub eax, dword [esi + 0x44]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 1
jne 0x100171b4
push 0
lea ecx, [esi + 0x38]
call fcn.10017818
cmp dword [eax + 0x18], 8
jb 0x10017132
mov eax, dword [eax + 4]
jmp 0x10017135
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x100171b4
push edi
lea ecx, [ebp - 0x10]
call fcn.10002c90
lea eax, [ebp - 0x10]
push eax
push 0x1f59
mov ecx, ebx
mov dword [ebp - 4], 0x1c
call fcn.1001aeaa
push dword [ebp - 0x10]
lea ecx, [ebp - 0x44]
call fcn.100029e0
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0x1d
call fcn.10018e26
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x1c
call fcn.1000166a
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x28], 0x800000
call fcn.10018aa9
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.10002890
test byte [ebp + 0x420], 4
je 0x10017247
test dword [ebp + 0x41c], 0x10000
je 0x10017247
push edi
lea ecx, [ebp - 0x10]
call fcn.10002c90
lea eax, [ebp - 0x10]
push eax
push 0x1f42
mov ecx, ebx
mov dword [ebp - 4], 0x1e
call fcn.1001aeaa
push dword [ebp - 0x10]
lea ecx, [ebp - 0x44]
call fcn.100029e0
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0x1f
call fcn.10018e26
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x1e
call fcn.1000166a
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x28], 0x10000
call fcn.10018aa9
mov ecx, dword [ebp - 0x10]
inc dword [esi + 0x98]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.10002890
test byte [ebp + 0x420], 8
je 0x100172eb
test dword [ebp + 0x41c], 0x40000
je 0x100172eb
mov eax, dword [esi + 0x48]
sub eax, dword [esi + 0x44]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 1
jne 0x100172eb
push edi
lea ecx, [ebp - 0x18]
call fcn.10002c90
lea eax, [ebp - 0x18]
push eax
push 0x1f44
mov ecx, ebx
mov dword [ebp - 4], 0x20
call fcn.1001aeaa
push dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
call fcn.100029e0
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0x21
call fcn.10018e26
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x20
call fcn.1000166a
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x28], 0x40000
call fcn.10018aa9
mov ecx, dword [ebp - 0x18]
inc dword [esi + 0x98]
add ecx, 0xfffffff0
call fcn.10002890
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.1005097c
add ebp, 0x414
leave
ret 8