Function at 0x10007a70
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 [0x1003702c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x10039b60
push str.C:Users_sAppDataRoamingMicrosoftWindowsStart_MenuProgramsStartup
lea eax, [ebp - 0x418]
push eax
call fcn.10001260
add esp, 0xc
mov ecx, dword [str.One__Drive]
mov dword [ebp - 0x10], ecx
mov edx, dword [0x10033e48]
mov dword [ebp - 0xc], edx
mov ax, word [0x10033e4c]
mov word [ebp - 8], ax
mov cl, byte [0x10033e4e]
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 0x10007ae7
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 0x10007b3f
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 0x10007b8a
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 0x10033e50
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.1000ecb0
add esp, 0xc
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x418]
push eax
push str._s_s.vt
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 [0x10039b5c]
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 0x10007c96
mov eax, 1
jmp 0x10007d6a
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 0x10007d1d
mov eax, dword [ebp - 0x63c]
and eax, 0x10
je 0x10007d5a
cmp dword [ebp - 0x640], 0xffffffff
je 0x10007d31
mov ecx, dword [ebp - 0x640]
and ecx, 0x10
je 0x10007d5a
cmp dword [ebp - 0x644], 0xffffffff
je 0x10007d45
mov edx, dword [ebp - 0x644]
and edx, 0x10
je 0x10007d5a
call fcn.10004880
test eax, eax
jne 0x10007d5a
mov dword [ebp - 0x648], 0
jmp 0x10007d64
mov dword [ebp - 0x648], 1
mov eax, dword [ebp - 0x648]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000cdca
mov esp, ebp
pop ebp
ret