Function at 0x4154f0
Capabilities:
Delete file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4ed018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x210]
push 0x105
push eax
push 0x4a236c
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x104
ja 0x41576f
lea eax, [ebp - 0x214]
push eax
push 0xf003f
push ebx
push esi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41558e
push eax
push esi
push str.CopyRegistryTree:_couldnt_open__S:__x
push 1
call fcn.00446b80
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
push 0xf003f
push 0
push 0
push 0
push edi
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4155e9
push eax
push edi
push str.CopyRegistryTree:_couldnt_open_create__S:__x
push 1
call fcn.00446b80
add esp, 0x10
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
call fcn.0041ebd0
test eax, eax
je 0x4156d0
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x415622
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CopyRegistryTree:_failed_to_load_advapi32.dll:__08x
push 1
call fcn.00446b80
add esp, 0xc
jmp 0x415737
push str.RegDeleteTreeW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x41564f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CopyRegistryTree:_failed_to_load_RegDeleteTreeW:__08x
push 1
call fcn.00446b80
add esp, 0xc
jmp 0x415737
push str.RegCopyTreeW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x41567c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CopyRegistryTree:_failed_to_load_RegCopyTreeW:__08x
push 1
call fcn.00446b80
add esp, 0xc
jmp 0x415737
push 0
push dword [ebp - 0x218]
mov ecx, edi
call dword [0x499490]
call edi
test eax, eax
je 0x4156a2
push eax
push str.CopyRegistryTree:_RegDeleteTreeW_failed:_0x_08x
push 4
call fcn.00446b80
add esp, 0xc
push dword [ebp - 0x218]
mov ecx, esi
push 0
push dword [ebp - 0x214]
call dword [0x499490]
call esi
test eax, eax
je 0x415732
push eax
push str.CopyRegistryTree:_RegCopyTreeW_failed:_0x_08x
push 1
call fcn.00446b80
add esp, 0xc
jmp 0x415737
push 0
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call fcn.004163a0
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x210]
jne 0x415704
push eax
push esi
push str.CopyRegistryTree:_couldnt_export__S_____S
push 1
call fcn.00446b80
add esp, 0x10
jmp 0x415737
push 0xc
push eax
push dword [ebp - 0x218]
call fcn.00416220
add esp, 0xc
test eax, eax
jne 0x415732
push edi
lea eax, [ebp - 0x210]
push eax
push str.CopyRegistryTree:_couldnt_import__S_____S
push 1
call fcn.00446b80
add esp, 0x10
jmp 0x415737
mov ebx, 1
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push 0x4a2394
push 1
call fcn.00446b80
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.00401bd5
mov esp, ebp
pop ebp
ret