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

Disassembly:
push 0xffffffffffffffff
push 0x5c8360
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x63727c]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x70]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], 0
call sub.gdiplus.dll_GdipImageGetFrameDimensionsCount
test eax, eax
je 0x49557a
mov dword [esi + 8], eax
mov ebp, dword [esp + 0x14]
xor ecx, ecx
mov eax, ebp
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0053e6f8
mov edi, eax
add esp, 4
test edi, edi
je 0x4955df
mov eax, dword [esi + 4]
push ebp
push edi
push eax
call sub.gdiplus.dll_GdipImageGetFrameDimensionsList
test eax, eax
je 0x4955b1
mov dword [esi + 8], eax
mov edx, dword [esi + 4]
lea ecx, [esp + 0x70]
push ecx
push edi
push edx
mov dword [esp + 0x7c], 0
call sub.gdiplus.dll_GdipImageGetFrameCount
test eax, eax
je 0x4955cf
mov dword [esi + 8], eax
mov eax, dword [esp + 0x70]
push edi
mov dword [ebx + 0x20], eax
call fcn.0053e6ed
add esp, 4
mov edi, dword [ebx + 0x20]
xor ecx, ecx
mov eax, edi
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0053e6f8
add esp, 4
test eax, eax
je 0x495627
push 0x485ce0
push 0x494d70
push edi
lea ebp, [eax + 4]
push 8
push ebp
mov dword [eax], edi
call fcn.00586216
jmp 0x495629
xor ebp, ebp
lea ecx, [esp + 0x70]
push ecx
mov dword [ebx + 0x28], ebp
mov edx, dword [esi + 4]
push 0x5100
push edx
mov dword [esp + 0x7c], 0
call sub.gdiplus.dll_GdipGetPropertyItemSize
test eax, eax
je 0x49564e
mov dword [esi + 8], eax
mov ebp, dword [esp + 0x70]
push ebp
call fcn.00584d00
mov edi, eax
add esp, 4
test edi, edi
je 0x49569c
mov eax, dword [esi + 4]
push edi
push ebp
push 0x5100
push eax
call sub.gdiplus.dll_GdipGetPropertyItem
test eax, eax
je 0x495678
mov dword [esi + 8], eax
xor eax, eax
cmp dword [ebx + 0x20], eax
jle 0x495693
nop
mov ecx, dword [edi + 0xc]
mov ecx, dword [ecx + eax*4]
mov edx, dword [ebx + 0x28]
mov dword [edx + eax*8 + 4], ecx
inc eax
cmp eax, dword [ebx + 0x20]
jl 0x495680
push edi
call fcn.005849dc
add esp, 4
xor edi, edi
cmp dword [ebx + 0x20], edi
mov dword [esp + 0x70], edi
jle 0x49586d
jmp 0x4956b4
mov edi, dword [esp + 0x70]
call dword [sym.imp.soui.dll_public:_static_class_SOUI::SApplication____cdecl_SOUI::SSingleton_class_SOUI::SApplication_::getSingleton_void_]
mov ecx, eax
call dword [sym.imp.soui.dll_public:_struct_SOUI::IRenderFactory____thiscall_SOUI::SApplication::GetRenderFactory_void_]
mov ebp, dword [ebx + 0x28]
mov edx, dword [eax]
lea ecx, [edi*8]
add ebp, ecx
mov ecx, eax
mov eax, dword [edx + 0x1c]
push ebp
call eax
mov ecx, dword [esi + 4]
push edi
push 0x606b44
push ecx
call sub.gdiplus.dll_GdipImageSelectActiveFrame
xor ebp, ebp
cmp eax, ebp
je 0x4956f0
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x1c], ebp
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebp
je 0x495709
mov dword [esi + 8], eax
mov edx, dword [esi + 4]
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x20], ebp
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebp
je 0x495726
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push ebp
push 0xe200b
push ebp
push edi
push ecx
mov dword [esp + 0x50], vtable.Gdiplus::Bitmap.0
mov dword [esp + 0x34], ebp
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], edi
lea edx, [esp + 0x1c]
push edx
push edi
mov dword [esp + 0x70], ebp
mov dword [esp + 0x24], ebp
call sub.gdiplus.dll_GdipGetImageGraphicsContext
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ebp
mov eax, dword [esi + 4]
push 0
push 0
push eax
push ebp
mov byte [esp + 0x78], 1
call sub.gdiplus.dll_GdipDrawImageI
xor ecx, ecx
cmp eax, ecx
je 0x495791
mov dword [esp + 0x24], eax
mov edx, dword [esi + 4]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
push ecx
push edx
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x4957ba
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], 0
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x4957df
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x48]
push ecx
push 0xe200b
push 0
lea edx, [esp + 0x34]
push edx
push edi
mov dword [esp + 0x48], eax
call sub.gdiplus.dll_GdipBitmapLockBits
test eax, eax
je 0x495806
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [ebx + 0x28]
add eax, eax
add eax, eax
add eax, eax
mov ecx, dword [eax + ecx]
mov eax, dword [esp + 0x58]
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
push eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push eax
call edx
lea eax, [esp + 0x48]
push eax
push edi
call sub.gdiplus.dll_GdipBitmapUnlockBits
test eax, eax
je 0x49583f
mov dword [esp + 0x40], eax
push ebp
call sub.gdiplus.dll_GdipDeleteGraphics
push edi
mov dword [esp + 0x6c], 0xffffffff
mov dword [esp + 0x3c], vtable.Gdiplus::Image.0
call sub.gdiplus.dll_GdipDisposeImage
mov eax, dword [esp + 0x70]
inc eax
cmp eax, dword [ebx + 0x20]
mov dword [esp + 0x70], eax
jl 0x4956b0
mov eax, dword [ebx + 0x20]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 4