Function at 0x452916
Capabilities:
Create directory
Get common file path
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [0x46700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
inc edi
mov esi, ecx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], edi
call fcn.0044fd78
test eax, eax
jne 0x45294c
mov eax, 0x80004005
jmp 0x452b17
mov ecx, esi
call fcn.0044fd78
cmp dword [eax + 0xac], 0
je 0x452963
xor eax, eax
jmp 0x452b17
mov ecx, esi
call fcn.0044fd78
cmp dword [eax + 0x28], 0
je 0x452b15
mov ebx, 0x401424
mov ecx, esi
mov edx, ebx
call fcn.0044fd78
mov eax, dword [eax + 0x28]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x4529ab
test cx, cx
je 0x4529a7
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x4529ab
add eax, 4
add edx, 4
test cx, cx
jne 0x452985
xor eax, eax
jmp 0x4529b0
sbb eax, eax
sbb eax, reloc.ADVAPI32.dll_TraceMessage
test eax, eax
je 0x452b15
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0
push 0
push 0x801c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x452b15
xor eax, eax
lea ecx, reloc.ADVAPI32.dll_TraceMessage
mov dword [ebp - 0x654], 0x42178c
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov dword [ebp - 0x640], 0x42524c
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
call fcn.004636d2
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push eax
lea edi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0045ca86
test eax, eax
js 0x452af9
mov ecx, esi
call fcn.0044fd78
mov eax, dword [eax]
test eax, eax
jne 0x452a3a
mov eax, ebx
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x4215d0
mov eax, 0x208
lea ecx, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c99c
add esp, 0xc
test eax, eax
js 0x452af9
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call edi
mov ecx, esi
call fcn.0044fd78
mov eax, dword [eax]
test eax, eax
jne 0x452a82
mov eax, ebx
push dword [ebp - 0x630]
lea ecx, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x421610
mov eax, 0x208
call fcn.0042c99c
add esp, 0x10
test eax, eax
js 0x452af9
push 0
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call edi
test eax, eax
jne 0x452b26
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x452aca
push 0x57
pop edi
cmp edi, 0xb7
je 0x452b26
lea edx, reloc.ADVAPI32.dll_TraceMessage
call fcn.00440b2f
test eax, eax
jne 0x452b26
push edi
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x421738
push 2
pop esi
call fcn.00440126
add esp, 0xc
mov edi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
lea eax, reloc.ADVAPI32.dll_TraceMessage
call fcn.00463afc
lea ecx, reloc.ADVAPI32.dll_TraceMessage
call fcn.0044eb3c
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004655f1
leave
ret
push 0x421650
mov eax, 0x208
lea edi, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c924
test eax, eax
js 0x452af9
mov ecx, esi
call fcn.0044fd78
mov eax, dword [eax + 0x28]
push eax
mov ecx, edi
mov edx, esi
call fcn.00451b51
mov edi, eax
test edi, edi
js 0x452c10
mov ecx, esi
call fcn.0044fd78
cmp dword [eax], 0
je 0x452b6b
mov ebx, dword [eax]
push ebx
push 0x421678
mov eax, 0x208
lea ecx, reloc.ADVAPI32.dll_TraceMessage
call fcn.0042c99c
pop ecx
pop ecx
test eax, eax
js 0x452bfa
xor ebx, ebx
push ebx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push ebx
push 2
push ebx
push ebx
push ebx
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x80000001
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x452bfa
lea ecx, reloc.ADVAPI32.dll_TraceMessage
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x452bbc
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 1
push ebx
push 0x4216f4
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call fcn.0044fd78
mov dword [eax + 0xac], 1
jmp 0x452aff
push edi
push 0x42170c
push 2
pop esi
call fcn.00440126
pop ecx
pop ecx
jmp 0x452aff