Function at 0x1000d316
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Link many functions at runtime
Move file
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8ec
mov eax, dword [0x1001b100]
xor eax, esp
mov dword [esp + 0x8e8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x20], ecx
xor ecx, ecx
mov dword [esp + 0x10], edx
push eax
push 0x20019
push ecx
push 0x1000231c
push 0x80000002
mov esi, ecx
mov dword [esp + 0x30], ecx
mov edi, ecx
mov dword [esp + 0x28], ecx
mov ebx, ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1000d387
push eax
push eax
push eax
push eax
push 0x10002340
push dword [esp + 0x28]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x14], ebx
je 0x1000d397
push dword [esp + 0x14]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp dword [esp + 0x18], ebx
je 0x1000d8c3
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x3c8]
push 0x104
push eax
call dword [0x1001c2fc]
call dword [esp + 0x28]
test eax, eax
jne 0x1000d3cd
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
jmp 0x1000d8c3
push 0xf7
lea eax, [esp + 0x3cc]
push eax
lea eax, [esp + 0x2c8]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_strncpy_s]
push 0x100022c4
lea eax, [esp + 0x2d4]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_strcat_s]
push 0xf5
push dword [esp + 0x30]
lea eax, [esp + 0x80c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_strncpy_s]
push 0x100022b4
lea eax, [esp + 0x818]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_strcat_s]
push 0xf8
lea eax, [esp + 0x404]
push eax
lea eax, [esp + 0x510]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_strncpy_s]
add esp, 0x48
lea eax, [esp + 0x4d0]
push 0x10002300
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_strcat_s]
push 0xf5
lea eax, [esp + 0x3d8]
push eax
lea eax, [esp + 0x5ec]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_strncpy_s]
push 0x1000230c
lea eax, [esp + 0x5f8]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_strcat_s]
push 0xf6
lea eax, [esp + 0x3f4]
push eax
lea eax, [esp + 0x1e8]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_strncpy_s]
push 0x100022f0
lea eax, [esp + 0x1f4]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_strcat_s]
add esp, 0x44
lea eax, [esp + 0x3c8]
push 0xf5
push eax
lea eax, [esp + 0x6e8]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_strncpy_s]
add esp, 0x10
lea eax, [esp + 0x2c0]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesA]
mov dword [esp + 0x14], 1
cmp eax, 0xffffffff
je 0x1000d66b
lea eax, [esp + 0x2c0]
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x1000d669
push 2
pop edi
push 0x1000234c
push ebx
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
test eax, eax
je 0x1000d557
xor edi, edi
inc edi
push 0x10002360
push ebx
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
test eax, eax
je 0x1000d56a
push 3
pop edi
push 0x10002370
push ebx
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
test eax, eax
je 0x1000d57d
push 4
pop edi
push 0x10002388
push ebx
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
test eax, eax
je 0x1000d592
xor eax, eax
inc eax
jmp 0x1000d594
mov eax, esi
push 0x10002394
push ebx
mov dword [esp + 0x2c], eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
test eax, eax
je 0x1000d5ad
xor eax, eax
inc eax
jmp 0x1000d5af
mov eax, esi
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
mov ebx, dword [esp + 0x24]
mov ecx, edi
mov eax, dword [esp + 0x1c]
cmp edi, 3
je 0x1000d5d2
mov dword [esp + 0x1c], eax
cmp ecx, 4
jne 0x1000d617
push dword [edi*4 + 0x10001190]
lea eax, [esp + 0x6e4]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_strcat_s]
add esp, 0xc
test eax, eax
je 0x1000d3c0
push 0
lea eax, [esp + 0x6e4]
push eax
lea eax, [esp + 0x2c8]
push eax
call dword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_CopyFileA]
test eax, eax
je 0x1000d3c0
cmp edi, 2
jne 0x1000d66b
lea eax, [esp + 0x1b8]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileA]
lea eax, [esp + 0x1b8]
push eax
lea eax, [esp + 0x2c4]
push eax
call dword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_MoveFileA]
test eax, eax
je 0x1000d3c0
lea eax, [esp + 0x4d0]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileA]
lea eax, [esp + 0x5d8]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileA]
jmp 0x1000d87a
mov ebx, esi
push 0x4000
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x4d8]
push eax
call dword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_OpenFile]
cmp eax, 0xffffffff
je 0x1000d6b4
lea eax, [esp + 0x1b8]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileA]
lea eax, [esp + 0x1b8]
push eax
lea eax, [esp + 0x4d4]
push eax
call dword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_MoveFileA]
test eax, eax
je 0x1000d3c0
push 0x104
lea eax, [esp + 0xb4]
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push 0x20019
push 0
push 0x100023a0
push 0x80000002
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x1000d799
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x104
push eax
lea eax, [esp + 0xb4]
push eax
lea eax, [esp + 0x20]
push eax
push esi
push 0x100023d4
push dword [esp + 0x34]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x1000d787
cmp dword [esp + 0x18], 1
jne 0x1000d787
push 0x100023e0
lea eax, [esp + 0xb4]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_strcat_s]
add esp, 0xc
call fcn.1000acb1
test eax, eax
mov eax, 0x100023f8
jne 0x1000d756
mov eax, 0x100023fc
push eax
lea eax, [esp + 0xb4]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_strcat_s]
push 0x100022c4
lea eax, [esp + 0xc0]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_strcat_s]
add esp, 0x18
jmp 0x1000d78f
mov byte [esp + 0xb0], 0
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp byte [esp + 0xb0], 0
je 0x1000d831
push 0x4000
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0xb8]
push eax
call dword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_OpenFile]
cmp eax, 0xffffffff
je 0x1000d831
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_LoadLibraryA]
mov dword [esp + 0x18], eax
test eax, eax
je 0x1000d7ee
push 0x1000234c
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x1000d7f7
and dword [esp + 0x14], 0
test eax, eax
je 0x1000d805
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
cmp dword [esp + 0x14], 0
jne 0x1000d831
lea eax, [esp + 0x1b8]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileA]
lea eax, [esp + 0x1b8]
push eax
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_MoveFileA]
test eax, eax
je 0x1000d3c0
push 0x4000
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x5e0]
push eax
call dword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_OpenFile]
cmp eax, 0xffffffff
je 0x1000d87a
lea eax, [esp + 0x1b8]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileA]
lea eax, [esp + 0x1b8]
push eax
lea eax, [esp + 0x5dc]
push eax
call dword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_MoveFileA]
test eax, eax
je 0x1000d3c0
push 0
lea eax, [esp + 0x2c4]
push eax
lea eax, [esp + 0x7f0]
push eax
call dword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_CopyFileA]
test eax, eax
je 0x1000d3c0
cmp edi, 3
jne 0x1000d8a6
mov ecx, 0x10002408
jmp 0x1000d8b0
cmp edi, 4
jne 0x1000d8c3
mov ecx, 0x10002410
lea eax, [esp + 0x6e0]
mov edx, ebx
push eax
push dword [esp + 0x20]
call fcn.1000d18c
mov ecx, dword [esp + 0x8f4]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100174b0
mov esp, ebp
pop ebp
ret