Function at 0x439549
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0x18
mov eax, 0x440c04
call fcn.0042f1fc
mov ebx, dword [ebp + 8]
cmp ebx, dword [0x478a40]
jne 0x43956a
mov eax, 0xa0
jmp 0x43986d
mov eax, dword [0x477358]
cmp eax, 0xffffffff
jne 0x43957b
movzx eax, byte [0x4779b0]
test eax, eax
jne 0x43986b
call fcn.00436e62
test eax, eax
jne 0x43986b
push 1
push ebx
call fcn.0043989f
test al, al
jne 0x43986b
xor edi, edi
mov esi, edi
mov dword [ebp - 0x1c], esi
lea ecx, [ebp + 0xb]
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
call fcn.0043a1a7
movzx eax, word [ebx + 0xc]
shr eax, 1
push edi
and eax, 0x10
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 8]
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], edi
call fcn.00439ab5
test eax, eax
jne 0x439754
jmp 0x4395e9
xor edi, edi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4395f8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push edi
lea ecx, [ebp - 0x20]
push ecx
push edi
push dword [ebx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x439652
cmp dword [ebp - 0x14], eax
je 0x439652
push dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.004359dd
test al, al
jne 0x43962d
mov esi, dword [ebp - 0x1c]
push 8
pop edi
jmp 0x439652
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x439639
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push ecx
push esi
lea ecx, [ebp - 0x20]
push ecx
push 0
push dword [ebx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, edi
call fcn.0043999e
test eax, eax
je 0x4396b4
push 0x1c0497
xor edi, edi
push edi
call fcn.00429daf
mov eax, dword [ebx + 8]
movzx eax, word [eax + 6]
push dword [ebp - 0x10]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x478a48
mov dword [eax + 0x4772f8], edi
call fcn.00439133
movzx eax, word [ebx + 0xc]
shr eax, 1
push edi
and eax, 0x10
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 8]
mov dword [ebp - 0x10], edi
call fcn.00439ab5
mov edi, eax
test edi, edi
je 0x4395e7
jmp 0x4396c1
push dword [ebp - 0x10]
mov ecx, 0x478a48
call fcn.00439097
test edi, edi
jne 0x439752
test esi, esi
je 0x439752
movzx eax, word [ebx + 0xc]
and eax, 0xf
cmp dword [ebp - 0x20], eax
jne 0x4397b9
dec eax
cmp eax, 1
ja 0x43972b
mov eax, dword [ebp - 0x14]
shr eax, 1
xor ecx, ecx
mov word [esi + eax*2 - 2], cx
mov ecx, dword [ebp + 0xc]
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x439721
test dx, dx
je 0x43971a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x439721
add eax, 4
add ecx, 4
test dx, dx
jne 0x4396f8
xor eax, eax
jmp 0x4397b1
sbb eax, eax
sbb eax, 0xffffffff
jmp 0x4397b1
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x14], eax
jne 0x4397b9
push dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
push eax
push esi
call sub.MSVCR100.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x4397b9
xor edi, edi
jmp 0x439854
xor edi, edi
mov ecx, dword [ebx + 4]
cmp ecx, 0xcccccccc
je 0x4397b9
movzx eax, word [ebx + 0xc]
and eax, 0xf
jle 0x439794
cmp eax, 2
jle 0x43978f
cmp eax, 4
je 0x439788
cmp eax, 0xb
jne 0x439794
mov eax, dword [ebp + 0xc]
cmp dword [eax], ecx
jne 0x4397b9
cmp dword [eax + 4], edi
jne 0x4397b9
jmp 0x439854
mov eax, dword [ebp + 0xc]
cmp dword [eax], ecx
jmp 0x439781
cmp ecx, dword [ebp + 0xc]
jmp 0x439781
push 0x1c0499
call fcn.00429d5a
mov eax, dword [ebp + 0x10]
push eax
push dword [ebx + 4]
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR100.dll_memcmp
add esp, 0xc
test eax, eax
je 0x439854
push 0
jmp 0x43981e
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x4397c9
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push dword [ebp + 0x10]
movzx eax, word [ebx + 0xc]
push dword [ebp + 0xc]
and eax, 0xf
push eax
push 0
push dword [ebx]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
call fcn.0043999e
test eax, eax
je 0x439847
push 0x1c049a
xor edi, edi
push edi
call fcn.00429daf
mov eax, dword [ebx + 8]
movzx eax, word [eax + 6]
push dword [ebp - 0x10]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x478a48
mov dword [eax + 0x4772f8], edi
call fcn.00439133
mov dword [ebp - 0x10], edi
push edi
movzx eax, word [ebx + 0xc]
and eax, 0x20
or eax, 8
shr eax, 1
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebx + 8]
call fcn.00439ab5
mov edi, eax
test edi, edi
je 0x4397bd
jmp 0x439854
push dword [ebp - 0x10]
mov ecx, 0x478a48
call fcn.00439097
lea ecx, [ebp + 0xb]
call fcn.0043a1c8
test esi, esi
je 0x439867
push esi
call fcn.0042a11a
pop ecx
mov eax, edi
jmp 0x43986d
xor eax, eax
call fcn.0042f29b
ret 0xc