Function at 0x10005213
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 0x10005459
test eax, eax
je 0x10005459
cmp dword [edi + 0x24], esi
je 0x10005452
cmp dword [edi + 0x28], esi
je 0x10005452
lea edx, [ebp - 0x214]
push edx
push dword [ebp + 0x10]
push ecx
lea ecx, [edi + 0xc]
call fcn.10003a1c
mov edx, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x21c], eax
mov dword [edx], ecx
test eax, eax
jns 0x100052c4
cmp eax, 0x8000000a
jne 0x1000545e
cmp dword [edi + 0x34], esi
je 0x1000545e
cmp dword [edi + 0x30], esi
jne 0x1000545e
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 0x10005302
mov eax, 0x80070057
jmp 0x10005314
lea edx, [ebp - 0x220]
push edx
push ecx
mov edx, eax
call fcn.10003a1c
lea edx, [edi + 0xc]
cmp eax, 0x80004003
jne 0x10005321
xor eax, eax
mov word [edi + 0x40], ax
test eax, eax
jns 0x10005335
cmp dword [ebp - 0x210], 0x800
jbe 0x1000545e
mov ecx, edx
call fcn.10004f5f
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 0x100053d9
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 0x100053d8
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 0x1000543d
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 0x10005428
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 0x1000543d
push str.application_ms_infopath.xml
call dword [sym.imp.kernel32.dll_lstrlenW]
mov ecx, 0x100
cmp eax, ecx
jge 0x1000543d
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 0x1000543d
mov eax, esi
test eax, eax
jne 0x1000543d
mov eax, dword [edi + 0x28]
push ebx
push 0x16
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
push ebx
push 0x1b
jmp 0x10005447
cmp dword [edi + 0x38], esi
je 0x1000545e
push dword [edi + 0x38]
push 0x16
mov eax, dword [edi + 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
jmp 0x1000545e
mov esi, 0x80004005
jmp 0x1000545e
mov esi, 0x80070057
lea eax, [ebp - 0x204]
cmp ebx, eax
je 0x10005473
test ebx, ebx
je 0x10005473
push ebx
call dword [sym.imp.kernel32.dll_GlobalFree]
mov ecx, dword [ebp - 0x218]
test ecx, ecx
je 0x10005483
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 0x100054a3
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.10006684
leave
ret 0x10