Function at 0x404440
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x23c]
sub esp, 0x25c
mov dword [ebp - 0x244], edx
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], 0x80000000
call esi
sub esp, 0xc
test eax, eax
je 0x404480
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x240]
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x238]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x23c]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueW]
mov dword [ebp - 0x240], 0x40
mov dword [ebp - 0x250], eax
call eax
sub esp, 0x10
mov edi, eax
mov eax, dword [ebp - 0x23c]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x24c], eax
call eax
test edi, edi
push ecx
jne 0x404476
test byte [0x40708c], 8
jne 0x4045d8
cmp word [ebp - 0x238], 0
lea edx, [ebp - 0x238]
je 0x404509
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x404500
xor eax, eax
mov ecx, 0x5c
jmp 0x40451f
mov cx, word [eax + str.ScriptEngine]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404518
lea eax, [ebp - 0x238]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], 0x80000000
call esi
sub esp, 0xc
test eax, eax
jne 0x404476
lea eax, [ebp - 0x240]
lea ebx, [ebp - 0x1b8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x23c]
mov dword [esp], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x240], 0x40
call eax
sub esp, 0x10
mov esi, eax
mov eax, dword [ebp - 0x23c]
mov dword [esp], eax
mov eax, dword [ebp - 0x24c]
call eax
test esi, esi
push edi
jne 0x404476
test byte [0x40708c], 8
jne 0x4047e0
mov eax, dword [ebp - 0x244]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
xor eax, 0xffffffff
shr eax, 0x1f
push edx
push edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x238]
shr eax, 0x10
je 0x4047c0
lea eax, [ebp - 0x238]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
test eax, eax
push edx
push edx
jne 0x4046c2
mov eax, dword [ebp - 0x238]
test ax, ax
je 0x404935
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebp + edx*2 - 0x236], 0
jne 0x404620
lea edi, [ebp - 0x238]
mov dword [ebp - 0x254], esi
mov word [ebp - 0x138], 0x224c
lea ecx, [ebp - 0x136]
mov dword [ebp - 0x248], edx
mov esi, edi
jmp 0x40469d
cmp ax, 9
je 0x404708
cmp ax, 0xa
jne 0x404722
mov word [ecx], 0x6e5c
add ecx, 2
lea esi, [esi]
mov eax, dword [ebp - 0x248]
test eax, eax
lea edi, [eax - 1]
jle 0x404788
lea eax, [ebp - 0x16]
cmp ecx, eax
ja 0x404788
mov ax, word [esi]
mov dword [ebp - 0x248], edi
add esi, 2
cmp ax, 0xd
je 0x4046f8
jbe 0x404658
cmp ax, 0x22
je 0x404778
cmp ax, 0x5c
jne 0x404715
mov word [ecx], 0x5c5c
add ecx, 2
jmp 0x404678
mov eax, str._invalid_
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.fileid_is__s_n
mov dword [esp + 8], str.get_engine_clsid
mov dword [esp + 4], 0x40708c
mov dword [esp], 3
call fcn.00403d30
jmp 0x4044e9
mov word [ecx], 0x725c
add ecx, 2
jmp 0x404678
mov word [ecx], 0x745c
add ecx, 2
jmp 0x404678
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x4048a8
mov edi, eax
mov byte [ecx], 0x5c
shr di, 0xc
add ecx, 5
and edi, 0xffff
mov dl, byte [edi + str.0123456789abcdefset_host_properties]
mov edi, eax
shr di, 8
mov byte [ecx - 4], dl
and edi, 0xf
mov dl, byte [edi + str.0123456789abcdefset_host_properties]
mov edi, eax
shr di, 4
and eax, 0xf
and edi, 0xf
mov byte [ecx - 3], dl
mov al, byte [eax + str.0123456789abcdefset_host_properties]
mov dl, byte [edi + str.0123456789abcdefset_host_properties]
mov byte [ecx - 1], al
mov byte [ecx - 2], dl
jmp 0x404678
mov word [ecx], 0x225c
add ecx, 2
jmp 0x404678
mov esi, dword [ebp - 0x254]
mov byte [ecx], 0x22
test edi, edi
jle 0x40494b
lea eax, [ecx + 4]
mov word [ecx + 1], 0x2e2e
mov byte [ecx + 3], 0x2e
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call fcn.00406210
jmp 0x4046c7
lea eax, [ebp - 0x238]
mov dword [esp], str._04x
and eax, 0xffff
mov dword [esp + 4], eax
call fcn.00403ab0
jmp 0x4046c7
mov eax, ebx
shr eax, 0x10
je 0x4049a9
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
test eax, eax
push ecx
push ecx
jne 0x4049ca
mov edx, dword [ebp - 0x1b8]
test dx, dx
je 0x4049d1
lea esi, [esi]
mov ecx, eax
lea eax, [eax + 1]
cmp word [ebx + ecx*2 + 2], 0
jne 0x404818
mov word [ebp - 0x138], 0x224c
lea eax, [ebp - 0x136]
mov edi, ebx
mov dword [ebp - 0x248], ecx
jmp 0x40487d
cmp dx, 9
je 0x4048c0
cmp dx, 0xa
jne 0x4048d7
mov word [eax], 0x6e5c
add eax, 2
mov edx, dword [ebp - 0x248]
lea ecx, [ebp - 0x16]
cmp eax, ecx
lea esi, [edx - 1]
ja 0x404953
test edx, edx
jle 0x404953
mov dx, word [edi]
mov dword [ebp - 0x248], esi
add edi, 2
cmp dx, 0xd
je 0x4048b0
jbe 0x404840
cmp dx, 0x22
je 0x404928
cmp dx, 0x5c
jne 0x4048ca
mov word [eax], 0x5c5c
add eax, 2
jmp 0x404858
mov byte [ecx], al
inc ecx
jmp 0x404678
mov word [eax], 0x725c
add eax, 2
jmp 0x404858
mov word [eax], 0x745c
add eax, 2
jmp 0x404858
lea esi, [edx - 0x20]
cmp si, 0x5e
jbe 0x4049c2
mov esi, edx
mov byte [eax], 0x5c
shr si, 0xc
add eax, 5
and esi, 0xffff
mov cl, byte [esi + str.0123456789abcdefset_host_properties]
mov esi, edx
shr si, 8
mov byte [eax - 4], cl
and esi, 0xf
mov cl, byte [esi + str.0123456789abcdefset_host_properties]
mov esi, edx
shr si, 4
and edx, 0xf
and esi, 0xf
mov byte [eax - 3], cl
mov cl, byte [esi + str.0123456789abcdefset_host_properties]
mov byte [eax - 2], cl
mov cl, byte [edx + str.0123456789abcdefset_host_properties]
mov byte [eax - 1], cl
jmp 0x404858
mov word [eax], 0x225c
add eax, 2
jmp 0x404858
mov word [ebp - 0x138], 0x224c
mov byte [ebp - 0x136], 0x22
lea ecx, [ebp - 0x136]
lea eax, [ecx + 1]
jmp 0x4047a6
mov byte [eax], 0x22
test esi, esi
jle 0x4049e7
lea edx, [eax + 4]
mov word [eax + 1], 0x2e2e
mov byte [eax + 3], 0x2e
lea eax, [ebp - 0x138]
mov byte [edx], 0
mov dword [esp], eax
call fcn.00406210
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.ProgID_is__s_n
mov dword [esp + 8], str.get_engine_clsid
mov dword [esp + 4], 0x40708c
mov dword [esp], 3
call fcn.00403d30
jmp 0x4045b0
mov eax, ebx
mov dword [esp], str._04x
and eax, 0xffff
mov dword [esp + 4], eax
call fcn.00403ab0
jmp 0x40497c
mov byte [eax], dl
inc eax
jmp 0x404858
mov eax, str._invalid_
jmp 0x40497c
mov word [ebp - 0x138], 0x224c
mov byte [ebp - 0x136], 0x22
lea eax, [ebp - 0x136]
lea edx, [eax + 1]
jmp 0x40496b