Function at 0x4048b0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x16c
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x11c], 0
test byte [0x416010], 8
jne 0x404b68
movzx eax, byte [ecx + 4]
movzx ebx, byte [ecx + 5]
movzx edx, byte [ecx + 2]
movzx esi, byte [ecx + 6]
mov byte [ebp - 0x138], al
mov byte [ebp - 0x130], bl
test dl, 1
je 0x404b38
movzx edi, word [ecx + 2]
movzx edx, byte [ecx + 7]
mov byte [ebp - 0x134], al
lea ebx, [ecx + 4]
shr di, 1
mov eax, esi
shl edx, 8
mov dword [esp + 4], str.pictwmetafile_dpicw_dpich_d
movzx esi, al
movzx eax, word [ebp - 0x130]
mov dword [ebp - 0x138], ecx
add edx, esi
movzx esi, byte [ebp - 0x134]
shl eax, 8
movzx edx, dx
add eax, esi
lea esi, [ebp - 0x118]
mov dword [esp + 0x10], edx
movzx eax, ax
mov dword [esp], esi
mov dword [esp + 0xc], eax
movzx eax, di
mov dword [esp + 8], eax
call sym._sprintf
mov eax, dword [ebp - 0x12c]
mov edx, esi
call dbg.HLPFILE_RtfAddControl
mov ecx, dword [ebp - 0x138]
test eax, eax
je 0x404ad8
test byte [ebx + 4], 1
jne 0x404ae8
movzx eax, word [ebx + 4]
movzx edx, byte [ebx + 6]
shr ax, 1
and edx, 1
movzx eax, ax
mov dword [ebp - 0x138], eax
lea eax, [ebx + 6]
je 0x404b03
mov edi, dword [eax]
lea ebx, [eax + 4]
shr edi, 1
mov dword [ebp - 0x134], edi
test byte [ebx], 1
je 0x404b1e
mov eax, dword [ebx]
add ebx, 4
shr eax, 1
mov dword [ebp - 0x130], eax
movzx edi, byte [ebx + 3]
movzx eax, byte [ebx + 2]
movzx edx, byte [ebx + 1]
movzx esi, byte [ebx + 7]
shl edi, 8
shl edx, 8
add edi, eax
shl esi, 8
mov eax, edi
movzx edi, byte [ebx]
shl eax, 0x10
add edi, edx
movzx edx, byte [ebx + 4]
movzx edi, di
add edi, eax
movzx eax, byte [ebx + 6]
add esi, eax
movzx eax, byte [ebx + 5]
shl esi, 0x10
shl eax, 8
add eax, edx
movzx eax, ax
add esi, eax
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x404a4a
test esi, esi
je 0x404a4a
mov edx, dword [ebp - 0x140]
mov eax, dword [ebp - 0x12c]
mov dword [esp], esi
mov dword [ebp - 0x144], ecx
call sym._HLPFILE_AddHotSpotLinks.part.0
mov ecx, dword [ebp - 0x144]
test byte [0x416010], 8
jne 0x404ba0
lea edx, [ebp - 0x11c]
lea eax, [ecx + edi]
mov edi, dword [ebp - 0x138]
mov dword [esp + 4], edx
movzx edx, byte [ebp - 0x13c]
mov ecx, edi
mov dword [esp], edx
mov edx, dword [ebp - 0x134]
call dbg.HLPFILE_DecompressGfx
mov edx, eax
test eax, eax
je 0x404ad8
mov eax, dword [ebp - 0x12c]
mov ecx, edi
call dbg.HLPFILE_RtfAddHexBytes
mov ebx, eax
test eax, eax
jne 0x404c08
mov edx, dword [ebp - 0x11c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 4]
movzx edx, byte [ebx + 8]
shr eax, 1
and edx, 1
mov dword [ebp - 0x138], eax
lea eax, [ebx + 8]
jne 0x4049b4
movzx edx, word [eax]
lea ebx, [eax + 2]
shr dx, 1
movzx edi, dx
mov dword [ebp - 0x134], edi
test byte [ebx], 1
jne 0x4049ca
movzx eax, word [ebx]
add ebx, 2
shr ax, 1
movzx eax, ax
mov dword [ebp - 0x130], eax
jmp 0x4049d7
movzx eax, byte [ecx + 3]
shr dl, 1
lea ebx, [ecx + 3]
movzx edi, dl
mov edx, esi
movzx esi, byte [ebp - 0x130]
mov byte [ebp - 0x134], al
movzx eax, byte [ebp - 0x138]
mov byte [ebp - 0x130], al
jmp 0x404921
mov dword [esp + 0xc], str.Loading_metafile_n
mov dword [esp + 8], str.HLPFILE_RtfAddMetaFile
mov dword [esp + 4], 0x416010
mov dword [esp], 3
mov dword [ebp - 0x130], ecx
call sym._wine_dbg_log.constprop.0_1
mov ecx, dword [ebp - 0x130]
jmp 0x4048e8
mov eax, dword [ebp - 0x130]
add ebx, 8
mov dword [esp + 0x24], esi
sub ebx, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x134]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x138]
mov dword [esp + 0xc], str.sz_lu_csz_lu_offs_lu__lu__lu__lu_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.HLPFILE_RtfAddMetaFile
mov dword [esp + 4], 0x416010
mov dword [esp], 3
mov dword [ebp - 0x130], ecx
call sym._wine_dbg_log.constprop.0_1
mov ecx, dword [ebp - 0x130]
jmp 0x404a57
mov eax, dword [ebp - 0x12c]
mov edx, 0x417587
xor ebx, ebx
call dbg.HLPFILE_RtfAddControl
test eax, eax
setne bl
jmp 0x404a9e