Function at 0x411b00
Capabilities:
Delete file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4e7018]
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 str._temp__vnetlib.tmp
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x104
ja 0x411d7f
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 0x411b9e
push eax
push esi
push str.CopyRegistryTree:_couldnt_open__S:__x
push 1
call fcn.004439a0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
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 0x411bf9
push eax
push edi
push str.CopyRegistryTree:_couldnt_open_create__S:__x
push 1
call fcn.004439a0
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.00401bf1
mov esp, ebp
pop ebp
ret
call fcn.0041aef0
test eax, eax
je 0x411ce0
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x411c32
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CopyRegistryTree:_failed_to_load_advapi32.dll:__08x
push 1
call fcn.004439a0
add esp, 0xc
jmp 0x411d47
push str.RegDeleteTreeW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x411c5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CopyRegistryTree:_failed_to_load_RegDeleteTreeW:__08x
push 1
call fcn.004439a0
add esp, 0xc
jmp 0x411d47
push str.RegCopyTreeW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x411c8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CopyRegistryTree:_failed_to_load_RegCopyTreeW:__08x
push 1
call fcn.004439a0
add esp, 0xc
jmp 0x411d47
push 0
push dword [ebp - 0x218]
mov ecx, edi
call dword [0x492480]
call edi
test eax, eax
je 0x411cb2
push eax
push str.CopyRegistryTree:_RegDeleteTreeW_failed:_0x_08x
push 4
call fcn.004439a0
add esp, 0xc
push dword [ebp - 0x218]
mov ecx, esi
push 0
push dword [ebp - 0x214]
call dword [0x492480]
call esi
test eax, eax
je 0x411d42
push eax
push str.CopyRegistryTree:_RegCopyTreeW_failed:_0x_08x
push 1
call fcn.004439a0
add esp, 0xc
jmp 0x411d47
push 0
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call fcn.004129c0
add esp, 0xc
test eax, eax
lea eax, [ebp - 0x210]
jne 0x411d14
push eax
push esi
push str.CopyRegistryTree:_couldnt_export__S_____S
push 1
call fcn.004439a0
add esp, 0x10
jmp 0x411d47
push 0xc
push eax
push dword [ebp - 0x218]
call fcn.00412830
add esp, 0xc
test eax, eax
jne 0x411d42
push edi
lea eax, [ebp - 0x210]
push eax
push str.CopyRegistryTree:_couldnt_import__S_____S
push 1
call fcn.004439a0
add esp, 0x10
jmp 0x411d47
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.00401bf1
mov esp, ebp
pop ebp
ret
push str.CopyRegistryTree:_couldnt_construct_temp_file_path
push 1
call fcn.004439a0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret