Function at 0x10007bb0
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x65c
mov eax, dword [0x1003802c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x1003ab60
push str.C:Users_sAppDataRoamingMicrosoftWindowsStart_MenuProgramsStartup
lea eax, [ebp - 0x418]
push eax
call fcn.10001260
add esp, 0xc
mov ecx, dword [str.One_Drives]
mov dword [ebp - 0x10], ecx
mov edx, dword [0x10033f10]
mov dword [ebp - 0xc], edx
mov ax, word [0x10033f14]
mov word [ebp - 8], ax
mov cl, byte [0x10033f16]
mov byte [ebp - 6], cl
lea edx, [ebp - 0x418]
mov dword [ebp - 0x634], edx
lea eax, [ebp - 0x114]
mov dword [ebp - 0x62c], eax
mov ecx, dword [ebp - 0x62c]
mov dword [ebp - 0x658], ecx
mov edx, dword [ebp - 0x634]
mov al, byte [edx]
mov byte [ebp - 0x621], al
mov ecx, dword [ebp - 0x62c]
mov dl, byte [ebp - 0x621]
mov byte [ecx], dl
mov eax, dword [ebp - 0x634]
add eax, 1
mov dword [ebp - 0x634], eax
mov ecx, dword [ebp - 0x62c]
add ecx, 1
mov dword [ebp - 0x62c], ecx
cmp byte [ebp - 0x621], 0
jne 0x10007c27
lea edx, [ebp - 0x10]
mov dword [ebp - 0x628], edx
mov eax, dword [ebp - 0x628]
mov dword [ebp - 0x638], eax
mov ecx, dword [ebp - 0x628]
mov dl, byte [ecx]
mov byte [ebp - 0x622], dl
add dword [ebp - 0x628], 1
cmp byte [ebp - 0x622], 0
jne 0x10007c7f
mov eax, dword [ebp - 0x628]
sub eax, dword [ebp - 0x638]
mov ecx, dword [ebp - 0x638]
mov dword [ebp - 0x64c], ecx
mov dword [ebp - 0x650], eax
lea edx, [ebp - 0x114]
add edx, 0xffffffff
mov dword [ebp - 0x630], edx
mov eax, dword [ebp - 0x630]
mov cl, byte [eax + 1]
mov byte [ebp - 0x623], cl
add dword [ebp - 0x630], 1
cmp byte [ebp - 0x623], 0
jne 0x10007cca
mov edi, dword [ebp - 0x630]
mov esi, dword [ebp - 0x64c]
mov edx, dword [ebp - 0x650]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x418]
push ecx
push 0x10033f18
lea edx, [ebp - 0x114]
push edx
call fcn.10001260
add esp, 0x10
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x640], eax
push 0x104
push 0
lea ecx, [ebp - 0x114]
push ecx
call fcn.1000edf0
add esp, 0xc
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x418]
push eax
push str._s_s.vta
lea ecx, [ebp - 0x114]
push ecx
call fcn.10001260
add esp, 0x10
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x644], eax
mov eax, dword [0x1003ab5c]
push eax
push str._sSoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
lea ecx, [ebp - 0x618]
push ecx
call fcn.10001260
add esp, 0xc
lea edx, [ebp - 0x620]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x618]
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x654], eax
cmp dword [ebp - 0x654], 0
je 0x10007dd6
mov eax, 1
jmp 0x10007eaa
mov dword [ebp - 0x61c], 0x104
lea ecx, [ebp - 0x61c]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0
push 0
push str.Startup
mov eax, dword [ebp - 0x620]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x65c], eax
mov ecx, dword [ebp - 0x620]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x218]
push eax
push str._s_s.lnk
lea ecx, [ebp - 0x114]
push ecx
call fcn.10001260
add esp, 0x10
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x63c], eax
cmp dword [ebp - 0x63c], 0xffffffff
je 0x10007e5d
mov eax, dword [ebp - 0x63c]
and eax, 0x10
je 0x10007e9a
cmp dword [ebp - 0x640], 0xffffffff
je 0x10007e71
mov ecx, dword [ebp - 0x640]
and ecx, 0x10
je 0x10007e9a
cmp dword [ebp - 0x644], 0xffffffff
je 0x10007e85
mov edx, dword [ebp - 0x644]
and edx, 0x10
je 0x10007e9a
call fcn.100048d0
test eax, eax
jne 0x10007e9a
mov dword [ebp - 0x648], 0
jmp 0x10007ea4
mov dword [ebp - 0x648], 1
mov eax, dword [ebp - 0x648]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cf0a
mov esp, ebp
pop ebp
ret