Function at 0x45486d
Capabilities:
Create directory
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
mov edi, 0x80004005
test eax, eax
jne 0x4548af
lea eax, [edi - 2]
jmp 0x454ab8
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 1
push ebx
push 0x41d2b8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x454ab6
mov eax, 0x208
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 1
cmp esi, eax
jbe 0x4548f0
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push ebx
push 0x422268
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x4549a0
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 1
je 0x454933
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 2
jne 0x4549a0
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 2
jne 0x45496b
push 0x104
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call ebx
test eax, eax
je 0x4549a0
lea edx, reloc.ADVAPI32.dll_TraceMessage
mov eax, 0x103
lea ecx, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042ca38
lea edx, reloc.ADVAPI32.dll_TraceMessage
call fcn.00440b2f
test eax, eax
je 0x454981
xor ebx, ebx
jmp 0x454a61
xor eax, eax
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edx, reloc.ADVAPI32.dll_TraceMessage
call fcn.00440b2f
test eax, eax
jne 0x45497a
push 0x104
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x454aaa
push 0x104
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call ebx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push 0x41d1e4
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
mov edx, eax
pop ecx
pop ecx
test edx, edx
je 0x454aaa
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x424]
jne 0x4549f2
sub ecx, ebx
sar ecx, 1
cmp ecx, 4
jbe 0x454aaa
xor eax, eax
mov word [edx + 4], ax
mov ebx, 0x104
push ebx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x26fc
push dword [0x4683ec]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x454aaa
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
mov eax, ebx
lea edi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c8f1
xor ebx, ebx
push ebx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, edi
call fcn.00440b2f
test eax, eax
je 0x454aa5
lea ecx, reloc.ADVAPI32.dll_TraceMessage
mov edi, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x454a6c
sub ecx, edx
sar ecx, 1
shr esi, 1
inc ecx
cmp esi, ecx
jbe 0x454a97
mov eax, esi
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
lea edx, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c88c
jmp 0x454aaa
mov edi, 0x8007007a
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x454aaa
mov edi, 0x80004005
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004655f1
leave
ret 4