Function at 0x645070d0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get process heap flags
Get process heap force flags
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x1b8
mov eax, dword [ecx]
mov dword [ebp - 0x19c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x194], eax
mov eax, dword [ecx + 8]
test byte [0x64524028], 8
jne 0x645077cc
mov ebx, dword [ebp - 0x19c]
test ebx, ebx
je 0x64507867
cmp dword [ebp - 0x194], 1
jle 0x64507858
mov dword [esp + 8], 0x3a98
mov dword [esp + 4], 8
mov ebx, dword fs:[0x18]
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x190], eax
sub esp, 0xc
test eax, eax
je 0x64507876
lea eax, [ebp - 0x184]
mov dword [esp + 4], str.AVIFileExtensions
mov dword [esp + 8], eax
mov eax, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [esp], 0x80000000
mov dword [ebp - 0x1a4], eax
call eax
sub esp, 0xc
test eax, eax
jne 0x645078c1
mov dword [ebp - 0x18c], 0
lea esi, [ebp - 0x168]
mov dword [ebp - 0x198], 0
lea esi, [esi]
lea eax, [ebp - 0x17c]
mov dword [esp + 0xc], 0xa
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x198]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x184]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x645073c2
lea eax, [ebp - 0x180]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x17c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x180], 0x50
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
sub esp, 0x10
test eax, eax
jne 0x645073c2
mov eax, dword [ebp - 0x18c]
test eax, eax
je 0x645076e0
mov edi, dword [ebp - 0x190]
add eax, 1
mov ebx, 1
mov dword [ebp - 0x1a0], eax
add edi, 0x1f4
jmp 0x6450725f
lea eax, [ebx + 1]
add edi, 0x1f4
cmp dword [ebp - 0x18c], ebx
je 0x64507370
mov ebx, eax
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x64507248
cmp ebx, dword [ebp - 0x1a0]
je 0x64507370
imul ebx, ebx, 0x1f4
add ebx, dword [ebp - 0x190]
lea eax, [ebp - 0x17c]
lea edi, [ebp - 0x118]
mov dword [esp + 4], str._._s
mov dword [esp + 8], eax
mov dword [esp], edi
call dword [sym.imp.user32.dll_wsprintfW]
cmp word [ebx + 0x50], 0
lea edx, [ebx + 0x50]
jne 0x64507310
xor eax, eax
lea ecx, [ebp - 0x116]
nop
movzx edx, word [ecx + eax]
mov word [ebx + eax + 0x50], dx
add eax, 2
test dx, dx
jne 0x645072c0
mov eax, dword [ebp - 0x190]
cmp word [eax + 0x50], 0
lea edx, [eax + 0x50]
jne 0x64507340
mov ebx, dword [ebp - 0x190]
xor eax, eax
lea ecx, [ebp - 0x116]
nop
movzx edx, word [ecx + eax]
mov word [ebx + eax + 0x50], dx
add eax, 2
test dx, dx
jne 0x645072f0
add dword [ebp - 0x198], 1
jmp 0x645071a8
add edx, 2
cmp word [edx], 0
jne 0x64507310
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [edi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x64507320
mov eax, dword [ebp - 0x190]
cmp word [eax + 0x50], 0
lea edx, [eax + 0x50]
je 0x645072e1
add edx, 2
cmp word [edx], 0
jne 0x64507340
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [edi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x64507350
add dword [ebp - 0x198], 1
jmp 0x645071a8
cmp dword [ebp - 0x18c], 0x1d
ja 0x645073b5
mov edi, dword [ebp - 0x1a0]
imul eax, edi, 0x1f4
mov dword [ebp - 0x18c], edi
mov edi, dword [ebp - 0x190]
lea ebx, [edi + eax]
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x645073a0
jmp 0x6450728b
test byte [0x64524028], 2
jne 0x6450780d
mov eax, dword [ebp - 0x184]
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x1a8], eax
call eax
lea eax, [ebp - 0x184]
sub esp, 4
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1a4]
mov dword [esp + 4], str.CLSID
mov dword [esp], 0x80000000
call eax
mov dword [ebp - 0x1a0], eax
sub esp, 0xc
test eax, eax
jne 0x64507888
mov dword [ebp - 0x198], 0
mov eax, dword [ebp - 0x190]
mov ecx, dword [ebp - 0x198]
lea edi, [eax + 0x50]
test ecx, ecx
je 0x64507574
nop
lea eax, [ebp - 0x180]
lea ebx, [ebp - 0x118]
mov dword [ebp - 0x180], 0x100
mov dword [esp + 0xc], eax
lea eax, [edi - 0x50]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x184]
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
sub esp, 0x10
test eax, eax
je 0x64507650
mov eax, dword [ebp - 0x180]
add eax, 1
movzx esi, word [edi]
mov dword [ebp - 0x180], eax
test si, si
je 0x645075b6
mov edx, edi
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x64507490
sub edx, edi
sar edx, 1
add edx, eax
add edx, 1
cmp edx, dword [ebp - 0x194]
jge 0x645075c7
mov ebx, dword [ebp - 0x194]
mov ecx, dword [ebp - 0x19c]
mov edx, esi
sub ebx, eax
lea eax, [ecx + eax*2]
mov ecx, ebx
mov dword [ebp - 0x194], ebx
mov ebx, edi
mov dword [ebp - 0x19c], eax
cmp ecx, 1
ja 0x645074f5
jmp 0x64507620
sub ecx, 1
add eax, 2
add ebx, 2
mov word [eax - 2], dx
cmp ecx, 1
je 0x645074fa
movzx edx, word [ebx]
test dx, dx
jne 0x645074e0
xor ecx, ecx
mov word [eax], cx
test si, si
je 0x64507637
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x64507510
sub eax, edi
mov edx, eax
add eax, 2
sar edx, 1
add edx, 1
mov esi, dword [ebp - 0x194]
add eax, dword [ebp - 0x19c]
mov dword [ebp - 0x180], edx
add edi, 0x1f4
mov dword [ebp - 0x19c], eax
sub esi, edx
mov dword [ebp - 0x194], esi
mov esi, dword [ebp - 0x198]
lea eax, [esi + 1]
cmp dword [ebp - 0x18c], esi
je 0x645076f4
mov dword [ebp - 0x198], eax
mov ecx, dword [ebp - 0x198]
test ecx, ecx
jne 0x64507430
mov eax, dword [ebp - 0x194]
mov dword [esp + 4], 0x184
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x19c]
mov dword [esp + 8], eax
mov eax, dword [0x64538014]
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
movzx esi, word [edi]
add eax, 1
sub esp, 0x10
mov dword [ebp - 0x180], eax
test si, si
jne 0x6450748a
mov edx, eax
add edx, 1
cmp edx, dword [ebp - 0x194]
jl 0x645074ae
mov eax, dword [ebp - 0x19c]
mov esi, dword [ebp - 0x190]
mov dword [eax], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x184]
sub esp, 0xc
mov dword [esp], eax
mov eax, dword [ebp - 0x1a8]
call eax
mov dword [ebp - 0x1a0], 0x80044074
sub esp, 4
jmp 0x645077b8
mov ebx, dword [ebp - 0x194]
test ebx, ebx
jne 0x645074fa
test si, si
jne 0x64507508
mov eax, 2
mov edx, 1
jmp 0x64507525
movzx ecx, word [ebp - 0x118]
mov esi, dword [ebp - 0x194]
test cx, cx
je 0x645076b4
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x64507668
sub eax, ebx
sar eax, 1
mov dword [ebp - 0x180], eax
add eax, 1
cmp dword [ebp - 0x194], 1
jbe 0x645076c8
mov edx, dword [ebp - 0x19c]
jmp 0x64507698
movzx ecx, word [ebx]
test cx, cx
je 0x645076aa
sub esi, 1
add edx, 2
add ebx, 2
mov word [edx - 2], cx
cmp esi, 1
jne 0x64507690
xor esi, esi
mov word [edx], si
jmp 0x64507478
cmp dword [ebp - 0x194], 1
mov edx, dword [ebp - 0x19c]
mov eax, 1
ja 0x645076aa
mov edx, dword [ebp - 0x194]
test edx, edx
je 0x64507478
mov edx, dword [ebp - 0x19c]
jmp 0x645076aa
mov dword [ebp - 0x18c], 1
mov eax, 0x1f4
jmp 0x6450738b
mov eax, dword [ebp - 0x184]
lea ebx, [ebp - 0x168]
mov dword [esp], eax
mov eax, dword [ebp - 0x1a8]
call eax
mov esi, dword [ebp - 0x190]
sub esp, 4
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [0x64538014]
sub esp, 0xc
mov dword [esp + 0xc], 0x23
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x185
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
mov ecx, dword [0x64526974]
lea edx, [eax + eax + 2]
add eax, 6
sub esp, 0x10
mov dword [ebp + edx - 0x168], ecx
mov ecx, dword [0x64526978]
mov dword [ebp - 0x180], eax
mov dword [ebp + edx - 0x164], ecx
movzx ecx, word [0x6452697c]
mov word [ebp + edx - 0x160], cx
cmp eax, dword [ebp - 0x194]
jge 0x6450783e
mov eax, dword [ebp - 0x19c]
add edx, 0xa
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
mov eax, dword [ebp - 0x1a0]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x194]
mov dword [esp + 0xc], str.__p__ld__d__n
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x19c]
mov dword [esp + 8], str.AVIBuildFilterW
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x64524028
mov dword [esp], 3
call fcn.64503a10
jmp 0x64507108
mov dword [esp + 0x10], 0x1e
mov dword [esp + 0xc], str.:_More_than__d_filters_found__Adjust_MAX_FILTERS_in_dlls_avifil32_api.c_n
mov dword [esp + 8], str.AVIBuildFilterW
mov dword [esp + 4], 0x64524028
mov dword [esp], 1
call fcn.64503a10
jmp 0x645073c2
mov eax, dword [ebp - 0x19c]
xor edx, edx
mov dword [ebp - 0x1a0], 0x80044074
mov word [eax], dx
jmp 0x645077b8
mov dword [ebp - 0x1a0], 0x8004406b
jmp 0x645077b8
mov dword [ebp - 0x1a0], 0x8004406a
jmp 0x645077b8
mov dword [ebp - 0x1a0], 0x80044067
jmp 0x645077b8
mov esi, dword [ebp - 0x190]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], esi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x1a0], 0x800440c7
sub esp, 0xc
jmp 0x645077b8
mov eax, dword [ebp - 0x190]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
jmp 0x645078a3