Function at 0x1001634a
Capabilities:
Get file attributes

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x1008cc50]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x48
mov eax, 0x10072a98
call fcn.10050aeb
test byte [ebp + 0x41c], 1
mov esi, ecx
mov edi, 0x1008e7cc
mov ebx, 0x1008e6f0
je 0x1001643e
mov eax, dword [ebp + 0x420]
shr eax, 4
and eax, 1
jne 0x100163cd
mov eax, dword [esi + 0x48]
sub eax, dword [esi + 0x44]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 1
jne 0x1001643e
push 0
lea ecx, [esi + 0x38]
call fcn.10017170
cmp dword [eax + 0x18], 8
jb 0x100163bf
mov eax, dword [eax + 4]
jmp 0x100163c2
add eax, 4
push eax
call fcn.10013d54
pop ecx
test eax, eax
je 0x1001643e
push edi
lea ecx, [ebp - 0x10]
call fcn.10002cc0
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push 0x1f41
mov ecx, ebx
call fcn.1001a8bb
push dword [ebp - 0x10]
lea ecx, [ebp - 0x44]
call fcn.10002a10
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 1
call fcn.100187e4
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.10001672
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x28], 1
call fcn.10018467
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.100028c0
mov eax, dword [ebp + 0x420]
and eax, 2
mov dword [ebp - 0x24], eax
je 0x100167eb
push edi
lea ecx, [ebp - 0x14]
call fcn.10002cc0
test byte [ebp + 0x41c], 2
mov dword [ebp - 4], 2
je 0x100164da
push edi
lea ecx, [ebp - 0x10]
call fcn.10002cc0
lea eax, [ebp - 0x10]
push eax
push 0x1f46
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.1001a8bb
push dword [ebp - 0x10]
lea ecx, [ebp - 0x44]
call fcn.10002a10
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 4
call fcn.100187e4
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.10001672
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x20], 2
call fcn.10018467
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.100028c0
test byte [ebp + 0x41c], 4
je 0x10016554
push edi
lea ecx, [ebp - 0x10]
call fcn.10002cc0
lea eax, [ebp - 0x10]
push eax
push 0x1f47
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.1001a8bb
push dword [ebp - 0x10]
lea ecx, [ebp - 0x44]
call fcn.10002a10
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 6
call fcn.100187e4
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 5
call fcn.10001672
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x20], 4
call fcn.10018467
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.100028c0
test dword [ebp + 0x41c], 0x1000
je 0x100165d1
push edi
lea ecx, [ebp - 0x10]
call fcn.10002cc0
lea eax, [ebp - 0x10]
push eax
push 0x1f5a
mov ecx, ebx
mov byte [ebp - 4], 7
call fcn.1001a8bb
push dword [ebp - 0x10]
lea ecx, [ebp - 0x44]
call fcn.10002a10
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 8
call fcn.100187e4
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 7
call fcn.10001672
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x20], 0x1000
call fcn.10018467
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.100028c0
test byte [ebp + 0x41c], 8
je 0x10016734
mov eax, dword [esi + 0x48]
sub eax, dword [esi + 0x44]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 1
jne 0x10016734
push 0
lea ecx, [esi + 0x38]
call fcn.10017170
cmp dword [eax + 0x18], 8
jb 0x10016608
mov eax, dword [eax + 4]
jmp 0x1001660b
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 0x10016658
mov ecx, dword [ebp - 0x48]
mov word [ecx], ax
lea eax, [ebp + 0x208]
push 0
push eax
call fcn.1001726d
pop ecx
pop ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.10002cc0
lea eax, [ebp - 0x10]
push eax
push 0x1f48
mov ecx, ebx
mov byte [ebp - 4], 9
call fcn.1001a8bb
lea eax, [ebp + 0x208]
push 0x104
push eax
call fcn.100139b1
pop ecx
pop ecx
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp - 0x10]
call fcn.1001763e
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.10002f90
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.100172b6
push dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xa
call fcn.10002a10
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0xb
call fcn.100187e4
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xa
call fcn.10001672
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x20], 8
call fcn.10018467
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.100028c0
test byte [ebp + 0x41c], 0x10
je 0x100167dc
push str.SmartExtr
lea eax, [ebp - 0x14]
push 0x10076e4c
push eax
call fcn.1000ce91
add esp, 0xc
push edi
lea ecx, [ebp - 0x18]
call fcn.10002cc0
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 0x10016782
push 0x1f49
jmp 0x10016787
push 0x1f4a
call fcn.1001a8bb
push dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
call fcn.10002a10
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0xd
call fcn.100187e4
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xc
call fcn.10001672
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x20], 0x10
call fcn.10018467
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.100028c0
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.100028c0
test byte [ebp + 0x420], 1
je 0x10016b31
test byte [ebp + 0x41c], 0x20
je 0x10016875
push edi
lea ecx, [ebp - 0x10]
call fcn.10002cc0
lea eax, [ebp - 0x10]
push eax
push 0x1f45
mov ecx, ebx
mov dword [ebp - 4], 0xe
call fcn.1001a8bb
push dword [ebp - 0x10]
lea ecx, [ebp - 0x44]
call fcn.10002a10
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0xf
call fcn.100187e4
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xe
call fcn.10001672
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x20], 0x20
call fcn.10018467
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.100028c0
mov eax, dword [ebp + 0x41c]
shr eax, 0xb
and eax, 1
push eax
mov ecx, esi
call fcn.100162e7
test dword [ebp + 0x41c], 0x100
je 0x10016909
push edi
lea ecx, [ebp - 0x10]
call fcn.10002cc0
lea eax, [ebp - 0x10]
push eax
push 0x1f52
mov ecx, ebx
mov dword [ebp - 4], 0x10
call fcn.1001a8bb
push dword [ebp - 0x10]
lea ecx, [ebp - 0x44]
call fcn.10002a10
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0x11
call fcn.100187e4
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x10
call fcn.10001672
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.10018467
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.100028c0
test byte [ebp + 0x41c], 0x80
je 0x10016a49
push edi
lea ecx, [ebp - 0x14]
call fcn.10002cc0
lea eax, [ebp - 0x14]
push eax
push 0x1f53
mov ecx, ebx
mov dword [ebp - 4], 0x12
call fcn.1001a8bb
push 0x10076e54
lea ecx, [ebp - 0x14]
call fcn.1000ce74
push 0x10076e58
lea ecx, [ebp - 0x14]
call fcn.1000ce74
push 0
push 0x104
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.10013abb
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.100139b1
pop ecx
pop ecx
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp - 0x14]
call fcn.1000ce74
push 0x10076e5c
lea ecx, [ebp - 0x14]
call fcn.1000ce74
push 0x10076e60
lea ecx, [ebp - 0x14]
call fcn.1000ce74
push edi
lea ecx, [ebp - 0x10]
call fcn.10002cc0
lea eax, [ebp - 0x10]
push eax
push 0x1f54
mov ecx, ebx
mov byte [ebp - 4], 0x13
call fcn.1001a8bb
mov eax, dword [ebp - 0x10]
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
push eax
call fcn.1000cda5
push 0
lea ecx, [ebp - 0x14]
call fcn.10003210
push eax
lea ecx, [ebp - 0x44]
call fcn.10002a10
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0x14
call fcn.100187e4
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x13
call fcn.10001672
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x80
push eax
lea ecx, [esi + 0x68]
call fcn.10018467
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.100028c0
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.100028c0
push 0x10076e64
lea ecx, [ebp - 0x48]
call fcn.10002aa0
push 1
push dword [ebp - 0x48]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0x15
call fcn.10018941
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x16
call fcn.10018906
and dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x10016b16
push edi
lea ecx, [ebp - 0x18]
call fcn.10002cc0
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push 0x10076e78
push 0x10076e8c
push eax
mov byte [ebp - 4], 0x17
call fcn.1000ce91
add esp, 0x10
push 1
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.10018941
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.100188df
cmp dword [ebp - 0x54], 0
lea ecx, [ebp - 0x14]
jne 0x10016aef
and dword [ebp - 0x50], 0
lea eax, [ebp - 0x50]
push eax
push str.AppendMenu
call fcn.100188df
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x17
call fcn.10018933
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x16
call fcn.100028c0
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
jl 0x10016a85
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x15
call fcn.10018933
mov ecx, dword [ebp - 0x48]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.100028c0
cmp dword [ebp - 0x24], 0
je 0x10016bb0
mov eax, 0x200
test dword [ebp + 0x41c], eax
je 0x10016bb0
and dword [ebp - 0x24], 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x68]
call fcn.10018467
push edi
lea ecx, [ebp - 0x10]
call fcn.10002cc0
lea eax, [ebp - 0x10]
push eax
push 0x1f55
mov ecx, ebx
mov dword [ebp - 4], 0x1a
call fcn.1001a8bb
push dword [ebp - 0x10]
lea ecx, [ebp - 0x44]
call fcn.10002a10
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0x1b
call fcn.100187e4
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.10001672
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.100028c0
cmp dword [esi], 0
je 0x10016c75
test dword [ebp + 0x41c], 0x800000
je 0x10016c75
mov eax, dword [esi + 0x48]
sub eax, dword [esi + 0x44]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 1
jne 0x10016c75
push 0
lea ecx, [esi + 0x38]
call fcn.10017170
cmp dword [eax + 0x18], 8
jb 0x10016bf3
mov eax, dword [eax + 4]
jmp 0x10016bf6
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x10016c75
push edi
lea ecx, [ebp - 0x10]
call fcn.10002cc0
lea eax, [ebp - 0x10]
push eax
push 0x1f59
mov ecx, ebx
mov dword [ebp - 4], 0x1c
call fcn.1001a8bb
push dword [ebp - 0x10]
lea ecx, [ebp - 0x44]
call fcn.10002a10
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0x1d
call fcn.100187e4
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x1c
call fcn.10001672
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x28], 0x800000
call fcn.10018467
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.100028c0
test byte [ebp + 0x420], 4
je 0x10016d08
test dword [ebp + 0x41c], 0x10000
je 0x10016d08
push edi
lea ecx, [ebp - 0x10]
call fcn.10002cc0
lea eax, [ebp - 0x10]
push eax
push 0x1f42
mov ecx, ebx
mov dword [ebp - 4], 0x1e
call fcn.1001a8bb
push dword [ebp - 0x10]
lea ecx, [ebp - 0x44]
call fcn.10002a10
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0x1f
call fcn.100187e4
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x1e
call fcn.10001672
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x28], 0x10000
call fcn.10018467
mov ecx, dword [ebp - 0x10]
inc dword [esi + 0x98]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.100028c0
test byte [ebp + 0x420], 8
je 0x10016dac
test dword [ebp + 0x41c], 0x40000
je 0x10016dac
mov eax, dword [esi + 0x48]
sub eax, dword [esi + 0x44]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 1
jne 0x10016dac
push edi
lea ecx, [ebp - 0x18]
call fcn.10002cc0
lea eax, [ebp - 0x18]
push eax
push 0x1f44
mov ecx, ebx
mov dword [ebp - 4], 0x20
call fcn.1001a8bb
push dword [ebp - 0x18]
lea ecx, [ebp - 0x44]
call fcn.10002a10
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0x21
call fcn.100187e4
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x20
call fcn.10001672
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x28], 0x40000
call fcn.10018467
mov ecx, dword [ebp - 0x18]
inc dword [esi + 0x98]
add ecx, 0xfffffff0
call fcn.100028c0
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.100503cc
add ebp, 0x414
leave
ret 8