Function at 0x432aca
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x864
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
inc edi
mov edx, dword [esi]
mov dword [ebp - 0x82c], edi
test edx, edx
je 0x432af7
mov eax, edx
jmp 0x432afc
call fcn.00430e7b
test eax, eax
jne 0x432b0a
mov eax, 0x80004005
jmp 0x432e89
test edx, edx
je 0x432b12
mov eax, edx
jmp 0x432b19
mov ecx, esi
call fcn.00430e7b
xor ebx, ebx
mov dword [ebp - 0x830], ebx
cmp dword [eax + 0xac], ebx
je 0x432b30
xor eax, eax
jmp 0x432e89
test edx, edx
je 0x432b38
mov eax, edx
jmp 0x432b3f
mov ecx, esi
call fcn.00430e7b
cmp dword [eax + 0x28], ebx
je 0x432e87
test edx, edx
jne 0x432b55
mov ecx, esi
call fcn.00430e7b
mov edx, eax
mov eax, dword [edx + 0x28]
mov ebx, 0x4015c0
mov ecx, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x432b87
test dx, dx
je 0x432b81
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x432b87
add eax, 4
add ecx, 4
test dx, dx
jne 0x432b5f
xor ecx, ecx
mov eax, ecx
jmp 0x432b8e
sbb eax, eax
or eax, 1
xor ecx, ecx
test eax, eax
je 0x432e87
lea eax, [ebp - 0x620]
push eax
push ecx
push ecx
push 0x801c
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x432e87
xor eax, eax
mov dword [ebp - 0x860], 0x401094
lea ecx, [ebp - 0x83c]
mov dword [ebp - 0x85c], eax
mov dword [ebp - 0x84c], 0x401090
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x844], eax
mov dword [ebp - 0x840], eax
call fcn.0043fdcb
lea eax, [ebp - 0x83c]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push eax
call fcn.0043ef91
test eax, eax
js 0x432e71
mov eax, dword [esi]
test eax, eax
jne 0x432c14
mov ecx, esi
call fcn.00430e7b
mov eax, dword [eax]
test eax, eax
jne 0x432c1c
mov eax, ebx
push eax
lea eax, [ebp - 0x620]
push eax
push 0x408580
lea eax, [ebp - 0x210]
push 0x208
push eax
call fcn.0040c0f9
add esp, 0x14
test eax, eax
js 0x432e71
xor eax, eax
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [esi]
test eax, eax
jne 0x432c62
mov ecx, esi
call fcn.0041fb3c
mov eax, dword [eax]
test eax, eax
jne 0x432c6a
mov eax, ebx
push dword [ebp - 0x83c]
push eax
lea eax, [ebp - 0x620]
push eax
push 0x4085c0
lea eax, [ebp - 0x210]
push 0x208
push eax
call fcn.0040c0f9
add esp, 0x18
test eax, eax
js 0x432e71
xor eax, eax
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x432d5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x432cc0
push 0x57
pop edi
cmp edi, 0xb7
je 0x432d58
lea eax, [ebp - 0x210]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x418]
call fcn.0041fb3c
test eax, eax
js 0x432d36
lea ecx, [ebp - 0x418]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x830]
jne 0x432cf0
sub ecx, edx
sar ecx, 1
je 0x432d20
cmp word [ebp + ecx*2 - 0x41a], 0x5c
jne 0x432d20
test ecx, ecx
je 0x432d20
xor eax, eax
mov word [ebp + ecx*2 - 0x41a], ax
jmp 0x432ce7
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x432d36
test al, 0x10
jne 0x432d58
push edi
lea eax, [ebp - 0x210]
push eax
push 0x4086e8
push 2
call fcn.0041ea5f
mov edi, dword [ebp - 0x82c]
add esp, 0x10
jmp 0x432e71
mov edi, dword [ebp - 0x82c]
push 0x408600
mov edx, 0x208
lea ecx, [ebp - 0x210]
call fcn.0040c07b
test eax, eax
js 0x432e71
mov eax, dword [esi]
test eax, eax
jne 0x432d88
mov ecx, esi
call fcn.00430e7b
lea ecx, [ebp - 0x210]
push ecx
push dword [eax + 0x28]
mov ecx, esi
call fcn.00431a7c
mov edi, eax
test edi, edi
js 0x432e61
mov eax, dword [esi]
test eax, eax
jne 0x432db0
mov ecx, esi
call fcn.00430e7b
cmp dword [eax], 0
je 0x432db7
mov ebx, dword [eax]
push ebx
push 0x408628
lea eax, [ebp - 0x828]
push 0x208
push eax
call fcn.0040c0f9
add esp, 0x10
test eax, eax
js 0x432e48
xor ebx, ebx
lea eax, [ebp - 0x82c]
push ebx
push eax
push ebx
push 2
push ebx
push ebx
push ebx
lea eax, [ebp - 0x828]
mov dword [ebp - 0x82c], ebx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x432e48
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x432e0a
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push ebx
push 0x4086a4
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
test eax, eax
jne 0x432e55
mov ecx, esi
call fcn.00430e7b
mov dword [eax + 0xac], 1
jmp 0x432e71
push edi
push 0x4086bc
push 2
call fcn.0041ea5f
add esp, 0xc
lea ecx, [ebp - 0x83c]
call fcn.00440156
lea ecx, [ebp - 0x860]
call fcn.0042da66
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret