Function at 0x4049c0
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 - 0x138], edx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x11c], 0
test byte [0x415010], 8
jne 0x404bc8
movzx eax, byte [ecx + 2]
test al, 1
je 0x404a70
movzx eax, word [ecx + 2]
lea ebx, [ecx + 4]
shr ax, 1
movzx edx, byte [ebx + 3]
movzx esi, byte [ebx + 2]
mov dword [ebp - 0x134], ecx
movzx eax, ax
shl edx, 8
add edx, esi
movzx edx, dx
mov dword [esp + 0x10], edx
movzx edx, byte [ebx + 1]
movzx esi, byte [ebx]
mov dword [esp + 8], eax
shl edx, 8
mov dword [esp + 4], str.pictwmetafile_dpicw_dpich_d
add edx, esi
lea esi, [ebp - 0x118]
movzx edx, dx
mov dword [esp], esi
mov dword [esp + 0xc], edx
call sym._sprintf
mov eax, dword [ebp - 0x12c]
mov edx, esi
call dbg.HLPFILE_RtfAddControl
test eax, eax
jne 0x404a80
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
shr al, 1
lea ebx, [ecx + 3]
movzx eax, al
jmp 0x404a0a
test byte [ebx + 4], 1
mov ecx, dword [ebp - 0x134]
je 0x404c00
mov eax, dword [ebx + 4]
add ebx, 8
shr eax, 1
mov dword [ebp - 0x140], eax
test byte [ebx], 1
je 0x404c1c
mov eax, dword [ebx]
add ebx, 4
shr eax, 1
mov dword [ebp - 0x13c], eax
test byte [ebx], 1
je 0x404c37
mov eax, dword [ebx]
add ebx, 4
shr eax, 1
mov dword [ebp - 0x134], eax
movzx edi, byte [ebx + 3]
movzx eax, byte [ebx + 2]
movzx edx, byte [ebx]
movzx esi, byte [ebx + 7]
shl edi, 8
add edi, eax
movzx eax, byte [ebx + 1]
shl esi, 8
shl edi, 0x10
shl eax, 8
add eax, edx
movzx edx, byte [ebx + 4]
movzx eax, ax
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 - 0x134]
test eax, eax
je 0x404b3b
test esi, esi
je 0x404b3b
mov dword [esp], esi
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x144], ecx
mov eax, dword [ebp - 0x12c]
call sym._HLPFILE_AddHotSpotLinks.part.0
mov ecx, dword [ebp - 0x144]
test byte [0x415010], 8
jne 0x404c50
lea edx, [ebp - 0x11c]
lea eax, [ecx + edi]
mov dword [esp + 4], edx
movzx edx, byte [ebp - 0x130]
mov dword [esp], edx
mov edi, dword [ebp - 0x140]
mov edx, dword [ebp - 0x13c]
mov ecx, edi
call sym._HLPFILE_DecompressGfx.constprop.0
mov edx, eax
test eax, eax
je 0x404a65
mov eax, dword [ebp - 0x12c]
mov ecx, edi
call dbg.HLPFILE_RtfAddHexBytes
test eax, eax
jne 0x404cb8
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]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x134], ecx
mov dword [esp + 0xc], str.Loading_metafile_n
mov dword [esp + 8], str.HLPFILE_RtfAddMetaFile
mov dword [esp + 4], 0x415010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov ecx, dword [ebp - 0x134]
jmp 0x4049f8
movzx eax, word [ebx + 4]
add ebx, 6
shr ax, 1
movzx eax, ax
mov dword [ebp - 0x140], eax
test byte [ebx], 1
jne 0x404aa7
movzx eax, word [ebx]
add ebx, 2
shr ax, 1
movzx eax, ax
mov dword [ebp - 0x13c], eax
test byte [ebx], 1
jne 0x404abd
movzx eax, word [ebx]
add ebx, 2
shr ax, 1
movzx eax, ax
mov dword [ebp - 0x134], eax
jmp 0x404aca
mov dword [esp + 0x24], esi
add ebx, 8
mov eax, dword [ebp - 0x134]
sub ebx, ecx
mov dword [esp + 0x20], eax
mov dword [ebp - 0x134], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
mov eax, dword [ebp - 0x13c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x140]
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], 0x415010
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov ecx, dword [ebp - 0x134]
jmp 0x404b48
mov eax, dword [ebp - 0x12c]
mov edx, 0x41658b
call dbg.HLPFILE_RtfAddControl
jmp 0x404b91