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

Disassembly:
push 0xffffffffffffffff
push 0x5c8140
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 0x4953aa
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.0053e518
mov edi, eax
add esp, 4
test edi, edi
je 0x49540f
mov eax, dword [esi + 4]
push ebp
push edi
push eax
call sub.gdiplus.dll_GdipImageGetFrameDimensionsList
test eax, eax
je 0x4953e1
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 0x4953ff
mov dword [esi + 8], eax
mov eax, dword [esp + 0x70]
push edi
mov dword [ebx + 0x20], eax
call fcn.0053e50d
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.0053e518
add esp, 4
test eax, eax
je 0x495457
push 0x485b10
push 0x494ba0
push edi
lea ebp, [eax + 4]
push 8
push ebp
mov dword [eax], edi
call fcn.00586036
jmp 0x495459
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 0x49547e
mov dword [esi + 8], eax
mov ebp, dword [esp + 0x70]
push ebp
call fcn.00584b20
mov edi, eax
add esp, 4
test edi, edi
je 0x4954cc
mov eax, dword [esi + 4]
push edi
push ebp
push 0x5100
push eax
call sub.gdiplus.dll_GdipGetPropertyItem
test eax, eax
je 0x4954a8
mov dword [esi + 8], eax
xor eax, eax
cmp dword [ebx + 0x20], eax
jle 0x4954c3
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 0x4954b0
push edi
call fcn.005847fc
add esp, 4
xor edi, edi
cmp dword [ebx + 0x20], edi
mov dword [esp + 0x70], edi
jle 0x49569d
jmp 0x4954e4
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 0x606c04
push ecx
call sub.gdiplus.dll_GdipImageSelectActiveFrame
xor ebp, ebp
cmp eax, ebp
je 0x495520
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 0x495539
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 0x495556
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 0x4955c1
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 0x4955ea
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 0x49560f
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 0x495636
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 0x49566f
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 0x4954e0
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