Function at 0x66644850
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ecx, 0xb
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1dc
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0xe7
jbe 0x66644b6f
mov eax, dword [ebx + 4]
mov esi, dword [ebx + 0x14]
mov dword [ebp - 0x1b0], 0x198
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x1a0], eax
test esi, esi
je 0x6664493c
mov dword [esp + 8], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.kernel32.dll_MultiByteToWideChar
mov edi, eax
sub esp, 0x18
lea edx, [edi + edi]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x66644cb0
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [ebx + 0x14]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
call sub.kernel32.dll_MultiByteToWideChar
sub esp, 0x18
mov edi, dword [ebx + 0xc8]
mov dword [ebp - 0x19c], esi
test edi, edi
je 0x666449f2
mov dword [esp + 8], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.kernel32.dll_MultiByteToWideChar
mov edx, eax
sub esp, 0x18
lea ecx, [edx + edx]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1bc], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x66644cc0
mov edx, dword [ebp - 0x1bc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], edx
mov eax, dword [ebx + 0xc8]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
call sub.kernel32.dll_MultiByteToWideChar
sub esp, 0x18
mov eax, dword [ebx + 0xcc]
mov edx, dword [ebx + 0xdc]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0xd0]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0xd4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0xd8]
mov dword [ebp - 0x28], eax
test edx, edx
je 0x66644ad6
mov dword [esp + 8], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.kernel32.dll_MultiByteToWideChar
mov ecx, eax
sub esp, 0x18
lea edx, [ecx + ecx]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1bc], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapAlloc
mov ecx, 7
sub esp, 0xc
mov edx, eax
test eax, eax
je 0x66644af9
mov ecx, dword [ebp - 0x1bc]
mov dword [esp + 0x10], eax
mov dword [ebp - 0x1bc], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [ebx + 0xdc]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
call sub.kernel32.dll_MultiByteToWideChar
mov edx, dword [ebp - 0x1bc]
sub esp, 0x18
mov eax, dword [ebx + 0xe4]
mov dword [ebp - 0x24], edx
test eax, eax
je 0x66644b80
mov ecx, 8
test byte [0x66650038], 1
jne 0x66644cd0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov ebx, dword fs:[0x18]
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x1c0], ecx
mov dword [ebp - 0x1bc], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
sub esp, 0xc
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
mov edx, dword [ebp - 0x1bc]
sub esp, 0xc
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
mov ecx, dword [ebp - 0x1c0]
sub esp, 0xc
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret 4
lea eax, [ebp - 0x1b0]
mov dword [ebp - 0x1bc], edx
mov dword [esp], eax
call sym.msacm32.dll_acmFormatChooseW
mov edx, dword [ebp - 0x1bc]
sub esp, 4
test eax, eax
mov ecx, eax
jne 0x66644af9
mov dword [ebp - 0x1c0], eax
lea eax, [ebx + 0x18]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x198]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x30
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.kernel32.dll_WideCharToMultiByte
lea eax, [ebx + 0x48]
sub esp, 0x20
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x138]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.kernel32.dll_WideCharToMultiByte
mov eax, dword [ebx + 0xc8]
mov edx, dword [ebp - 0x1bc]
sub esp, 0x20
mov ecx, dword [ebp - 0x1c0]
test eax, eax
je 0x66644af9
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov ebx, dword [ebx + 0xcc]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.kernel32.dll_WideCharToMultiByte
mov edx, dword [ebp - 0x1bc]
mov ecx, dword [ebp - 0x1c0]
sub esp, 0x20
jmp 0x66644af9
xor edx, edx
xor edi, edi
mov ecx, 7
jmp 0x66644af9
xor edx, edx
mov ecx, 7
jmp 0x66644af9
mov dword [esp + 0xc], str.Unsupported_hook_procs_n
mov dword [esp + 8], str.acmFormatChooseA
mov dword [esp + 4], 0x66650038
mov dword [esp], 0
mov dword [ebp - 0x1c0], ecx
mov dword [ebp - 0x1bc], edx
call fcn.66644720
mov edx, dword [ebp - 0x1bc]
mov ecx, dword [ebp - 0x1c0]
jmp 0x66644af9