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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x88
mov eax, dword [ecx]
test byte [0x6907a0e8], 8
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x50], eax
jne 0x6905c990
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x6905c9ca
lea eax, [esi + 0x34]
mov dword [esp], eax
mov dword [ebp - 0x64], eax
call dword [sym.imp.kernel32.dll_TryAcquireSRWLockExclusive]
sub esp, 4
test al, al
je 0x6905ca80
mov eax, dword [esi + 8]
cmp eax, 1
jne 0x6905c958
mov eax, dword [ebp - 0x50]
mov edx, dword [eax + 0x40]
test edx, edx
je 0x6905c9d8
mov eax, edx
movzx ecx, dh
sar eax, 8
test al, 0xf8
je 0x6905cda8
mov edi, ecx
sar edi, 3
jmp 0x6905c9dd
test byte [0x6907a0e8], 1
jne 0x6905ca50
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov dword [ebp - 0x58], 6
sub esp, 4
mov eax, dword [ebp - 0x58]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [esp + 0x10], eax
mov eax, str.__p___u__n
mov dword [esp + 0xc], eax
mov eax, str.GdipImageRotateFlip
mov dword [esp + 8], eax
mov eax, 0x6907a0e8
mov dword [esp + 0x14], ebx
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
mov esi, dword [ebp - 0x50]
test esi, esi
jne 0x6905c907
mov dword [ebp - 0x58], 2
jmp 0x6905c97b
mov edi, 3
mov eax, dword [ebp - 0x50]
mov esi, ebx
and esi, 1
mov ecx, dword [eax + 0x38]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x48], eax
je 0x6905ca40
mov dword [esp + 0xc], edx
lea ecx, [ebp - 0x34]
xor edx, edx
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x60]
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.gdiplus.dll_GdipCreateBitmapFromScan0
mov dword [ebp - 0x58], eax
sub esp, 0x18
test eax, eax
je 0x6905ca90
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
sub esp, 4
jmp 0x6905c97b
mov dword [ebp - 0x60], eax
mov eax, ecx
mov dword [ebp - 0x48], ecx
jmp 0x6905c9f3
mov dword [esp + 0x10], eax
mov eax, str.GdipImageRotateFlip
mov edi, str.Not_implemented_for_type__i_n
mov dword [esp + 8], eax
mov eax, 0x6907a0e8
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_6
jmp 0x6905c965
mov dword [ebp - 0x58], 4
jmp 0x6905c97b
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x30]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x40]
mov dword [esp + 0xc], eax
mov eax, 2
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sym.gdiplus.dll_GdipBitmapLockBits
mov dword [ebp - 0x58], eax
sub esp, 0x14
test eax, eax
jne 0x6905ce89
mov ecx, dword [ebp - 0x50]
mov eax, ebx
and eax, 6
sub eax, 2
and eax, 0xfffffffd
mov edx, dword [ecx + 0x54]
mov dword [ebp - 0x68], edx
mov edx, eax
jne 0x6905caee
mov eax, dword [ecx + 0x38]
mov dword [ebp - 0x3c], eax
dec eax
imul eax, edi
add dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x50]
and ebx, 3
mov ecx, dword [eax + 0x58]
lea eax, [ebx - 1]
cmp eax, 1
mov dword [ebp - 0x4c], ecx
jbe 0x6905cde5
test esi, esi
jne 0x6905ce02
mov eax, edi
neg eax
test edx, edx
mov edx, dword [ebp - 0x4c]
cmovne eax, edi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x70], edx
mov ebx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x20]
test ebx, ebx
mov dword [ebp - 0x6c], eax
je 0x6905cbb8
mov dword [ebp - 0x5c], 0
lea esi, [esi]
nop
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x6905cba1
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x68]
mov esi, dword [ebp - 0x6c]
mov dword [ebp - 0x40], eax
lea esi, [esi]
nop
cmp edi, 4
mov ebx, dword [ebp - 0x40]
mov ecx, edi
mov edx, esi
jae 0x6905ce20
xor eax, eax
test cl, 2
je 0x6905cb82
movzx eax, word [ebx]
mov word [edx], ax
mov eax, 2
test cl, 1
je 0x6905cb8e
movzx ebx, byte [ebx + eax]
mov byte [edx + eax], bl
inc dword [ebp - 0x3c]
add esi, edi
mov edx, dword [ebp - 0x4c]
add dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x48], eax
jne 0x6905cb60
inc dword [ebp - 0x5c]
mov esi, dword [ebp - 0x70]
add dword [ebp - 0x68], esi
mov eax, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x28]
add dword [ebp - 0x6c], esi
cmp dword [ebp - 0x60], eax
jne 0x6905cb40
lea eax, [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sym.gdiplus.dll_GdipBitmapUnlockBits
mov esi, dword [ebp - 0x34]
sub esp, 8
cmp dword [esi + 8], 1
je 0x6905cbf5
mov dword [esp], str.src__image.type__ImageTypeBitmap
mov eax, 0x812
mov edx, str._root_wine_build_wine_dlls_gdiplus_image.c
mov dword [esp + 8], eax
mov dword [esp + 4], edx
call dword [sym.imp.ucrtbase.dll__assert]
mov eax, dword [ebp - 0x50]
cmp dword [eax + 8], 1
je 0x6905cc1d
mov dword [esp], str.dst__image.type__ImageTypeBitmap
mov eax, 0x813
mov dword [esp + 8], eax
mov eax, str._root_wine_build_wine_dlls_gdiplus_image.c
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll__assert]
mov eax, dword [ebp - 0x50]
xor ebx, ebx
mov edi, dword fs:[0x18]
mov eax, dword [eax + 0x48]
mov dword [esp + 4], ebx
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x5c]
sub esp, 0xc
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x50]
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_DeleteDC]
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x4c]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_DeleteObject]
mov eax, dword [esi + 0x28]
sub esp, 4
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
mov edi, dword [ebp - 0x50]
mov eax, dword [esi + 0x38]
movss xmm0, dword [esi + 0x2c]
movss dword [edi + 0x2c], xmm0
movss xmm0, dword [esi + 0x30]
sub esp, 0xc
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x3c]
movss dword [edi + 0x30], xmm0
mov dword [edi + 0x3c], eax
mov eax, dword [esi + 0x40]
mov dword [edi + 0x40], eax
mov eax, dword [esi + 0x4c]
mov dword [edi + 0x4c], eax
mov eax, dword [esi + 0x50]
mov dword [edi + 0x50], eax
mov eax, dword [esi + 0x54]
mov dword [edi + 0x54], eax
mov eax, dword [esi + 0x58]
mov dword [edi + 0x58], eax
mov eax, dword [esi + 0x5c]
mov dword [edi + 0x5c], eax
mov eax, dword [edi + 0x68]
test eax, eax
je 0x6905ccfe
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov edi, dword [ebp - 0x50]
xor ecx, ecx
mov eax, dword [esi + 0x68]
mov edx, dword [edi + 0x70]
mov dword [edi + 0x68], eax
mov dword [esp + 4], ecx
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 ebx
mov eax, dword [esi + 0x70]
mov dword [edi + 0x70], eax
mov eax, dword [esi + 0x6c]
sub esp, 0xc
mov dword [edi + 0x6c], eax
mov eax, dword [edi]
test eax, eax
je 0x6905cd45
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov edi, dword [ebp - 0x50]
mov eax, dword [esi]
mov dword [edi], eax
mov dword [esp], edi
call sym._terminate_encoder_wic
mov eax, dword [esi + 4]
xor edx, edx
mov dword [edi + 4], eax
mov eax, dword [esi + 0x20]
mov dword [edi + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [edi + 0x24], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 0x18], eax
mov dword [esi + 8], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
jmp 0x6905ca23
test byte [0x6907a0e8], 1
je 0x6905c965
mov dword [esp + 0x10], ecx
mov ebx, str.GdipImageRotateFlip
mov ecx, str.Not_implemented_for__i_bit_images_n
mov dword [esp + 0xc], ecx
mov esi, 0x6907a0e8
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_6
jmp 0x6905c965
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x3c], eax
dec eax
imul eax, ecx
add dword [ebp - 0x68], eax
test esi, esi
je 0x6905ce9c
neg ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x70], edi
test edx, edx
jne 0x6905cb20
mov eax, edi
neg eax
mov dword [ebp - 0x70], eax
jmp 0x6905cb20
test esi, 1
jne 0x6905ce78
test dl, 2
jne 0x6905ce60
cmp ecx, 4
jb 0x6905cb70
mov dword [ebp - 0x54], ecx
mov eax, ecx
and eax, 0xfffffffc
mov dword [ebp - 0x44], eax
xor eax, eax
mov ecx, dword [ebx + eax]
mov dword [edx + eax], ecx
add eax, 4
cmp eax, dword [ebp - 0x44]
jb 0x6905ce43
mov ecx, dword [ebp - 0x54]
add edx, eax
add ebx, eax
jmp 0x6905cb70
movzx eax, word [ebx]
add edx, 2
add ebx, 2
sub ecx, 2
mov word [edx - 2], ax
jmp 0x6905ce2d
movzx eax, byte [ebx]
lea edx, [esi + 1]
inc ebx
lea ecx, [edi - 1]
mov byte [ebp - 0x44], al
mov byte [esi], al
jmp 0x6905ce28
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sym.gdiplus.dll_GdipDisposeImage
sub esp, 4
jmp 0x6905ca23
mov eax, edi
neg eax
test edx, edx
mov edx, dword [ebp - 0x4c]
cmovne eax, edi
mov dword [ebp - 0x4c], eax
neg edx
mov dword [ebp - 0x70], edx
jmp 0x6905cb20