Function at 0x3479fe6e
Capabilities:
Set registry value

Disassembly:
sub esp, 0x22c
mov eax, dword [0x347765c8]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [esp + 0x238]
push ebx
mov ebx, dword [esp + 0x234]
push ebp
xor ebp, ebp
cmp dword [esp + 0x23c], 0x13
push esi
mov dword [esp + 0x14], ebx
mov esi, 0xffffb1d4
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
jne 0x3479fee0
cmp eax, ebp
je 0x3479feb9
cmp word [eax], bp
jne 0x3479fee0
push 2
lea eax, [esp + 0x14]
push eax
push 7
push ebp
push 0x34773714
push ebx
mov word [esp + 0x28], bp
call sub.advapi32.dll_RegSetValueExW
test eax, eax
jne 0x347a00b2
jmp 0x347a00b4
push 0x104
lea ecx, [esp + 0x30]
push ecx
push eax
call fcn.3477771c
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x3479fefa
sub eax, edx
sar eax, 1
push edi
lea edx, [eax + eax + 2]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
push ecx
lea edx, [esp + 0x30]
push edx
push ebx
mov dword [esp + 0x2c], ebp
call fcn.3479fd29
mov edi, dword [esp + 0x24]
cmp edi, 2
mov ecx, eax
mov dword [esp + 0x10], ecx
ja 0x3479ff3c
xor edi, edi
cmp ecx, ebp
mov ebp, dword [esp + 0x28]
jne 0x3479ffca
xor esi, esi
test edi, edi
jbe 0x3479ffca
mov eax, esi
shr eax, 1
lea edx, [ebp + eax*2]
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x3479ff5b
push 1
sub eax, ebx
lea ecx, [esp + 0x34]
push ecx
sar eax, 1
push edx
lea ebx, [eax + eax + 2]
call fcn.3477767d
test eax, eax
je 0x3479ff8b
add esi, ebx
cmp esi, edi
jb 0x3479ff4e
mov ebx, dword [esp + 0x18]
jmp 0x3479ffd2
cmp dword [esp + 0x244], 0x12
mov dword [esp + 0x1c], 1
je 0x347a0090
lea eax, [ebx + esi]
mov edx, edi
sub edx, eax
add edx, 2
shr eax, 1
push edx
lea eax, [ebp + eax*2]
shr esi, 1
push eax
lea ecx, [ebp + esi*2]
push ecx
call sub.msvcr80.dll_memcpy
add esp, 0xc
sub edi, ebx
mov ebx, dword [esp + 0x18]
jmp 0x3479ffd2
cmp ecx, 0xffffb1c6
je 0x3479ffdb
cmp edi, 2
mov ecx, dword [esp + 0x10]
ja 0x3479ffdd
xor edi, edi
mov eax, dword [esp + 0x244]
sub eax, 0x12
je 0x347a002a
sub eax, 1
jne 0x347a0098
xor esi, esi
cmp dword [esp + 0x1c], esi
jne 0x347a0007
mov dword [esp + 0x10], 0xfffffc15
jmp 0x347a0098
cmp word [ebp], si
jne 0x347a0010
push esi
jmp 0x347a0011
push edi
push ebp
push 7
push esi
push 0x34773714
push ebx
call sub.advapi32.dll_RegSetValueExW
test eax, eax
jne 0x347a0098
mov dword [esp + 0x10], esi
jmp 0x347a0098
cmp ecx, 0xffffb1c6
je 0x347a0036
test ecx, ecx
jne 0x347a0098
mov edx, dword [esp + 0x20]
lea esi, [edx + edi]
cmp esi, dword [esp + 0x2c]
jbe 0x347a0062
mov eax, dword [0x347efae8]
mov ecx, dword [eax + 0x210]
push esi
push ebp
call ecx
mov ebp, eax
test ebp, ebp
jne 0x347a0062
mov dword [esp + 0x10], 0xfffffc0d
jmp 0x347a0098
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x34]
shr edi, 1
push eax
lea ecx, [ebp + edi*2]
push ecx
call sub.msvcr80.dll_memcpy
add esp, 0xc
push esi
push ebp
push 7
push 0
push 0x34773714
push ebx
call sub.advapi32.dll_RegSetValueExW
test eax, eax
jne 0x347a0098
mov dword [esp + 0x10], 0
test ebp, ebp
pop edi
je 0x347a00ac
mov edx, dword [0x347efae8]
mov eax, dword [edx + 0x20c]
push ebp
call eax
mov eax, dword [esp + 0xc]
jmp 0x347a00b4
mov eax, esi
mov ecx, dword [esp + 0x234]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.347ea89f
add esp, 0x22c
ret 0x10