Function at 0x10001980
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x40
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x24]
test byte [0x1000f04c], 8
jne 0x10001b70
and ebx, 0xffffffbf
je 0x100019b1
test byte [0x1000f04c], 1
jne 0x10001d88
mov ebx, dword [0x1000f018]
test ebx, ebx
jne 0x100019cb
jmp 0x10001b5c
mov ebx, dword [ebx + 0x3c]
test ebx, ebx
je 0x10001b5c
cmp edi, dword [ebx + 0x38]
jne 0x100019c0
mov edx, dword [ebx + 0x1c]
test edx, edx
jne 0x10001d10
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x10001c50
test byte [0x1000f04c], 8
jne 0x10001d20
mov eax, dword [esi + 8]
test eax, eax
jle 0x10001b37
mov eax, dword [esi + 0x20]
mov edx, dword [esi]
test eax, eax
jne 0x10001e48
movzx ecx, word [esi + 0xe]
cmp cx, 8
jbe 0x10001df5
mov dword [esp], edx
mov edi, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x10], edx
call edi
mov edx, dword [ebp - 0x10]
mov dword [ebx + 0x20], eax
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
mov dword [ebx + 0x28], eax
sub esp, 4
test byte [0x1000f04c], 8
jne 0x10001e08
lea edx, [ebx + 0x34]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov edx, dword [ebx + 0x20]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.gdi32.dll_CreateDIBSection]
mov dword [ebx + 0x30], eax
sub esp, 0x18
test eax, eax
je 0x10001b10
test byte [0x1000f04c], 8
jne 0x10001e50
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_SelectObject]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0xc]
sub esp, 8
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 8], eax
mov eax, dword [esi]
mov dword [esp], eax
call edi
mov dword [ebx + 0xc], eax
mov edx, dword [esi]
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x1c], 1
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x14], eax
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 0x20
test byte [0x1000f04c], 8
jne 0x10001ebd
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_SelectObject]
mov dword [ebx + 0x2c], eax
sub esp, 8
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x10001b49
mov dword [esp], eax
call sym.msvfw32.dll_ICClose
sub esp, 4
mov eax, dword [ebx + 0x20]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov dword [ebx + 0x20], 0
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x20
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], str.__p__p__d__d__p__d__d_0x_08x__n
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], str.DrawDibBegin
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0x1000f04c
mov dword [esp + 0x14], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test byte [0x1000f04c], 8
je 0x1000199f
mov eax, dword [esi + 0x24]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x24], eax
movzx eax, word [esi + 0xe]
mov dword [esp + 0x20], eax
movzx eax, word [esi + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
mov dword [esp + 0xc], str.lpbi:__ld__ld__ld__d__d__ld__ld__ld__ld__ld__ld_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.DrawDibBegin
mov dword [esp + 4], 0x1000f04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x1000199f
mov dword [esp + 8], 2
mov dword [esp + 4], eax
mov dword [esp], 0x63646976
call sym.msvfw32.dll_ICOpen
mov dword [ebx + 0x24], eax
sub esp, 0xc
test eax, eax
je 0x10001db8
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov dword [esp + 4], 0x400a
mov dword [esp], eax
call sym.msvfw32.dll_ICSendMessage
sub esp, 0x10
cmp eax, 0xffffffff
je 0x10001e87
mov dword [esp], eax
mov edi, dword [sym.imp.ucrtbase.dll_malloc]
call edi
mov dword [ebx + 0x20], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0x400a
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
call sym.msvfw32.dll_ICSendMessage
sub esp, 0x10
test eax, eax
jne 0x10001b37
mov eax, dword [ebx + 0x20]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x400c
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
call sym.msvfw32.dll_ICSendMessage
sub esp, 0x10
mov edx, eax
test byte [0x1000f04c], 8
jne 0x10001efa
test edx, edx
je 0x10001a3d
jmp 0x10001b37
mov dword [esp], edi
call sym.msvfw32.dll_DrawDibEnd
sub esp, 4
jmp 0x100019db
mov dword [esp + 0xc], str.Not_compressed__n
mov dword [esp + 8], str.DrawDibBegin
mov dword [esp + 4], 0x1000f04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov ecx, dword [esi + 8]
test ecx, ecx
jg 0x100019fe
test byte [0x1000f04c], 8
je 0x10001b37
mov dword [esp + 0xc], str.detected_inverted_DIB_n
mov dword [esp + 8], str.DrawDibBegin
mov dword [esp + 4], 0x1000f04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001b37
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.wFlags__0x_08x_not_handled_n
mov dword [esp + 8], str.DrawDibBegin
mov dword [esp + 4], 0x1000f04c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x100019b1
test byte [0x1000f04c], 4
je 0x10001b49
mov eax, dword [esi + 0x10]
mov dword [esp + 0xc], str.Could_not_open_IC._biCompression__0x_08lx_n
mov dword [esp + 8], str.DrawDibBegin
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1000f04c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x10001b37
mov eax, 4
shl eax, cl
add edx, eax
jmp 0x10001a19
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x20]
mov eax, dword [eax]
mov dword [esp + 0xc], str.Creating:__ld___p_n
mov dword [esp + 8], str.DrawDibBegin
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1000f04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebx + 0x28]
jmp 0x10001a5c
lea edx, [edx + eax*4]
jmp 0x10001a19
mov edx, dword [ebx + 0x34]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Created:__p__p_n
mov dword [esp + 0x14], edx
mov dword [esp + 8], str.DrawDibBegin
mov dword [esp + 4], 0x1000f04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebx + 0x30]
jmp 0x10001aa2
test byte [0x1000f04c], 4
je 0x10001b37
mov dword [esp + 0xc], str.Codec_doesnt_support_GetFormat__giving_up._n
mov dword [esp + 8], str.DrawDibBegin
mov dword [esp + 4], 0x1000f04c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x10001b37
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.Error:__ld_n
mov dword [esp + 8], str.DrawDibBegin
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1000f04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebx + 0x30]
mov dword [esp + 4], eax
jmp 0x10001b25
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x20]
mov eax, dword [eax + 0x14]
mov dword [esp + 0xc], str.biSizeImage___ld_n
mov dword [esp + 8], str.DrawDibBegin
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1000f04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test byte [0x1000f04c], 8
mov edx, dword [ebp - 0x10]
je 0x10001d02
mov eax, dword [ebx + 0x20]
mov eax, dword [eax + 0x10]
mov dword [esp + 0xc], str.biCompression___ld_n
mov dword [esp + 8], str.DrawDibBegin
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1000f04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test byte [0x1000f04c], 8
mov edx, dword [ebp - 0x10]
je 0x10001d02
mov eax, dword [ebx + 0x20]
movzx eax, word [eax + 0xe]
mov dword [esp + 0xc], str.biBitCount___d_n
mov dword [esp + 8], str.DrawDibBegin
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1000f04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x10]
jmp 0x10001d02