Function at 0x100042fe
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1000b018]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x21c], esi
lea ebx, [ebp - 0x204]
mov dword [ebp - 0x208], esi
mov dword [ebp - 0x20c], 0x200
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x220], 0x101
mov dword [ebp - 0x214], esi
push edi
mov edi, dword [ebp + 8]
test ecx, ecx
je 0x10004546
test eax, eax
je 0x10004546
cmp dword [edi + 0x24], esi
je 0x1000453f
cmp dword [edi + 0x28], esi
je 0x1000453f
lea edx, [ebp - 0x214]
push edx
push dword [ebp + 0x10]
push ecx
lea ecx, [edi + 0xc]
call fcn.10005e52
mov edx, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x21c], eax
mov dword [edx], ecx
test eax, eax
jns 0x100043af
cmp eax, 0x8000000a
jne 0x1000454b
cmp dword [edi + 0x34], esi
je 0x1000454b
cmp dword [edi + 0x30], esi
jne 0x1000454b
lea edx, [edi + 0xc]
mov dword [edi + 0x30], 1
mov eax, edx
mov dword [edx + 0x10], esi
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0x210], ecx
lea ecx, [edi + 0x40]
mov dword [ebp - 0x218], eax
test eax, eax
jne 0x100043ed
mov eax, 0x80070057
jmp 0x10004402
lea edx, [ebp - 0x220]
push edx
push ecx
mov edx, eax
call fcn.10005e52
lea ecx, [edi + 0x40]
lea edx, [edi + 0xc]
cmp eax, 0x80004003
jne 0x1000440e
xor eax, eax
mov word [ecx], ax
test eax, eax
jns 0x10004422
cmp dword [ebp - 0x210], 0x800
jbe 0x1000454b
mov ecx, edx
call fcn.10003fc0
lea eax, [ebp - 0x208]
mov dword [edi + 0x34], esi
push eax
push 0x20019
push esi
push str.SOFTWAREMicrosoftOffice16.0CommonFilter_text_xml
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 2
pop ecx
test eax, eax
jne 0x100044c6
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x224]
push eax
push esi
lea eax, [edi + 0x40]
push eax
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 2
cmp eax, 0xea
jne 0x100044c5
mov eax, dword [ebp - 0x20c]
xor ecx, ecx
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push esi
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1000452a
lea eax, [ebp - 0x20c]
push eax
push ebx
lea eax, [ebp - 0x224]
push eax
push esi
lea eax, [edi + 0x40]
push eax
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 2
pop ecx
cmp eax, ecx
jne 0x10004515
push 0xffffffffffffffff
push str.InfoPath.Document
push 0xffffffffffffffff
lea eax, [edi + 0x40]
push eax
push 1
push 0x7f
call dword [sym.imp.kernel32.dll_CompareStringW]
push 2
pop ecx
cmp eax, ecx
jne 0x1000452a
push str.application_ms_infopath.xml
call dword [sym.imp.kernel32.dll_lstrlenW]
mov ecx, 0x100
cmp eax, ecx
jge 0x1000452a
push 0xffffffffffffffff
push str.application_ms_infopath.xml
push ecx
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
cmp eax, 0x50
je 0x1000452a
mov eax, esi
test eax, eax
jne 0x1000452a
mov eax, dword [edi + 0x28]
push ebx
push 0x16
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
push ebx
push 0x1b
jmp 0x10004534
cmp dword [edi + 0x38], esi
je 0x1000454b
push dword [edi + 0x38]
push 0x16
mov eax, dword [edi + 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
jmp 0x1000454b
mov esi, 0x80004005
jmp 0x1000454b
mov esi, 0x80070057
lea eax, [ebp - 0x204]
cmp ebx, eax
je 0x10004560
test ebx, ebx
je 0x10004560
push ebx
call dword [sym.imp.kernel32.dll_GlobalFree]
mov ecx, dword [ebp - 0x218]
test ecx, ecx
je 0x10004570
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ebx, dword [ebp - 0x21c]
test esi, esi
cmovs ebx, esi
cmp dword [ebp - 0x208], 0
je 0x10004590
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100069dc
leave
ret 0x10