Function at 0x10013220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov dword [ebp - 4], 0x8007000e
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x10013252
pop esi
mov eax, 0x8007000e
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x10013276
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x10013284
pop edi
pop esi
mov eax, 0x8007000e
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp + 0x10], esi
test esi, esi
je 0x1001340f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x10013408
push edi
push ebx
push eax
call fcn.10019fa0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], 0
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x10013408
push eax
push dword [ebp + 0x14]
call fcn.10012a10
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x100133ff
mov eax, dword [ebx + 8]
mov dword [ebx + 8], 0
test eax, eax
jne 0x100133f7
push 0x10
call sub.gdiplus.dll_GdipAlloc
cmp byte [ebp + 0x20], 0
mov edi, eax
mov dword [ebp + 0x20], edi
je 0x10013390
test edi, edi
je 0x1001332e
mov ecx, ebx
call fcn.10012c60
push eax
push dword [ebp + 0x1c]
mov ecx, edi
push dword [ebp + 0x18]
call fcn.10011f80
mov ecx, eax
jmp 0x10013330
xor ecx, ecx
mov eax, dword [ebp + 0x24]
mov dword [eax], ecx
test ecx, ecx
je 0x100133f7
push ecx
lea ecx, [ebp - 0xc]
call fcn.100124e0
mov esi, dword [ebp - 0xc]
push 4
push esi
call sub.gdiplus.dll_GdipSetSmoothingMode
mov edi, dword [ebp - 8]
test eax, eax
push 7
push esi
cmovne edi, eax
call sub.gdiplus.dll_GdipSetInterpolationMode
push dword [ebp + 0x1c]
test eax, eax
lea ecx, [ebp - 0xc]
push dword [ebp + 0x18]
cmovne edi, eax
push 0
push 0
push ebx
mov dword [ebp - 8], edi
call fcn.10012980
push dword [ebp - 0xc]
mov dword [ebp - 4], 0
call sub.gdiplus.dll_GdipDeleteGraphics
mov esi, dword [ebp + 0x10]
jmp 0x100133f7
test edi, edi
je 0x100133b7
mov ecx, ebx
call fcn.10012c60
push eax
mov ecx, ebx
call fcn.10012c30
push eax
mov ecx, ebx
call fcn.10012c90
push eax
mov ecx, edi
call fcn.10011f80
mov ecx, eax
jmp 0x100133b9
xor ecx, ecx
mov eax, dword [ebp + 0x24]
mov dword [eax], ecx
test ecx, ecx
je 0x100133f7
push ecx
lea ecx, [ebp - 0xc]
call fcn.100124e0
mov ecx, ebx
call fcn.10012c30
push eax
mov ecx, ebx
call fcn.10012c90
push eax
push 0
push 0
push ebx
lea ecx, [ebp - 0xc]
call fcn.10012980
push dword [ebp - 0xc]
mov dword [ebp - 4], 0
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20