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

Disassembly:
push ebp
xor eax, eax
mov ecx, 0x10a
mov edx, 0xffffffff
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x440]
push ebx
sub esp, 0x90c
rep stosd dword es:[edi], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0x656c726d
mov dword [esp], 0x43444956
mov word [ebp - 0x40c], dx
mov dword [ebp - 0x440], 0x28
mov dword [ebp - 0x43c], 0x20
mov dword [ebp - 0x438], 1
mov dword [ebp - 0x434], 0x80001
mov dword [ebp - 0x42c], 0x100
mov dword [ebp - 0x420], 0x100
mov dword [ebp - 0x41c], 0x100
mov byte [ebp - 0x418], 0xff
mov byte [ebp - 0x413], 0xff
mov byte [ebp - 0x40e], 0xff
mov byte [ebp - 0x40a], 0xff
call sub.msvfw32.dll_ICOpen
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0x3e
mov dword [esp], str..._wine_dlls_msrle32_tests_msrle.c
call fcn.004020f0
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.ICOpen_failed_n
setne al
mov dword [esp], eax
call fcn.00402360
lea eax, [ebp - 0x678]
mov dword [esp + 8], 0x238
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvfw32.dll_ICGetInfo
sub esp, 0xc
mov esi, eax
mov dword [esp + 4], 0x41
mov dword [esp], str..._wine_dlls_msrle32_tests_msrle.c
call fcn.004020f0
xor eax, eax
cmp esi, 0x238
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.res___ld_n
lea esi, [ebp - 0x8bc]
mov dword [esp], eax
call fcn.00402360
mov dword [esp + 4], 0x42
mov dword [esp], str..._wine_dlls_msrle32_tests_msrle.c
call fcn.004020f0
mov eax, dword [ebp - 0x678]
mov dword [esp + 4], str.dwSize___d_n
cmp eax, 0x238
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00402360
mov dword [esp + 4], 0x43
mov dword [esp], str..._wine_dlls_msrle32_tests_msrle.c
call fcn.004020f0
mov eax, dword [ebp - 0x670]
mov dword [esp + 4], str.fccHandler___x_n
cmp eax, 0x454c524d
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00402360
mov dword [esp + 4], 0x44
mov dword [esp], str..._wine_dlls_msrle32_tests_msrle.c
call fcn.004020f0
mov eax, dword [ebp - 0x66c]
mov dword [esp + 4], str.dwFlags___x_n
cmp eax, 7
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00402360
mov dword [esp + 4], 0x45
mov dword [esp], str..._wine_dlls_msrle32_tests_msrle.c
call fcn.004020f0
mov eax, dword [ebp - 0x664]
mov dword [esp + 4], str.dwVersionICM___d_n
cmp eax, 0x104
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00402360
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x501e
mov dword [esp], ebx
mov dword [ebp - 0x8bc], 0xdeadbeef
call sub.msvfw32.dll_ICSendMessage
sub esp, 0x10
mov edi, eax
mov dword [esp + 4], 0x49
mov dword [esp], str..._wine_dlls_msrle32_tests_msrle.c
call fcn.004020f0
xor eax, eax
test edi, edi
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.ICSendMessage_ICM_GETDEFAULTQUALITY__failed:__ld_n
mov dword [esp], eax
call fcn.00402360
mov dword [esp + 4], 0x4a
mov dword [esp], str..._wine_dlls_msrle32_tests_msrle.c
call fcn.004020f0
mov eax, dword [ebp - 0x8bc]
mov dword [esp + 4], str.quality___d_n
cmp eax, 0x2134
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00402360
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x501f
mov dword [esp], ebx
mov dword [ebp - 0x8bc], 0xdeadbeef
call sub.msvfw32.dll_ICSendMessage
sub esp, 0x10
mov edi, eax
mov dword [esp + 4], 0x4e
mov dword [esp], str..._wine_dlls_msrle32_tests_msrle.c
call fcn.004020f0
xor eax, eax
cmp edi, 0xffffffff
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.ICSendMessage_ICM_GETQUALITY__failed:__ld_n
lea edi, [ebp - 0x440]
mov dword [esp], eax
call fcn.00402360
mov dword [esp + 4], 0x4f
mov dword [esp], str..._wine_dlls_msrle32_tests_msrle.c
call fcn.004020f0
mov eax, dword [ebp - 0x8bc]
mov dword [esp + 4], str.quality___d_n
cmp eax, 0xdeadbeef
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00402360
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x5020
mov dword [esp], ebx
mov dword [ebp - 0x8bc], 0x2710
call sub.msvfw32.dll_ICSendMessage
sub esp, 0x10
mov esi, eax
mov dword [esp + 4], 0x53
mov dword [esp], str..._wine_dlls_msrle32_tests_msrle.c
call fcn.004020f0
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.ICSendMessage_ICM_SETQUALITY__failed:__ld_n
mov dword [esp], eax
call fcn.00402360
mov dword [esp + 8], edi
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x4004
mov dword [esp], ebx
call sub.msvfw32.dll_ICSendMessage
sub esp, 0x10
mov esi, eax
mov dword [esp + 4], 0x56
mov dword [esp], str..._wine_dlls_msrle32_tests_msrle.c
call fcn.004020f0
xor eax, eax
cmp esi, 0x428
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.output_size___d_n
mov dword [esp], eax
call fcn.00402360
mov dword [esp + 8], esi
mov eax, dword fs:[0x18]
mov dword [esp + 4], 0
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 esi, eax
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x4004
mov dword [esp], ebx
call sub.msvfw32.dll_ICSendMessage
lea eax, [ebp - 0x8c0]
mov dword [ebp - 0x8c0], 0
sub esp, 0x10
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x8b8]
mov dword [esp + 0x10], edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x404000
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvfw32.dll_ICCompress
mov dword [esp + 4], 0x5d
mov dword [esp], str..._wine_dlls_msrle32_tests_msrle.c
mov edi, eax
call fcn.004020f0
xor eax, eax
test edi, edi
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.ICCompress_failed:__ld_n
mov dword [esp], eax
call fcn.00402360
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x8cc], eax
cmp eax, 0x12
je 0x401b35
mov dword [esp + 4], 0x21
mov dword [esp], str..._wine_dlls_msrle32_tests_msrle.c
call fcn.004020f0
mov dword [esp + 4], str.Unexpected_output_n
mov dword [esp], 0
call fcn.00402360
mov eax, dword [ebp - 0x8cc]
test eax, eax
jle 0x401ba2
lea edi, [ebp - 0x878]
xor edx, edx
mov dword [ebp - 0x8d0], ebx
mov dword [ebp - 0x8d4], esi
mov ebx, edi
mov esi, edx
lea esi, [esi]
nop
movzx eax, byte [ebp + esi - 0x8b8]
mov dword [esp], ebx
add esi, 1
mov dword [esp + 4], 0x405130
mov dword [esp + 8], eax
call fcn.004014a0
add ebx, eax
cmp dword [ebp - 0x8cc], esi
jg 0x401a00
mov ebx, dword [ebp - 0x8d0]
mov esi, dword [ebp - 0x8d4]
mov dword [esp + 4], 0x27
mov dword [esp], str..._wine_dlls_msrle32_tests_msrle.c
call fcn.004020f0
mov dword [esp + 4], edi
mov dword [esp], str.Got:__s_n
call fcn.00402390
xor edx, edx
mov dword [ebp - 0x8cc], ebx
mov eax, 1
mov dword [ebp - 0x8d0], esi
mov ebx, edi
mov esi, edx
jmp 0x401a79
movzx eax, byte [esi + 0x405284]
mov dword [esp], ebx
add esi, 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0x405130
call fcn.004014a0
add ebx, eax
cmp esi, 0x12
jne 0x401a72
mov dword [esp + 4], 0x2a
mov ebx, dword [ebp - 0x8cc]
mov dword [esp], str..._wine_dlls_msrle32_tests_msrle.c
mov esi, dword [ebp - 0x8d0]
call fcn.004020f0
mov dword [esp + 4], edi
mov dword [esp], str.Exp:__s_n
call fcn.00402390
mov dword [esp + 4], 0x5f
mov dword [esp], str..._wine_dlls_msrle32_tests_msrle.c
call fcn.004020f0
mov eax, dword [ebp - 0x8c0]
mov dword [esp + 4], str.flags___x_n
cmp eax, 0x12
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00402360
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]
sub esp, 0xc
mov dword [esp], ebx
call sub.msvfw32.dll_ICClose
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x8b8]
mov dword [esp + 8], 0x12
mov dword [esp + 4], 0x405284
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
mov dword [esp + 4], 0x21
mov dword [esp], str..._wine_dlls_msrle32_tests_msrle.c
test eax, eax
jne 0x401b84
call fcn.004020f0
mov dword [esp + 4], str.Unexpected_output_n
mov dword [esp], 1
call fcn.00402360
jmp 0x401ac7
call fcn.004020f0
mov dword [esp + 4], str.Unexpected_output_n
mov dword [esp], 0
call fcn.00402360
jmp 0x4019e3
lea edi, [ebp - 0x878]
jmp 0x401a35