Function at 0x659900
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x7c6988
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x89b044]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
cmp dword [esi + 0x10], ebx
je 0x659baf
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
cmp edi, ebx
je 0x659baf
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
lea edx, [esp + 0x18]
push edx
push ebx
push 0xe200b
push ebx
push eax
push ecx
mov dword [edi], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x30], ebx
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov dword [edi + 8], eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
mov edx, eax
push edx
mov dword [edi + 4], eax
mov dword [esp + 0x20], ebx
call sub.gdiplus.dll_GdipGetImageGraphicsContext
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ebp
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 4]
xor edx, edx
push eax
push ebp
mov dword [esp + 0x7c], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ecx
call sub.gdiplus.dll_GdipSetInterpolationMode
test eax, eax
je 0x6599c5
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
test eax, eax
je 0x6599d7
mov eax, dword [eax + 4]
jmp 0x6599d9
xor eax, eax
push 0
push 0
push 0
push 2
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x4c]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
push ecx
push edx
push eax
push ebp
call sub.gdiplus.dll_GdipDrawImageRectRectI
test eax, eax
je 0x659a19
push ebp
mov dword [esp + 0x78], 0xffffffff
call sub.gdiplus.dll_GdipDeleteGraphics
jmp 0x659b91
mov edx, dword [edi + 4]
lea eax, [esp + 0x54]
push eax
push 0xe200b
push 1
lea ecx, [esp + 0x38]
push ecx
push edx
call sub.gdiplus.dll_GdipBitmapLockBits
test eax, eax
je 0x659a4d
push ebp
mov dword [edi + 8], eax
mov dword [esp + 0x78], 0xffffffff
call sub.gdiplus.dll_GdipDeleteGraphics
jmp 0x659b91
mov eax, dword [esp + 0x64]
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x7c]
push eax
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0xc]
push eax
push ecx
push edx
call fcn.00657fc0
add esp, 0x10
test eax, eax
jne 0x659a82
push ebp
mov dword [esp + 0x78], 0xffffffff
call sub.gdiplus.dll_GdipDeleteGraphics
jmp 0x659b91
push 0x10
call sub.gdiplus.dll_GdipAlloc
test eax, eax
je 0x659aa5
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push 0xe200b
push ecx
push edx
mov ecx, eax
call fcn.00655bb0
mov ebx, eax
jmp 0x659aa7
xor ebx, ebx
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x659ab5
push ebp
jmp 0x659b80
mov edx, dword [ebx + 4]
lea eax, [esp + 0x3c]
push eax
push 0xe200b
push 1
lea ecx, [esp + 0x38]
push ecx
push edx
call sub.gdiplus.dll_GdipBitmapLockBits
test eax, eax
je 0x659adc
mov dword [ebx + 8], eax
push ebp
jmp 0x659b80
mov eax, dword [esi + 0xc]
imul eax, dword [esi + 8]
xor ebp, ebp
test eax, eax
jbe 0x659b29
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x20]
add eax, 2
add ecx, 2
jmp 0x659b00
movzx edx, byte [ecx - 2]
mov byte [eax - 2], dl
movzx edx, byte [ecx - 1]
mov byte [eax - 1], dl
movzx edx, byte [ecx]
mov byte [eax], dl
mov byte [eax + 1], 0xff
mov edx, dword [esi + 0xc]
imul edx, dword [esi + 8]
inc ebp
add ecx, 4
add eax, 4
cmp ebp, edx
jb 0x659b00
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x3c]
push eax
push ecx
call sub.gdiplus.dll_GdipBitmapUnlockBits
test eax, eax
je 0x659b45
mov edx, dword [esp + 0x18]
mov dword [ebx + 8], eax
push edx
jmp 0x659b80
mov ecx, dword [edi + 4]
lea eax, [esp + 0x54]
push eax
push ecx
call sub.gdiplus.dll_GdipBitmapUnlockBits
test eax, eax
je 0x659b61
mov edx, dword [esp + 0x18]
mov dword [edi + 8], eax
push edx
jmp 0x659b80
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x659b70
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, dword [esp + 0x18]
mov dword [esi + 0x10], ebx
mov dword [esp + 0x14], 1
push eax
mov dword [esp + 0x78], 0xffffffff
call sub.gdiplus.dll_GdipDeleteGraphics
mov ebx, dword [esp + 0x14]
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x659baf
test ebx, ebx
jne 0x659baf
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov eax, ebx
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 4