Function at 0x41344e
Capabilities:
Delete registry key
Get common file path
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x860
mov eax, dword [0x418010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x834], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x848], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x830], eax
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x61c], ax
xor ebx, ebx
lea eax, [ebp - 0x61a]
push ebx
push eax
mov dword [ebp - 0x840], esi
call fcn.004158b4
xor eax, eax
push edi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push ebx
push eax
call fcn.004158b4
add esp, 0x18
call dword [0x401178]
push eax
push esi
push 0x402a1c
lea eax, [ebp - 0x824]
push 0x103
push eax
call fcn.00412d79
add esp, 0x14
lea eax, [ebp - 0x61c]
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathW]
test eax, eax
jl 0x41378d
lea eax, [ebp - 0x825]
push eax
lea eax, [ebp - 0x826]
push eax
push esi
mov byte [ebp - 0x826], bl
mov byte [ebp - 0x825], bl
call fcn.004119b1
mov esi, 0x104
test eax, eax
jl 0x413700
cmp byte [ebp - 0x825], bl
je 0x413700
lea eax, [ebp - 0x82c]
push eax
push 0x20006
push ebx
lea eax, [ebp - 0x824]
push eax
push 0x80000001
mov dword [ebp - 0x82c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41360b
push 4
lea eax, [ebp - 0x844]
push eax
push 4
push ebx
push dword [0x418024]
mov dword [ebp - 0x844], 1
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp - 0x838]
push eax
push 4
push ebx
push dword [0x418040]
mov dword [ebp - 0x838], 2
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x860]
push eax
call dword [0x401118]
lea eax, [ebp - 0x850]
push eax
lea eax, [ebp - 0x860]
push eax
call dword [0x401114]
test eax, eax
je 0x4135ff
push 8
lea eax, [ebp - 0x850]
push eax
push 0xb
push ebx
push dword [0x418044]
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x82c]
call dword [entry0]
mov eax, dword [ebp - 0x830]
cmp eax, ebx
je 0x413631
xor ecx, ecx
cmp cx, word [eax]
je 0x413631
push eax
call dword [0x401148]
cmp eax, 0xffffffff
sete al
cmp al, bl
je 0x4136d4
xor eax, eax
push edi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.004158b4
add esp, 0xc
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x840]
call fcn.00411d5c
push 0x402a14
push 0x406fc8
lea eax, [ebp - 0x20c]
push eax
push 0x402a00
lea eax, [ebp - 0x414]
push 0x103
push eax
call dword [0x401260]
add esp, 0x18
push 2
push 0x15
push ebx
call fcn.00413cdc
push ebx
push 0x1b
push ebx
call fcn.00413cdc
push 1
push 0xf
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.00413cd0
lea eax, [ebp - 0x414]
push eax
call dword [0x401148]
cmp eax, 0xffffffff
je 0x413712
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00411e39
jmp 0x4136eb
push dword [ebp - 0x830]
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0040c44f
test eax, eax
jl 0x413712
lea eax, [ebp - 0x414]
push eax
push esi
push dword [ebp - 0x834]
call fcn.004133e7
jmp 0x413712
lea eax, [ebp - 0x824]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x848]
lea eax, [ebp - 0x61c]
push eax
call fcn.0041312f
cmp al, 1
jne 0x41378d
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00412d9d
add esp, 0xc
lea eax, [ebp - 0x61c]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0040c44f
lea eax, [ebp - 0x61c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x413756
sub eax, edx
sar eax, 1
push 0x402910
mov ecx, esi
sub ecx, eax
push ecx
lea eax, [ebp - 0x20c]
push eax
call fcn.0040db61
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x83c]
call fcn.004133e7
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412315
leave
ret 0x14