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

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, 0x1d8
mov ebx, dword [ecx]
mov ecx, 0xb
cmp dword [ebx], 0xe7
jbe 0x6608971d
mov dword [ebp - 0x1b0], 0x198
mov eax, dword [ebx + 4]
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
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x1bc], eax
test eax, eax
je 0x660894e1
mov dword [esp + 0x14], 0
mov edi, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call edi
mov esi, eax
sub esp, 0x18
lea edx, [esi + esi]
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 dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x1bc], eax
sub esp, 0xc
test eax, eax
je 0x660898a3
mov dword [esp + 0x14], esi
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 edi
sub esp, 0x18
mov eax, dword [ebp - 0x1bc]
mov edi, dword [ebx + 0xc8]
mov dword [ebp - 0x19c], eax
test edi, edi
je 0x6608959e
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 8], edi
mov dword [esp + 0x14], 0
mov dword [ebp - 0x1c0], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
mov esi, eax
sub esp, 0x18
lea ecx, [esi + esi]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
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_HeapAlloc]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x6608988d
mov dword [esp + 0x14], esi
mov edx, dword [ebp - 0x1c0]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [ebx + 0xc8]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
call edx
sub esp, 0x18
mov eax, dword [ebx + 0xcc]
mov esi, 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 esi, esi
je 0x66089682
mov ecx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 8], esi
mov dword [esp + 0x14], 0
mov dword [ebp - 0x1c4], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
mov edx, eax
sub esp, 0x18
lea esi, [edx + edx]
mov dword [esp + 4], 0
mov dword [esp + 8], esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1c0], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x66089899
mov edx, dword [ebp - 0x1c0]
mov ecx, dword [ebp - 0x1c4]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], edx
mov eax, dword [ebx + 0xdc]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
call ecx
sub esp, 0x18
mov eax, dword [ebx + 0xe4]
mov dword [ebp - 0x24], esi
test eax, eax
je 0x66089730
mov ecx, 8
test byte [0x66090070], 1
jne 0x66089858
mov eax, dword [ebp - 0x1bc]
mov dword [esp + 4], 0
mov ebx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x1c0], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x1bc], eax
call eax
sub esp, 0xc
mov dword [esp + 8], edi
mov edi, dword [ebp - 0x1bc]
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
mov ecx, dword [ebp - 0x1c0]
sub esp, 0xc
lea esp, [ebp - 0x10]
mov eax, ecx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
lea eax, [ebp - 0x1b0]
mov dword [esp], eax
call sym.msacm32.dll_acmFormatChooseW
sub esp, 4
mov ecx, eax
test eax, eax
jne 0x660896a5
mov dword [ebp - 0x1c4], eax
lea eax, [ebx + 0x18]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x198]
mov dword [esp + 8], eax
mov eax, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x30
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x1c0], eax
call eax
lea eax, [ebx + 0x48]
sub esp, 0x20
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x138]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c0]
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 + 4], 0
mov dword [esp], 0
call eax
mov eax, dword [ebx + 0xc8]
mov ecx, dword [ebp - 0x1c4]
sub esp, 0x20
test eax, eax
je 0x660896a5
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov edx, dword [ebx + 0xcc]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x14], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c0]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
call eax
mov ecx, dword [ebp - 0x1c4]
sub esp, 0x20
jmp 0x660896a5
mov dword [esp + 0xc], str.Unsupported_hook_procs_n
mov dword [esp + 8], str.acmFormatChooseA
mov dword [esp + 4], 0x66090070
mov dword [esp], 0
mov dword [ebp - 0x1c0], ecx
call sym._wine_dbg_log.constprop.0_2
mov ecx, dword [ebp - 0x1c0]
jmp 0x660896a5
xor esi, esi
mov ecx, 7
jmp 0x660896a5
mov ecx, 7
jmp 0x660896a5
xor esi, esi
xor edi, edi
mov ecx, 7
jmp 0x660896a5