Function at 0x64a94010
Capabilities:
Access peb ldr_data
Get ntdll base address
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, 0xa8
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov dword [ebp - 0x5c], eax
test byte [0x64ab50d0], 8
jne 0x64a940c0
test ebx, ebx
je 0x64a940f4
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x24]
xor eax, eax
lock cmpxchg dword [ebx + 0x34], edx
mov dword [ebp - 0x74], eax
test eax, eax
je 0x64a94064
mov edi, 4
cmp edx, eax
jne 0x64a940b0
mov eax, dword [ebx + 8]
cmp eax, 1
jne 0x64a94090
mov edx, dword [ebx + 0x40]
test edx, edx
je 0x64a94110
movzx eax, dh
test dh, 0xf8
je 0x64a94590
sar eax, 3
mov esi, eax
jmp 0x64a94115
test byte [0x64ab50d0], 1
jne 0x64a94530
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x64a940ab
mov dword [ebx + 0x34], 0
mov edi, 6
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p___u__n
mov dword [esp + 8], str.GdipImageRotateFlip
mov dword [esp + 4], 0x64ab50d0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
test ebx, ebx
jne 0x64a94044
lea esp, [ebp - 0x10]
mov edi, 2
pop ecx
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov esi, 3
mov edi, dword [ebp - 0x5c]
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x3c]
and edi, 1
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], edi
je 0x64a94188
lea ecx, [ebp - 0x4c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov edi, dword [ebp - 0x78]
mov dword [esp], eax
mov dword [esp + 4], edi
call sym.gdiplus.dll_GdipCreateBitmapFromScan0
sub esp, 0x18
mov edi, eax
test eax, eax
je 0x64a94198
mov ecx, dword [ebp - 0x74]
test ecx, ecx
jne 0x64a940b0
mov dword [ebx + 0x34], 0
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [ebp - 0x78], eax
mov eax, ecx
mov dword [ebp - 0x60], ecx
jmp 0x64a9412c
lea eax, [ebp - 0x48]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym.gdiplus.dll_GdipBitmapLockBits
sub esp, 0x14
mov edi, eax
test eax, eax
jne 0x64a94572
lea eax, [ebp - 0x30]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call sym.gdiplus.dll_GdipBitmapLockBits
sub esp, 0x14
mov edi, eax
test eax, eax
jne 0x64a94560
mov ecx, dword [ebp - 0x5c]
mov eax, ecx
and eax, 3
lea edx, [eax - 1]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x8c], eax
mov eax, ecx
and eax, 6
sub eax, 2
and eax, 0xfffffffc
je 0x64a94637
cmp edx, 1
jbe 0x64a94692
mov eax, dword [ebp - 0x64]
test eax, eax
jne 0x64a946b9
mov dword [ebp - 0x68], esi
lea esi, [esi]
nop
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x64a942fe
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x64a942fe
mov ecx, esi
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x90], edi
and ecx, 2
mov dword [ebp - 0x94], ebx
xor ebx, ebx
mov dword [ebp - 0x7c], ecx
mov edx, eax
mov eax, dword [ebp - 0x5c]
lea esi, [esi]
mov dword [ebp - 0x5c], 0
mov edi, edx
mov ecx, eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x88], ebx
lea esi, [esi]
cmp esi, 4
jae 0x64a945d0
test esi, esi
je 0x64a942bd
movzx eax, byte [ecx]
mov byte [edi], al
mov ebx, dword [ebp - 0x7c]
test ebx, ebx
jne 0x64a94628
mov eax, dword [ebp - 0x68]
add dword [ebp - 0x5c], 1
add edi, esi
add ecx, eax
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x60], eax
jne 0x64a942a0
mov eax, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x88]
mov edi, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x84]
add ebx, 1
add edx, dword [ebp - 0x28]
add eax, edi
cmp dword [ebp - 0x78], ebx
jne 0x64a94280
mov edi, dword [ebp - 0x90]
mov ebx, dword [ebp - 0x94]
lea eax, [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call sym.gdiplus.dll_GdipBitmapUnlockBits
lea eax, [ebp - 0x48]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym.gdiplus.dll_GdipBitmapUnlockBits
mov esi, dword [ebp - 0x4c]
sub esp, 8
cmp dword [esi + 8], 1
je 0x64a9434b
mov dword [esp + 8], 0x815
mov dword [esp + 4], str._Users_runner_work_wine_wine_dlls_gdiplus_image.c
mov dword [esp], str.src__image.type__ImageTypeBitmap
call dword [sym.imp.ucrtbase.dll__assert]
cmp dword [ebx + 8], 1
je 0x64a9436e
mov dword [esp + 8], 0x816
mov dword [esp + 4], str._Users_runner_work_wine_wine_dlls_gdiplus_image.c
mov dword [esp], str.dst__image.type__ImageTypeBitmap
call dword [sym.imp.ucrtbase.dll__assert]
mov eax, dword [ebx + 0x48]
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x60], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x5c], eax
call eax
mov eax, dword [ebx + 0x5c]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x5c]
call eax
mov eax, dword [ebx + 0x50]
sub esp, 0xc
mov dword [esp], eax
call sym._DeleteDC_4
mov eax, dword [ebx + 0x4c]
sub esp, 4
mov dword [esp], eax
call sym._DeleteObject_4
mov eax, dword [esi + 0x28]
sub esp, 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x5c]
call eax
fld dword [esi + 0x2c]
sub esp, 0xc
fstp dword [ebx + 0x2c]
fld dword [esi + 0x30]
fstp dword [ebx + 0x30]
mov eax, dword [esi + 0x38]
mov dword [ebx + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [ebx + 0x3c], eax
mov eax, dword [esi + 0x40]
mov dword [ebx + 0x40], eax
mov eax, dword [esi + 0x4c]
mov dword [ebx + 0x4c], eax
mov eax, dword [esi + 0x50]
mov dword [ebx + 0x50], eax
mov eax, dword [esi + 0x54]
mov dword [ebx + 0x54], eax
mov eax, dword [esi + 0x58]
mov dword [ebx + 0x58], eax
mov eax, dword [esi + 0x5c]
mov dword [ebx + 0x5c], eax
mov eax, dword [ebx + 0x68]
test eax, eax
je 0x64a9444d
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [esi + 0x68]
mov edx, dword [ebx + 0x70]
mov dword [ebx + 0x68], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x5c]
call eax
mov eax, dword [esi + 0x70]
sub esp, 0xc
mov dword [ebx + 0x70], eax
mov eax, dword [esi + 0x6c]
mov dword [ebx + 0x6c], eax
mov eax, dword [ebx]
test eax, eax
je 0x64a94496
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x64a944cf
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x2c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebx + 4]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov ecx, dword [ebp - 0x60]
mov dword [ebx + 4], 0
sub esp, 4
mov dword [esp], ecx
call sym._hresult_to_status
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 0x20]
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [ebx + 0x24], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov dword [esi + 8], 0xffffffff
mov eax, dword fs:[0x18]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x5c]
call eax
sub esp, 0xc
jmp 0x64a9415f
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Not_implemented_for_type__i_n
mov dword [esp + 8], str.GdipImageRotateFlip
mov dword [esp + 4], 0x64ab50d0
mov dword [esp], 0
call sym._wine_dbg_log.constprop.1_5
jmp 0x64a9409d
lea eax, [ebp - 0x48]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym.gdiplus.dll_GdipBitmapUnlockBits
sub esp, 8
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call sym.gdiplus.dll_GdipDisposeImage
mov ecx, dword [ebp - 0x74]
sub esp, 4
test ecx, ecx
jne 0x64a940b0
jmp 0x64a9416a
test byte [0x64ab50d0], 1
je 0x64a9409d
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Not_implemented_for__i_bit_images_n
mov dword [esp + 8], str.GdipImageRotateFlip
mov dword [esp + 4], 0x64ab50d0
mov dword [esp], 0
call sym._wine_dbg_log.constprop.1_5
jmp 0x64a9409d
mov eax, dword [ecx]
lea ebx, [edi + 4]
mov edx, edi
and ebx, 0xfffffffc
mov dword [edi], eax
mov eax, dword [ecx + esi - 4]
sub edx, ebx
mov dword [edi + esi - 4], eax
mov eax, ecx
sub eax, edx
add edx, esi
and edx, 0xfffffffc
mov dword [ebp - 0x64], eax
cmp edx, 4
jb 0x64a942bd
mov dword [ebp - 0x70], ecx
and edx, 0xfffffffc
xor eax, eax
mov dword [ebp - 0x6c], esi
mov esi, dword [ebp - 0x64]
mov ecx, dword [esi + eax]
mov dword [ebx + eax], ecx
add eax, 4
cmp eax, edx
jb 0x64a94609
mov esi, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x70]
jmp 0x64a942bd
movzx eax, word [ecx + esi - 2]
mov word [edi + esi - 2], ax
jmp 0x64a942bd
mov eax, dword [ebx + 0x38]
sub eax, 1
imul eax, esi
add dword [ebp - 0x5c], eax
cmp edx, 1
jbe 0x64a9465b
mov eax, dword [ebp - 0x64]
test eax, eax
jne 0x64a9467a
mov eax, esi
neg eax
mov dword [ebp - 0x68], eax
jmp 0x64a94248
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x64]
sub eax, 1
imul eax, ecx
add dword [ebp - 0x5c], eax
test edx, edx
je 0x64a946cd
neg dword [ebp - 0x8c]
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x68], eax
mov eax, esi
neg eax
mov dword [ebp - 0x8c], eax
jmp 0x64a94248
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebp - 0x8c]
sub eax, 1
imul eax, ecx
add dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x64]
test eax, eax
jne 0x64a946d6
mov dword [ebp - 0x68], esi
neg dword [ebp - 0x8c]
jmp 0x64a94248
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x68], eax
jmp 0x64a94248
mov eax, esi
neg eax
mov dword [ebp - 0x68], eax
jmp 0x64a946ae
mov eax, ecx
mov dword [ebp - 0x8c], esi
neg eax
mov dword [ebp - 0x68], eax
jmp 0x64a94248