Function at 0x4324c0
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 [0x4424f4]
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 0x4324ed
mov eax, edx
jmp 0x4324f2
call fcn.00430888
test eax, eax
jne 0x432500
mov eax, 0x80004005
jmp 0x43287b
test edx, edx
je 0x432508
mov eax, edx
jmp 0x43250f
mov ecx, esi
call fcn.00430888
xor ebx, ebx
mov dword [ebp - 0x830], ebx
cmp dword [eax + 0xac], ebx
je 0x432526
xor eax, eax
jmp 0x43287b
test edx, edx
je 0x43252e
mov eax, edx
jmp 0x432535
mov ecx, esi
call fcn.00430888
cmp dword [eax + 0x28], ebx
je 0x432879
test edx, edx
jne 0x43254b
mov ecx, esi
call fcn.00430888
mov edx, eax
mov eax, dword [edx + 0x28]
mov ebx, 0x4015d0
mov ecx, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43257d
test dx, dx
je 0x432577
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43257d
add eax, 4
add ecx, 4
test dx, dx
jne 0x432555
xor ecx, ecx
mov eax, ecx
jmp 0x432584
sbb eax, eax
or eax, 1
xor ecx, ecx
test eax, eax
je 0x432879
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 0x432879
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.0043f3bf
lea eax, [ebp - 0x83c]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push eax
call fcn.0043e6fe
test eax, eax
js 0x432863
mov eax, dword [esi]
test eax, eax
jne 0x43260a
mov ecx, esi
call fcn.00430888
mov eax, dword [eax]
test eax, eax
jne 0x432612
mov eax, ebx
push eax
lea eax, [ebp - 0x620]
push eax
push 0x408590
lea eax, [ebp - 0x210]
push 0x208
push eax
call fcn.0040c125
add esp, 0x14
test eax, eax
js 0x432863
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 0x432658
mov ecx, esi
call fcn.00430888
mov eax, dword [eax]
test eax, eax
jne 0x432660
mov eax, ebx
push dword [ebp - 0x83c]
push eax
lea eax, [ebp - 0x620]
push eax
push 0x4085d0
lea eax, [ebp - 0x210]
push 0x208
push eax
call fcn.0040c125
add esp, 0x18
test eax, eax
js 0x432863
xor eax, eax
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x432750
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x4326b6
push 0x57
pop edi
cmp edi, 0xb7
je 0x43274a
lea eax, [ebp - 0x210]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x418]
call fcn.0040c040
test eax, eax
js 0x432728
lea ecx, [ebp - 0x418]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x830]
jne 0x4326e6
sub ecx, edx
sar ecx, 1
je 0x432712
cmp word [ebp + ecx*2 - 0x41a], 0x5c
jne 0x432712
xor eax, eax
mov word [ebp + ecx*2 - 0x41a], ax
jmp 0x4326dd
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x432728
test al, 0x10
jne 0x43274a
push edi
lea eax, [ebp - 0x210]
push eax
push 0x4086f8
push 2
call fcn.0041e83a
mov edi, dword [ebp - 0x82c]
add esp, 0x10
jmp 0x432863
mov edi, dword [ebp - 0x82c]
push 0x408610
mov edx, 0x208
lea ecx, [ebp - 0x210]
call fcn.0040c0a9
test eax, eax
js 0x432863
mov eax, dword [esi]
test eax, eax
jne 0x43277a
mov ecx, esi
call fcn.00430888
lea ecx, [ebp - 0x210]
push ecx
push dword [eax + 0x28]
mov ecx, esi
call fcn.00431485
mov edi, eax
test edi, edi
js 0x432853
mov eax, dword [esi]
test eax, eax
jne 0x4327a2
mov ecx, esi
call fcn.00430888
cmp dword [eax], 0
je 0x4327a9
mov ebx, dword [eax]
push ebx
push 0x408638
lea eax, [ebp - 0x828]
push 0x208
push eax
call fcn.0040c125
add esp, 0x10
test eax, eax
js 0x43283a
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 0x43283a
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4327fc
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push ebx
push 0x4086b4
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 0x432847
mov ecx, esi
call fcn.00430888
mov dword [eax + 0xac], 1
jmp 0x432863
push edi
push 0x4086cc
push 2
call fcn.0041e83a
add esp, 0xc
lea ecx, [ebp - 0x83c]
call fcn.0043f743
lea ecx, [ebp - 0x860]
call fcn.0042d513
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441130
leave
ret