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

Disassembly:
push 0xffffffffffffffff
push 0x60eb88
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push ebp
push esi
push edi
mov eax, dword [0x69e3d4]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
mov ebx, dword [esp + 0xb0]
cmp byte [ebx + 4], 0
mov dword [esp + 0x18], 0xff000000
lea eax, [esp + 0x18]
je 0x4ed8ae
xor ecx, ecx
jmp 0x4ed8b5
mov ecx, dword [esp + 0xb4]
call fcn.004edf90
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
lea edx, [esp + 0x1c]
push edx
xor ebp, ebp
push ebp
push 0x26200a
push ebp
push eax
push ecx
mov dword [esp + 0x58], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x34], ebp
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
mov dword [esp + 0xa4], ebp
call fcn.004edb40
cmp byte [ebx + 4], 0
mov dword [esp + 0x18], 0xffffffff
lea eax, [esp + 0x18]
je 0x4ed913
xor ecx, ecx
jmp 0x4ed91a
mov ecx, dword [esp + 0xb4]
call fcn.004edf90
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
lea edx, [esp + 0x20]
push edx
push ebp
push 0x26200a
push ebp
push eax
push ecx
mov dword [esp + 0x58], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x38], ebp
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x44], ebp
call fcn.004edb40
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
lea edx, [esp + 0x50]
push edx
push 0x26200a
mov dword [esp + 0x38], eax
push 1
lea eax, [esp + 0x34]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x28]
push eax
xor ebx, ebx
push ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call sub.gdiplus.dll_GdipBitmapLockBits
lea edx, [esp + 0x68]
push edx
push 0x26200a
push 1
lea eax, [esp + 0x34]
push eax
push ebp
call sub.gdiplus.dll_GdipBitmapLockBits
mov esi, dword [esp + 0xac]
mov eax, dword [esi + 4]
lea ecx, [esp + 0x80]
push ecx
push 0x26200a
push 2
lea edx, [esp + 0x34]
push edx
push eax
call sub.gdiplus.dll_GdipBitmapLockBits
cmp eax, ebx
je 0x4ed9ce
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x90]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x30]
imul ecx, dword [esp + 0x34]
xor esi, esi
test ecx, ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x18], eax
mov byte [esp + 0x17], bl
jbe 0x4edacf
mov edx, dword [esp + 0x38]
mov ebx, dword [edx + esi*4]
mov ecx, dword [esp + 0x3c]
movzx edi, byte [ecx + esi*4 + 2]
mov edx, ebx
shr edx, 0x10
movzx eax, dl
mov ecx, eax
sub ecx, edi
add ecx, 0xff
cmp ecx, 0xff
ja 0x4edaca
test ecx, ecx
jne 0x4eda48
movzx eax, bh
mov ah, dl
mov edx, dword [esp + 0x18]
movzx ecx, bl
shl eax, 8
or eax, ecx
mov dword [edx + esi*4], eax
jmp 0x4edab4
imul eax, eax, 0xff
cdq
idiv ecx
mov ebp, eax
mov eax, ebx
shr eax, 8
movzx eax, al
imul eax, eax, 0xff
cdq
idiv ecx
mov edi, eax
movzx eax, bl
imul eax, eax, 0xff
cdq
idiv ecx
mov edx, 0xff
mov dword [esp + 0x24], edx
cmp eax, edx
jg 0x4eda83
mov dword [esp + 0x24], eax
cmp edi, edx
mov ebx, edx
jg 0x4eda8b
mov ebx, edi
cmp ebp, edx
jg 0x4eda91
mov edx, ebp
mov ebp, dword [esp + 0x20]
xor eax, eax
mov ah, cl
movzx ecx, bl
mov al, dl
movzx edx, byte [esp + 0x24]
shl eax, 8
or eax, ecx
mov ecx, dword [esp + 0x18]
shl eax, 8
or eax, edx
mov dword [ecx + esi*4], eax
mov edx, dword [esp + 0x30]
imul edx, dword [esp + 0x34]
add esi, 1
cmp esi, edx
jb 0x4eda00
jmp 0x4edacf
mov byte [esp + 0x17], 1
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x50]
push eax
push edi
call sub.gdiplus.dll_GdipBitmapUnlockBits
lea ecx, [esp + 0x68]
push ecx
push ebp
call sub.gdiplus.dll_GdipBitmapUnlockBits
mov esi, dword [esp + 0xac]
mov eax, dword [esi + 4]
lea edx, [esp + 0x80]
push edx
push eax
call sub.gdiplus.dll_GdipBitmapUnlockBits
test eax, eax
je 0x4edb08
mov dword [esi + 8], eax
push ebp
call sub.gdiplus.dll_GdipDisposeImage
push edi
call sub.gdiplus.dll_GdipDisposeImage
cmp byte [esp + 0x17], 0
sete al
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret