Function at 0x4027fd
Capabilities:
Get file attributes
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfd0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp byte [edi], 0x7b
je 0x402818
xor eax, eax
jmp 0x4030fd
push dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
and dword [ebp - 0x14], 0
push edi
mov eax, ebx
call fcn.004025b8
mov esi, eax
test esi, esi
je 0x4028ad
lea eax, [esi + 0x4d]
cmp byte [eax], 0
jne 0x402849
cmp dword [ebp + 0x14], 0x62
jne 0x402849
push dword [ebp + 0x10]
push eax
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x402856
mov dword [esi + 0x158], eax
add ebx, 0x2ed
cmp byte [ebx], 0
je 0x402811
lea eax, [esi + 0x365]
push ebx
push eax
mov dword [ebp + 8], eax
call sub.msvcrt.dll__strcmpi
test eax, eax
pop ecx
pop ecx
je 0x40289d
lea edi, [esi + 0x164]
cmp byte [edi], 0
mov esi, 0x200
je 0x402894
push esi
push 0x40e870
call fcn.00406711
pop ecx
pop ecx
push esi
push ebx
call fcn.00406711
pop ecx
pop ecx
push ebx
push dword [ebp + 8]
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
jmp 0x402811
lea esi, [ebp - 0xecc]
call fcn.00401ec3
push edi
push 0x40
pop ebx
lea edi, [ebp - 0xec0]
call fcn.00405eda
mov eax, dword [ebp + 0x14]
pop ecx
mov dword [ebp - 0xd7c], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040180e
test eax, eax
jne 0x4030fa
xor ebx, ebx
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0xc], ebx
jne 0x402912
cmp dword [ebp - 0x10], ebx
je 0x402923
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_FileTimeToLocalFileTime]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp + 0x14]
push eax
mov edi, 0x20019
push edi
push ebx
push str.shellfolder
push dword [ebp - 8]
call esi
test eax, eax
je 0x402956
lea eax, [ebp + 0x14]
push eax
push edi
push ebx
push str.shellexExtShellFolderViews
push dword [ebp - 8]
call esi
test eax, eax
jne 0x402972
cmp dword [ebp - 0xd7c], 0x62
jne 0x402969
mov dword [ebp - 0xd7c], 0xd
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x40e4a0
push dword [ebp - 8]
mov eax, 0xff
lea esi, [ebp - 0xe7f]
call fcn.0040cc90
cmp byte [ebp - 0xe7f], bl
pop ecx
pop ecx
jne 0x4029aa
cmp dword [ebp - 0xd7c], 0x62
jne 0x4029aa
push dword [ebp + 0x10]
mov eax, esi
push eax
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
mov esi, str.InprocServer32
lea edi, [ebp - 0xfcc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0xf1
lea eax, [ebp - 0xfbd]
push ebx
push eax
movsb byte es:[edi], byte [esi]
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp - 0xd7c], 0x18
mov esi, 0x104
jne 0x402a50
push esi
lea eax, [ebp - 0x123]
push ebx
push eax
mov byte [ebp - 0x124], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push 1
push 0x40e4a0
push str.LocalServer32
push dword [ebp - 8]
mov ebx, esi
lea edi, [ebp - 0x124]
call fcn.0040ce07
add esp, 0x10
cmp byte [ebp - 0x124], 0
jne 0x402a3d
push 1
push str.Disabled
push str.LocalServer32
push dword [ebp - 8]
call fcn.0040ce07
add esp, 0x10
cmp byte [ebp - 0x124], 0
je 0x402a50
lea eax, [ebp - 0xfcc]
push str.LocalServer32
push eax
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
push 1
push 0x40e4a0
lea eax, [ebp - 0xfcc]
push eax
push dword [ebp - 8]
mov ebx, esi
lea edi, [ebp - 0xa67]
call fcn.0040ce07
push 1
push 0x40e4a0
push str.DefaultIcon
push dword [ebp - 8]
lea edi, [ebp - 0x562]
call fcn.0040ce07
xor ebx, ebx
add esp, 0x20
cmp byte [ebp - 0xa67], bl
jne 0x402ac2
push 1
push str.Disabled
lea eax, [ebp - 0xfcc]
push eax
push dword [ebp - 8]
mov ebx, esi
lea edi, [ebp - 0xa67]
call fcn.0040ce07
xor ebx, ebx
add esp, 0x10
cmp byte [ebp - 0xa67], bl
je 0x402b15
jmp 0x402b0b
cmp byte [ebp - 0xa67], 0x3a
jne 0x402b15
push esi
lea eax, [ebp - 0x22b]
push ebx
push eax
mov byte [ebp - 0x22c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa66]
push eax
lea eax, [ebp - 0x22c]
push eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0xa67]
push eax
call sub.msvcrt.dll_strcpy
add esp, 0x10
mov dword [ebp - 0xd78], 1
lea eax, [ebp - 0xa67]
push eax
push str.mscoree.dll
call sub.msvcrt.dll__stricmp
test eax, eax
pop ecx
pop ecx
jne 0x402b84
mov edi, 0xff
push edi
lea eax, [ebp - 0x123]
push ebx
push eax
mov byte [ebp - 0x124], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push 1
push str.Assembly
lea eax, [ebp - 0xfcc]
push eax
push dword [ebp - 8]
mov ebx, edi
lea edi, [ebp - 0x124]
call fcn.0040ce07
add esp, 0x10
lea eax, [ebp - 0xa67]
push eax
mov eax, edi
push eax
mov dword [ebp - 0x444], 1
call fcn.0040268c
xor ebx, ebx
cmp byte [ebp - 0x562], bl
jne 0x402ba7
mov eax, dword [ebp + 8]
add eax, 0x1e8
cmp byte [eax], bl
je 0x402ba7
push eax
lea eax, [ebp - 0x562]
push eax
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
cmp byte [ebp - 0xa67], bl
je 0x4030f1
lea eax, [ebp - 0xa67]
push 0x5c
push eax
call sub.msvcrt.dll_strchr
test eax, eax
pop ecx
pop ecx
jne 0x402c64
push esi
lea eax, [ebp - 0x123]
push ebx
push eax
mov byte [ebp - 0x124], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x333]
push ebx
push eax
mov byte [ebp - 0x334], bl
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
mov eax, dword [ebp + 8]
call fcn.00402602
lea eax, [ebp - 0xa67]
push eax
lea eax, [ebp - 0x334]
push eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x334]
push eax
call sub.msvcrt.dll_strlen
mov edi, eax
lea eax, [ebp - 0x124]
add esp, 0xc
push eax
call sub.msvcrt.dll_strlen
lea eax, [edi + eax + 1]
cmp eax, esi
pop ecx
jae 0x402c5e
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0xa67]
call fcn.0040616f
pop ecx
pop ecx
jmp 0x402c64
mov byte [ebp - 0xa67], bl
cmp byte [ebp - 0xa67], 0x22
jne 0x402cc9
push esi
lea eax, [ebp - 0x123]
push ebx
push eax
mov byte [ebp - 0x124], bl
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa66]
push eax
lea eax, [ebp - 0x124]
push eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x124]
push eax
call sub.msvcrt.dll_strlen
lea eax, [ebp + eax - 0x125]
add esp, 0xc
cmp byte [eax], 0x22
jne 0x402cb4
mov byte [eax], bl
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0xa67]
push eax
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
mov edi, dword [ebp + 8]
add edi, 0x5fe
cmp byte [edi], bl
je 0x402e96
push esi
lea eax, [ebp - 0x333]
push ebx
push eax
mov byte [ebp - 0x334], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
call sub.msvcrt.dll_strlen
mov edi, eax
mov dword [esp], str.admin_
call sub.msvcrt.dll_strlen
lea eax, [edi + eax + 1]
cmp eax, esi
pop ecx
jae 0x402d2b
mov eax, dword [ebp + 8]
add eax, 0x5fe
push str.admin_
push eax
lea eax, [ebp - 0x334]
call fcn.0040616f
pop ecx
pop ecx
jmp 0x402d31
mov byte [ebp - 0x334], bl
push esi
lea eax, [ebp - 0x43b]
push ebx
push eax
mov byte [ebp - 0x43c], bl
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x43c]
add esp, 0xc
push eax
call fcn.00406217
pop ecx
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0xa67]
call fcn.00405d77
test eax, eax
pop ecx
jne 0x402df2
lea eax, [ebp - 0x43c]
push eax
call sub.msvcrt.dll_strlen
pop ecx
push esi
mov edi, eax
lea eax, [ebp - 0x123]
push ebx
push eax
mov byte [ebp - 0x124], bl
call sub.msvcrt.dll_memset
lea eax, [ebp + edi - 0xa66]
add esp, 0xc
push eax
mov dword [ebp + 0xc], eax
call sub.msvcrt.dll_strlen
mov edi, eax
pop ecx
lea eax, [ebp - 0x334]
push eax
call sub.msvcrt.dll_strlen
lea eax, [edi + eax + 1]
cmp eax, esi
pop ecx
jae 0x402dd7
push dword [ebp + 0xc]
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x124]
call fcn.0040616f
pop ecx
pop ecx
jmp 0x402ddd
mov byte [ebp - 0x124], bl
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0xa67]
push eax
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
cmp byte [ebp - 0xa66], 0x3a
jne 0x402e96
push esi
lea eax, [ebp - 0x22b]
push ebx
push eax
mov byte [ebp - 0x22c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x123]
push ebx
push eax
mov byte [ebp - 0x124], bl
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
add eax, 0x5fe
add esp, 0xc
push eax
lea eax, [ebp - 0x22c]
push eax
call sub.msvcrt.dll_strcpy
mov al, byte [ebp - 0xa67]
mov byte [ebp - 0x123], al
lea eax, [ebp - 0xa65]
push esi
push eax
lea edi, [ebp - 0x124]
mov byte [ebp - 0x124], 0x5c
mov byte [ebp - 0x122], 0x24
mov byte [ebp - 0x121], bl
call fcn.00406711
mov eax, edi
push esi
push eax
lea edi, [ebp - 0x22c]
call fcn.00406711
mov eax, edi
push eax
lea eax, [ebp - 0xa67]
push eax
call sub.msvcrt.dll_strcpy
add esp, 0x20
mov edi, dword [ebp + 8]
add edi, 0x3f4
cmp byte [edi], bl
je 0x402f8d
push esi
lea eax, [ebp - 0x22b]
push ebx
push eax
mov byte [ebp - 0x22c], bl
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x22c]
add esp, 0xc
push eax
call fcn.00406217
pop ecx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0xa67]
call fcn.00405d77
test eax, eax
pop ecx
jne 0x402f6a
lea eax, [ebp - 0x22c]
push eax
call sub.msvcrt.dll_strlen
pop ecx
push esi
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x43b]
push ebx
push eax
mov byte [ebp - 0x43c], bl
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
lea eax, [ebp + eax - 0xa66]
push edi
mov dword [ebp + 0xc], eax
call sub.msvcrt.dll_strlen
pop ecx
push dword [ebp + 0xc]
mov edi, eax
call sub.msvcrt.dll_strlen
lea eax, [edi + eax + 1]
cmp eax, esi
pop ecx
jae 0x402f4f
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
add eax, 0x3f4
push eax
lea eax, [ebp - 0x43c]
call fcn.0040616f
pop ecx
pop ecx
jmp 0x402f55
mov byte [ebp - 0x43c], bl
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0xa67]
push eax
call sub.msvcrt.dll_strcpy
pop ecx
pop ecx
mov edi, dword [ebp + 8]
cmp byte [edi + 0x3f5], 0x3a
jne 0x402f90
cmp byte [ebp - 0xa66], 0x3a
jne 0x402f90
mov al, byte [edi + 0x3f4]
mov byte [ebp - 0xa67], al
jmp 0x402f90
mov edi, dword [ebp + 8]
cmp byte [ebp - 0xa67], bl
je 0x402fd0
lea eax, [ebp - 0xa67]
push eax
call fcn.00405c52
mov esi, eax
cmp esi, ebx
pop ecx
je 0x402fbf
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_FileTimeToLocalFileTime]
lea esi, [ebp - 0xecc]
call fcn.00402056
cmp byte [ebp - 0x562], bl
jne 0x402feb
mov eax, esi
push eax
call fcn.00402305
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x402ff8
mov dword [ebp - 0xd74], eax
lea esi, [edi + 0x2ed]
lea eax, [ebp - 0xd68]
push esi
push eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0xb67]
push esi
push eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0xa67]
push eax
call fcn.00405fb5
add esp, 0x14
test eax, eax
je 0x4030be
lea eax, [ebp - 0xa67]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov dword [ebp - 0xd70], eax
lea eax, [ebp - 0xd6c]
push eax
lea eax, [ebp - 0xa67]
push eax
call fcn.00406193
test byte [ebp - 0xd70], 2
pop ecx
pop ecx
je 0x403066
inc dword [ebp - 0x448]
lea eax, [ebp - 0xa67]
push 0x2e
push eax
call sub.msvcrt.dll_strrchr
cmp eax, ebx
pop ecx
pop ecx
je 0x40307f
lea esi, [eax + 1]
jmp 0x403081
xor esi, esi
cmp esi, ebx
je 0x4030be
push 0x40e8e8
push esi
call sub.msvcrt.dll__strcmpi
test eax, eax
pop ecx
pop ecx
jne 0x4030be
push 0x40e8ec
push esi
call sub.msvcrt.dll__strcmpi
test eax, eax
pop ecx
pop ecx
jne 0x4030be
push 0x40e8f0
push esi
call sub.msvcrt.dll__strcmpi
test eax, eax
pop ecx
pop ecx
jne 0x4030be
inc dword [ebp - 0x448]
mov eax, dword [ebp - 0xd7c]
lea ecx, [eax - 1]
cmp ecx, 0xfd
ja 0x4030dc
mov ecx, dword [edi + 0x3f0]
cmp byte [ecx + eax + 0x1b], 0x30
je 0x4030ea
lea eax, [ebp - 0xecc]
push eax
mov eax, edi
call fcn.004086b5
mov dword [ebp - 0x14], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x14