Function at 0x1001005e
Capabilities:
Get file attributes

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x10032ba0]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x48
mov eax, 0x10028988
call fcn.10013a45
test byte [ebp + 0x41c], 1
mov esi, ecx
mov edi, 0x1003435c
mov ebx, 0x100342c8
je 0x100101c0
mov eax, dword [ebp + 0x420]
shr eax, 4
and eax, 1
jne 0x100100e5
mov eax, dword [esi + 0x48]
sub eax, dword [esi + 0x44]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 1
jne 0x100101c0
push 0
lea ecx, [esi + 0x38]
call fcn.1000be6a
cmp dword [eax + 0x18], 8
jb 0x100100d3
mov eax, dword [eax + 4]
jmp 0x100100d6
add eax, 4
push eax
call fcn.1000c5b6
pop ecx
test eax, eax
je 0x100101c0
push edi
lea ecx, [ebp - 0x18]
call fcn.10005472
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
push 0x1f41
mov ecx, ebx
call fcn.1001206b
push 1
push 0
push 0
lea ecx, [esi + 0x38]
call fcn.1000be6a
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.1000a7c4
add esp, 0x10
cmp dword [eax + 0x18], 8
jb 0x10010128
mov eax, dword [eax + 4]
jmp 0x1001012b
add eax, 4
push 0x104
push eax
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.100015a0
lea eax, [ebp + 0x208]
push 0x104
push eax
call fcn.1000bbb9
pop ecx
pop ecx
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp - 0x18]
call fcn.1000576b
push dword [ebp - 0x18]
lea ecx, [ebp - 0x48]
call fcn.10001200
lea eax, [ebp - 0x48]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 1
call fcn.1000f86c
push 0
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.100015a0
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x2c], 1
call fcn.1000e9bb
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.100051b7
mov eax, dword [ebp + 0x420]
and eax, 2
mov dword [ebp - 0x28], eax
je 0x100104db
push edi
lea ecx, [ebp - 0x14]
call fcn.10005472
test byte [ebp + 0x41c], 2
mov dword [ebp - 4], 2
je 0x1001025c
push edi
lea ecx, [ebp - 0x10]
call fcn.10005472
lea eax, [ebp - 0x10]
push eax
push 0x1f46
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.1001206b
push dword [ebp - 0x10]
lea ecx, [ebp - 0x48]
call fcn.10001200
lea eax, [ebp - 0x48]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 4
call fcn.1000f86c
push 0
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.100015a0
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x20], 2
call fcn.1000e9bb
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.100051b7
test byte [ebp + 0x41c], 4
je 0x100102d6
push edi
lea ecx, [ebp - 0x10]
call fcn.10005472
lea eax, [ebp - 0x10]
push eax
push 0x1f47
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.1001206b
push dword [ebp - 0x10]
lea ecx, [ebp - 0x48]
call fcn.10001200
lea eax, [ebp - 0x48]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 6
call fcn.1000f86c
push 0
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.100015a0
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x20], 4
call fcn.1000e9bb
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.100051b7
test byte [ebp + 0x41c], 8
je 0x10010424
mov eax, dword [esi + 0x48]
sub eax, dword [esi + 0x44]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 1
jne 0x10010424
push 0
lea ecx, [esi + 0x38]
call fcn.1000be6a
cmp dword [eax + 0x18], 8
jb 0x1001030d
mov eax, dword [eax + 4]
jmp 0x10010310
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 - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1001035d
mov ecx, dword [ebp - 0x4c]
mov word [ecx], ax
lea eax, [ebp + 0x208]
push 0
push eax
call fcn.1000bf67
pop ecx
pop ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.10005472
lea eax, [ebp - 0x10]
push eax
push 0x1f48
mov ecx, ebx
mov byte [ebp - 4], 7
call fcn.1001206b
lea eax, [ebp + 0x208]
push 0x104
push eax
call fcn.1000bbb9
lea eax, [ebp + 0x208]
push eax
push dword [ebp - 0x10]
lea eax, [ebp]
push str._s___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x24]
call fcn.1000c01b
push dword [ebp - 0x24]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 8
call fcn.10001200
lea eax, [ebp - 0x48]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 9
call fcn.1000f86c
push 0
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 8
call fcn.100015a0
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x20], 8
call fcn.1000e9bb
push dword [ebp - 0x24]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.100051b7
test byte [ebp + 0x41c], 0x10
je 0x100104cc
push str.SmartExtr
lea eax, [ebp - 0x14]
push 0x1002ae4c
push eax
call fcn.100057f9
add esp, 0xc
push edi
lea ecx, [ebp - 0x18]
call fcn.10005472
mov eax, dword [esi + 0x48]
sub eax, dword [esi + 0x44]
push 0x1c
cdq
pop ecx
idiv ecx
mov byte [ebp - 4], 0xa
mov ecx, ebx
cmp eax, 1
lea eax, [ebp - 0x18]
push eax
jne 0x10010472
push 0x1f49
jmp 0x10010477
push 0x1f4a
call fcn.1001206b
push dword [ebp - 0x18]
lea ecx, [ebp - 0x48]
call fcn.10001200
lea eax, [ebp - 0x48]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0xb
call fcn.1000f86c
push 0
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xa
call fcn.100015a0
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x20], 0x10
call fcn.1000e9bb
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.100051b7
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.100051b7
test byte [ebp + 0x420], 1
je 0x10010821
test byte [ebp + 0x41c], 0x20
je 0x10010565
push edi
lea ecx, [ebp - 0x10]
call fcn.10005472
lea eax, [ebp - 0x10]
push eax
push 0x1f45
mov ecx, ebx
mov dword [ebp - 4], 0xc
call fcn.1001206b
push dword [ebp - 0x10]
lea ecx, [ebp - 0x48]
call fcn.10001200
lea eax, [ebp - 0x48]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0xd
call fcn.1000f86c
push 0
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xc
call fcn.100015a0
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x20], 0x20
call fcn.1000e9bb
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.100051b7
mov eax, dword [ebp + 0x41c]
shr eax, 0xb
and eax, 1
push eax
mov ecx, esi
call fcn.1000ffb6
test dword [ebp + 0x41c], 0x100
je 0x100105f9
push edi
lea ecx, [ebp - 0x10]
call fcn.10005472
lea eax, [ebp - 0x10]
push eax
push 0x1f52
mov ecx, ebx
mov dword [ebp - 4], 0xe
call fcn.1001206b
push dword [ebp - 0x10]
lea ecx, [ebp - 0x48]
call fcn.10001200
lea eax, [ebp - 0x48]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0xf
call fcn.1000f86c
push 0
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xe
call fcn.100015a0
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x20], 0x100
call fcn.1000e9bb
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.100051b7
test byte [ebp + 0x41c], 0x80
je 0x10010739
push edi
lea ecx, [ebp - 0x14]
call fcn.10005472
lea eax, [ebp - 0x14]
push eax
push 0x1f53
mov ecx, ebx
mov dword [ebp - 4], 0x10
call fcn.1001206b
push 0x1002a38c
lea ecx, [ebp - 0x14]
call fcn.1000576b
push 0x1002a5ec
lea ecx, [ebp - 0x14]
call fcn.1000576b
push 0
push 0x104
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.1000d2b0
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.1000bbb9
pop ecx
pop ecx
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp - 0x14]
call fcn.1000576b
push 0x1002a5ec
lea ecx, [ebp - 0x14]
call fcn.1000576b
push 0x1002a38c
lea ecx, [ebp - 0x14]
call fcn.1000576b
push edi
lea ecx, [ebp - 0x10]
call fcn.10005472
lea eax, [ebp - 0x10]
push eax
push 0x1f54
mov ecx, ebx
mov byte [ebp - 4], 0x11
call fcn.1001206b
mov eax, dword [ebp - 0x10]
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
push eax
call fcn.100055e3
push 0
lea ecx, [ebp - 0x14]
call fcn.100055b9
push eax
lea ecx, [ebp - 0x48]
call fcn.10001200
lea eax, [ebp - 0x48]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0x12
call fcn.1000f86c
push 0
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x11
call fcn.100015a0
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x80
push eax
lea ecx, [esi + 0x68]
call fcn.1000e9bb
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.100051b7
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.100051b7
push str.Profiles
lea ecx, [ebp - 0x4c]
call fcn.10005b3f
push 1
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0x13
call fcn.10010d5c
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x14
call fcn.10010c69
and dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x10010806
push edi
lea ecx, [ebp - 0x18]
call fcn.10005472
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push str.Profiles
push str._s_d
push eax
mov byte [ebp - 4], 0x15
call fcn.100057f9
add esp, 0x10
push 1
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.10010d5c
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
push str.Default
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x16
call fcn.10010c42
cmp dword [ebp - 0x24], 0
lea ecx, [ebp - 0x14]
jne 0x100107df
and dword [ebp - 0x54], 0
lea eax, [ebp - 0x54]
push eax
push str.AppendMenu
call fcn.10010c42
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x15
call fcn.10004f93
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x14
call fcn.100051b7
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
jl 0x10010775
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x13
call fcn.10004f93
mov ecx, dword [ebp - 0x4c]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.100051b7
cmp dword [ebp - 0x28], 0
je 0x100108a0
mov eax, 0x200
test dword [ebp + 0x41c], eax
je 0x100108a0
and dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 0x68]
call fcn.1000e9bb
push edi
lea ecx, [ebp - 0x10]
call fcn.10005472
lea eax, [ebp - 0x10]
push eax
push 0x1f55
mov ecx, ebx
mov dword [ebp - 4], 0x18
call fcn.1001206b
push dword [ebp - 0x10]
lea ecx, [ebp - 0x48]
call fcn.10001200
lea eax, [ebp - 0x48]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0x19
call fcn.1000f86c
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.100015a0
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.100051b7
cmp dword [esi], 0
je 0x10010965
test dword [ebp + 0x41c], 0x800000
je 0x10010965
mov eax, dword [esi + 0x48]
sub eax, dword [esi + 0x44]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 1
jne 0x10010965
push 0
lea ecx, [esi + 0x38]
call fcn.1000be6a
cmp dword [eax + 0x18], 8
jb 0x100108e3
mov eax, dword [eax + 4]
jmp 0x100108e6
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x10010965
push edi
lea ecx, [ebp - 0x10]
call fcn.10005472
lea eax, [ebp - 0x10]
push eax
push 0x1f59
mov ecx, ebx
mov dword [ebp - 4], 0x1a
call fcn.1001206b
push dword [ebp - 0x10]
lea ecx, [ebp - 0x48]
call fcn.10001200
lea eax, [ebp - 0x48]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0x1b
call fcn.1000f86c
push 0
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x1a
call fcn.100015a0
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x2c], 0x800000
call fcn.1000e9bb
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.100051b7
test byte [ebp + 0x420], 4
je 0x100109f8
test dword [ebp + 0x41c], 0x10000
je 0x100109f8
push edi
lea ecx, [ebp - 0x10]
call fcn.10005472
lea eax, [ebp - 0x10]
push eax
push 0x1f42
mov ecx, ebx
mov dword [ebp - 4], 0x1c
call fcn.1001206b
push dword [ebp - 0x10]
lea ecx, [ebp - 0x48]
call fcn.10001200
lea eax, [ebp - 0x48]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0x1d
call fcn.1000f86c
push 0
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x1c
call fcn.100015a0
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x2c], 0x10000
call fcn.1000e9bb
mov ecx, dword [ebp - 0x10]
inc dword [esi + 0x98]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.100051b7
test byte [ebp + 0x420], 8
je 0x10010a9c
test dword [ebp + 0x41c], 0x40000
je 0x10010a9c
mov eax, dword [esi + 0x48]
sub eax, dword [esi + 0x44]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 1
jne 0x10010a9c
push edi
lea ecx, [ebp - 0x24]
call fcn.10005472
lea eax, [ebp - 0x24]
push eax
push 0x1f44
mov ecx, ebx
mov dword [ebp - 4], 0x1e
call fcn.1001206b
push dword [ebp - 0x24]
lea ecx, [ebp - 0x48]
call fcn.10001200
lea eax, [ebp - 0x48]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 0x1f
call fcn.1000f86c
push 0
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x1e
call fcn.100015a0
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x2c], 0x40000
call fcn.1000e9bb
mov ecx, dword [ebp - 0x24]
inc dword [esi + 0x98]
add ecx, 0xfffffff0
call fcn.100051b7
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.100135dc
add ebp, 0x414
leave
ret 8