Function at 0x10001a70
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 [0x1001001c], 8
jne 0x10001ca0
and ebx, 0xffffffbf
je 0x10001aa1
test byte [0x1001001c], 1
jne 0x10001e50
mov ebx, dword [section..bss]
test ebx, ebx
jne 0x10001abb
jmp 0x10001c8d
mov ebx, dword [ebx + 0x3c]
test ebx, ebx
je 0x10001c8d
cmp edi, dword [ebx + 0x38]
jne 0x10001ab0
mov edx, dword [ebx + 0x1c]
test edx, edx
jne 0x10001e40
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x10001d80
test byte [0x1001001c], 8
jne 0x10001c08
mov eax, dword [esi + 8]
test eax, eax
jle 0x10001c68
mov eax, dword [esi + 0x20]
mov edx, dword [esi]
movzx ecx, word [esi + 0xe]
test eax, eax
jne 0x10001f40
cmp cx, 8
jbe 0x10001ebd
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 [0x1001001c], 8
jne 0x10001ed0
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 0x10001f10
test byte [0x1001001c], 8
jne 0x10001f50
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
mov dword [esp + 0xc], str.Not_compressed__n
mov dword [esp + 8], str.DrawDibBegin
mov dword [esp + 4], 0x1001001c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov ecx, dword [esi + 8]
test ecx, ecx
jg 0x10001aee
test byte [0x1001001c], 8
je 0x10001c68
mov dword [esp + 0xc], str.detected_inverted_DIB_n
mov dword [esp + 8], str.DrawDibBegin
mov dword [esp + 4], 0x1001001c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
lea esi, [esi]
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x10001c7a
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], 0x1001001c
mov dword [esp + 0x14], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test byte [0x1001001c], 8
je 0x10001a8f
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], 0x1001001c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10001a8f
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 0x10001e80
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 0x10001f87
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 0x10001c68
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 [0x1001001c], 8
jne 0x10001ffa
test edx, edx
je 0x10001b2d
jmp 0x10001c68
mov dword [esp], edi
call sym.msvfw32.dll_DrawDibEnd
sub esp, 4
jmp 0x10001acb
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], 0x1001001c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x10001aa1
test byte [0x1001001c], 4
je 0x10001c7a
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], 0x1001001c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x10001c68
mov eax, 4
shl eax, cl
add edx, eax
jmp 0x10001b09
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], 0x1001001c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebx + 0x28]
jmp 0x10001b4c
test byte [0x1001001c], 8
jne 0x10001fbd
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
jmp 0x10001c68
lea edx, [edx + eax*4]
jmp 0x10001b09
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], 0x1001001c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebx + 0x30]
jmp 0x10001b96
test byte [0x1001001c], 4
je 0x10001c68
mov dword [esp + 0xc], str.Codec_doesnt_support_GetFormat__giving_up._n
mov dword [esp + 8], str.DrawDibBegin
mov dword [esp + 4], 0x1001001c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x10001c68
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], 0x1001001c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebx + 0x30]
mov dword [esp + 4], eax
jmp 0x10001f25
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], 0x1001001c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test byte [0x1001001c], 8
mov edx, dword [ebp - 0x10]
je 0x10001e32
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], 0x1001001c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test byte [0x1001001c], 8
mov edx, dword [ebp - 0x10]
je 0x10001e32
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], 0x1001001c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x10]
jmp 0x10001e32