Function at 0x524c10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d108
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x59dbf0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 0x10], 0
je 0x524c80
mov dword [esi], 0x56d1bc
mov dword [esi + 0x34], vtable.MA::LRefCountedObject.0
mov dword [esi + 0x38], 0
mov eax, dword [esi + 0x38]
mov dword [esi + 0x3c], 0
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x40], 0
mov eax, dword [esi + 0x40]
mov byte [esi + 0x44], 1
mov dword [ebp - 0x1c], 1
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.MA::LBitmap.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x34]
mov dword [ecx + esi - 4], eax
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
push dword [ebp + 8]
lea ebx, [esi + 0x18]
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.00401704
push dword [ebp + 0xc]
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 2
call fcn.00401704
mov dword [esi + 0x28], 0
push 2
xor edi, edi
push edi
lea eax, [ebp - 0x30]
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
mov dword [esi + 0x2c], 0
call fcn.004086b7
mov ecx, dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
add eax, 4
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, 0x560d74
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x524d46
test dx, dx
je 0x524d42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x524d46
add eax, 4
add ecx, 4
test dx, dx
jne 0x524d20
xor eax, eax
jmp 0x524d4b
sbb eax, eax
or eax, 1
mov ecx, dword [ebp - 0x2c]
test eax, eax
setne bl
mov byte [ebp - 4], 4
mov dword [ebp - 0x30], vtable.MA::StringT_wchar_t__char_.0
test ecx, ecx
je 0x524d72
mov eax, dword [ecx + 4]
add ecx, 4
mov eax, dword [eax + 8]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0xc]
test bl, bl
je 0x524dc3
mov ecx, dword [esi + 0x1c]
add ecx, 4
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0x18]
push 0x10
mov ebx, eax
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
test edi, edi
je 0x524dbc
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [edi], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 0x10], 0
call sub.gdiplus.dll_GdipCreateBitmapFromFile
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 4], eax
jmp 0x524f3a
xor edi, edi
jmp 0x524f3a
push 2
lea eax, [ebp - 0x40]
push eax
lea ecx, [esi + 0x18]
call fcn.0040d1a8
lea ecx, [ebp - 0x38]
push ecx
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00408d4b
push 0x5f
push 0x561b3c
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00411ad0
push eax
lea ecx, [ebp - 0x28]
call fcn.00401704
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 9
mov dword [ebp - 0x38], vtable.MA::StringT_wchar_t__char_.0
test ecx, ecx
je 0x524e1d
mov eax, dword [ecx + 4]
add ecx, 4
mov eax, dword [eax + 8]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x40], vtable.MA::StringT_wchar_t__char_.0
test ecx, ecx
je 0x524e3f
mov eax, dword [ecx + 4]
add ecx, 4
mov eax, dword [eax + 8]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x24]
mov ebx, dword [0x59e5e8]
mov eax, dword [ecx + 4]
add ecx, 4
mov eax, dword [eax + 4]
add ecx, eax
mov dword [ebp + 0xc], ebx
mov eax, dword [ecx]
call dword [eax + 0x18]
push str.GDIPLUS
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x524f18
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x524f18
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x524f18
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x524f0f
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x524f0f
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x524f08
push dword [ebp - 0x18]
push dword [ebp + 8]
push eax
call sub.MSVCR110.dll_memcpy
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
push 0
push ebx
mov dword [ebp + 0x10], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x524f01
push eax
push dword [ebp + 0x10]
call fcn.00526c50
mov ecx, dword [ebp + 0x10]
add esp, 8
mov edx, dword [ecx]
push ecx
mov edi, eax
call dword [edx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 4
mov dword [ebp - 0x28], vtable.MA::StringT_wchar_t__char_.0
test ecx, ecx
je 0x524f3a
mov eax, dword [ecx + 4]
add ecx, 4
mov eax, dword [eax + 8]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0xc]
test edi, edi
je 0x524fa6
mov eax, dword [edi + 8]
mov dword [edi + 8], 0
test eax, eax
jne 0x524f9e
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov dword [esi + 0x2c], edi
push dword [edi + 4]
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x524f65
mov dword [edi + 8], eax
mov edi, dword [esi + 0x2c]
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
push dword [edi + 4]
mov dword [ebp - 0x18], 0
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x524f85
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
jmp 0x524fa6
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc