Function at 0x4036d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1274
call fcn.00405340
mov eax, dword [0x4140d0]
xor eax, esp
mov dword [esp + 0x1270], eax
mov eax, dword [esp + 0x1278]
push ebx
push ebp
push esi
push edi
mov ecx, 0x13
mov esi, str.44387533_0881_42BC_BED0_EE83FEAD406B
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x28]
xor ebp, ebp
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebp
movsw word es:[edi], word [esi]
call fcn.004030e0
add esp, 4
xor eax, eax
mov edi, edi
movzx ecx, word [eax + str.INSTALLER]
mov word [esp + eax + 0x78], cx
add eax, 2
test cx, cx
jne 0x403720
lea edi, [esp + 0x78]
add edi, 0xfffffffe
jmp 0x403740
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403740
mov edx, dword [0x4103e4]
mov dword [edi], edx
lea edi, [esp + 0x78]
add edi, 0xfffffffe
jmp 0x403760
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403760
mov ecx, 6
mov esi, str.UpgradeCodes
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [esp + 0x78]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403781
lea eax, [esp + 0x28]
mov dword [edi], edx
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403795
lea edi, [esp + 0x78]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4037b0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x7c]
push eax
and ecx, 3
push 0x80000000
rep movsb byte es:[edi], byte [esi]
call ebx
test eax, eax
jne 0x403914
mov eax, 0x400
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
lea edx, [esp + 0xa84]
push edx
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x294]
push edx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x403901
lea ecx, [esp + 0x280]
push ecx
call fcn.00402d10
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call ebp
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + 0x410460]
mov word [esp + eax + 0x78], cx
add eax, 2
test cx, cx
jne 0x403850
lea edi, [esp + 0x78]
add edi, 0xfffffffe
jmp 0x403870
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403870
mov eax, dword [0x4103e4]
mov dword [edi], eax
lea eax, [esp + 0x280]
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403890
lea edi, [esp + 0x78]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4038a4
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x7c]
push edx
push 0x80000002
call ebx
test eax, eax
jne 0x403901
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x280]
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4038e4
mov edx, dword [esp + 0x10]
push edx
mov esi, 1
call ebp
jmp 0x403905
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x403910
push eax
call ebp
mov eax, esi
jmp 0x403916
mov eax, ebp
mov ecx, dword [esp + 0x1280]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404dbf
add esp, 0x1274
ret